Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
linux/rpcclient Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`