1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 15:35:27 +02:00
tldr/pages/linux/rpcclient.md
Managor 1f63ed5e22
linux*: refresh old pages part 1 (#16251)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-04-25 04:34:04 +03:00

982 B

rpcclient

MS-RPC client tool (part of the samba suite). More information: https://www.samba.org/samba/docs/current/man-html/rpcclient.1.html.

  • Connect to a remote host:

rpcclient {{[-U|--user]}} {{domain}}\{{username}}%{{password}} {{ip}}

  • Connect to a remote host on a domain without a password:

rpcclient {{[-U|--user]}} {{username}} {{[-W|--workgroup]}} {{domain}} {{[-N|--no-pass]}} {{ip}}

  • Connect to a remote host, passing the password hash:

rpcclient {{[-U|--user]}} {{domain}}\{{username}} --pw-nt-hash {{ip}}

  • Execute shell commands on a remote host:

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

  • 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}}