commands.sh

rpcclient

linux

MS-RPC client tool (part of the samba suite).

More info →

Options (4)

-U, --userboolean

Connect to a remote host

Example: rpcclient {{[-U|--user]}} {{domain}}\{{username}}%{{password}} {{ip_address}}
-W, --workgroupboolean

Connect to a remote host on a domain without a password

Example: rpcclient {{[-U|--user]}} {{username}} {{[-W|--workgroup]}} {{domain}} {{[-N|--no-pass]}} {{ip_address}}
-N, --no-passboolean

Connect to a remote host on a domain without a password

Example: rpcclient {{[-U|--user]}} {{username}} {{[-W|--workgroup]}} {{domain}} {{[-N|--no-pass]}} {{ip_address}}
-c, --commandboolean

Execute shell commands on a remote host

Example: rpcclient {{[-U|--user]}} {{domain}}\{{username}}%{{password}} {{[-c|--command]}} {{semicolon_separated_commands}} {{ip_address}}

Examples (8)

Connect to a remote host

rpcclient [-U|--user] domain\username%password ip_address

Connect to a remote host on a domain without a password

rpcclient [-U|--user] username [-W|--workgroup] domain [-N|--no-pass] ip_address

Connect to a remote host, passing the password hash

rpcclient [-U|--user] domain\username --pw-nt-hash ip_address

Execute shell commands on a remote host

rpcclient [-U|--user] domain\username%password [-c|--command] semicolon_separated_commands ip_address

Display domain users

rpcclient $> enumdomusers

Display privileges

rpcclient $> enumprivs

Display information about a specific user

rpcclient $> queryuser username|rid

Create a new user in the domain

rpcclient $> createdomuser username
made by @shridhargupta | data from tldr-pages