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
| Command | Effect |
|---|---|
enumdomusers | List all domain user accounts |
querydominfo | Password/lockout policy |
getdompwinfo | Minimum password length/complexity |
srvinfo | Server OS/version info |