1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

rpcclient: add page (#4747)

This commit is contained in:
Alex 2020-10-24 14:06:56 +02:00 committed by GitHub
parent 622e1cf73c
commit 32e310ff63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

36
pages/linux/rpcclient.md Normal file
View file

@ -0,0 +1,36 @@
# 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 --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}}`