当前位置:网站首页>Intranet Infiltration - Privilege Escalation
Intranet Infiltration - Privilege Escalation
2022-07-31 01:57:00 【haoaaao】
0x00 Local Privilege Escalation
️1. Introduction


️2. Different system default accounts
windows: user, Administrator, System
linux: User, Root
️3, windows privilege escalation
1) The administrator is elevated to system
(1) View information under the command line:
Change password command: net user username *
View existing user accounts in the current system: net user
View the basic information of the current account: net user username
View information on the graphical interface - computer management
Local user - user - group account

(2) Privilege Escalation Method 1//win xp /2003
a. Task Manager to view the processes of users with different privileges
b, command: at time

When the time comes to execute a cmd command, the executed cmd command is the system permission, which can be viewed with whoami, or viewed in the task manager.
But this method can only execute the at command once every time, and you need to find a way to keep the permissions in the system all the time.
c, the system opened with the previous commandIn the permission window, kill the current desktop environment (explorer process), and then start the desktop environment with the system account. At this time, the desktop environment is all under the system permission.



//At this point, the entire desktop environment is already system permissions.
(2) Privilege Escalation Method 2 //win7/8 system
Command: sc to create a service, as follows
//cmd /K start refers to creating a new cmd window service
sc Create service name binPath (specify to execute a command) = "cmd /K start" type = "own" type (start type) = interact (interactive)

View created system service
Start the created system service: sc start service name
//The system account will be called to start

The service started at this time (the new cmd window) is already the system permission.
(3) Method 3 of Privilege Escalation
wintools:Sysinternals suite
https://technel.microsoft.com/en-us/sysinternals/bb545027


2) Injection process privilege escalation
//Idea: Find a process running with sysytem privileges and inject yourself into this process
(1) Tool Download: Process Injector
http://www.tarasco.org/security/Process_Injector/

(2) Use of injection tools:
a, pinjector.exe -l (to view injectable processes)

b. Find a process with system permissions to inject.

//Inject the 656 port process, execute the cmd command, and specify the port as 555. When someone uses nc and other tools to link the 555 port, the cmd will be handed over to the other party, similar to the way of using nc for remote shell.

c, how to use port 555 after listening:
Use na in kali to connect to port 555 of the win system

View permissions, get system permissions:

边栏推荐
猜你喜欢

MySQL installation tutorial (detailed, package teaching package~)

MySql的安装配置超详细教程与简单的建库建表方法

《MySQL数据库进阶实战》读后感(SQL 小虚竹)

Fiddler captures packets to simulate weak network environment testing

leetcode-399: division evaluation

What have I experienced when I won the offer of BAT and TMD technical experts?

Problems that need to be solved by the tcp framework

Arbitrum 专访 | L2 Summer, 脱颖而出的 Arbitrum 为开发者带来了什么?

uniapp使用第三方字体

VSCode插件:嵌套注释
随机推荐
Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
Static routing + PAT + static NAT (explanation + experiment)
[Map and Set] LeetCode & Niu Ke exercise
Project development software directory structure specification
系统需求多变如何设计
C language applet -- common classic practice questions
What have I experienced when I won the offer of BAT and TMD technical experts?
What is the ideal college life?
Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
Validate XML documents
曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
case语句的综合结果,你究竟会了吗?【Verilog高级教程】
怎样做好一个创业公司CTO?
验证整数输入
vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验
PDF split/merge
My first understanding of MySql, and the basic syntax of DDL and DML and DQL in sql statements
有没有可以做副业可以日入300元方法?
Verify the integer input
coldfusion文件读取漏洞(CVE-2010-2861)