pentesting, updated

rpcclient

Interactive Samba client for querying Windows MSRPC endpoints — users, policy and domain info over a null or authenticated session.

What it’s for

Open an MSRPC session (often with no credentials at all) and run enumeration commands interactively against a Windows host or domain controller.

Install

# ships with samba-common-bin — apt install samba-common-bin

Common commands

rpcclient -U "" -N 10.10.10.5           # null session
rpcclient -U "jdoe%Password1" 10.10.10.5  # authenticated session

# once connected:
enumdomusers                              # list domain users
enumdomgroups                             # list domain groups
querydominfo                              # domain name, SID, password policy
queryuser 0x1f4                           # details for a specific RID (0x1f4 = 500 = Administrator)
lsaquery                                  # SID and domain name

Useful flags

CommandEffect
enumdomusersList all domain user accounts
querydominfoPassword/lockout policy
getdompwinfoMinimum password length/complexity
srvinfoServer OS/version info

Used in

§ home
~/knubertus/home/
1,1 Top