当前位置:网站首页>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:

边栏推荐
- What does a software test report contain?
- Fiddler captures packets to simulate weak network environment testing
- cudaMemcpy study notes
- Manchester City confuses fans with smart scarf that detects emotions
- STP选举(步骤+案列)详解
- Is there a way to earn 300 yuan a day by doing a side business?
- Overview of prometheus monitoring
- ShardingJDBC usage summary
- 爬虫文本数据清洗
- 1. Non-type template parameters 2. Specialization of templates 3. Explanation of inheritance
猜你喜欢

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

934. The Shortest Bridge

曼城推出可检测情绪的智能围巾,把球迷给整迷惑了

Drools basic introduction, introductory case, basic syntax

To write good test cases, you must first learn test design

MySql installation and configuration super detailed tutorial and simple method of building database and table

vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验

汉诺塔问题

uniapp uses 3rd party fonts

The effective square of the test (one question of the day 7/29)
随机推荐
有没有可以做副业可以日入300元方法?
ShardingJDBC使用总结
修改未正确放入沙盒造成苹果兼容性问题
My first understanding of MySql, and the basic syntax of DDL and DML and DQL in sql statements
MySQL的分页你还在使劲的limit?
ShardingJDBC usage summary
Gateway routing configuration
221. Largest Square
leetcode-1161: Maximum in-layer element sum
验证整数输入
Drools规则属性,高级语法
VSCode插件:嵌套注释
Can an inexperienced college graduate switch to software testing?my real case
multiplayer-hlap 包有问题,无法升级的解决方案
How to expose Prometheus metrics in go programs
类似 MS Project 的项目管理工具有哪些
Crawler text data cleaning
pycharm重命名后无法运行(报错: can‘t open file......No such file or directory)
leetcode-952: Calculate max component size by common factor
rpm安装postgresql12