From 32e310ff63d0916b7aef17f61e5f0f8b5f6a8c42 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 24 Oct 2020 14:06:56 +0200 Subject: [PATCH] rpcclient: add page (#4747) --- pages/linux/rpcclient.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/linux/rpcclient.md diff --git a/pages/linux/rpcclient.md b/pages/linux/rpcclient.md new file mode 100644 index 000000000..50ef9f3ed --- /dev/null +++ b/pages/linux/rpcclient.md @@ -0,0 +1,36 @@ +# rpcclient + +> MS-RPC client tool (part of the samba suite). +> More information: . + +- Connect to a remote host: + +`rpcclient --user {{domain}}\{{username}}%{{password}} {{ip}}` + +- Connect to a remote host on a domain without a password: + +`rpcclient --user {{username}} --workgroup {{domain}} --no-pass {{ip}}` + +- Connect to a remote host, passing the password hash: + +`rpcclient --user {{domain}}\{{username}} --pw-nt-hash {{ip}}` + +- Execute shell commands on a remote host: + +`rpcclient --user {{domain}}\{{username}}%{{password}} --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}}`