Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-10 00:18:48 +00:00
parent 1581eedcdb
commit 99092db1f1
5 changed files with 108 additions and 6 deletions

42
tldr/rpcmap.py Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# rpcmap.py
> Lookup listening MSRPC interfaces using a string binding (e.g., `ncacn_ip_tcp:host[port]`).
> Part of the Impacket suite.
> More information: <https://github.com/fortra/impacket>.
- Connect to an MSRPC interface using a string binding (e.g., `ncacn_ip_tcp:host[port]`):
`rpcmap.py {{stringbinding}}`
- Bruteforce UUIDs even if the MGMT interface is available:
`rpcmap.py -brute-uuids {{stringbinding}}`
- Bruteforce operation numbers (opnums) for discovered UUIDs:
`rpcmap.py -brute-opnums {{stringbinding}}`
- Bruteforce major versions of found UUIDs:
`rpcmap.py -brute-versions {{stringbinding}}`
- Specify a target IP address manually:
`rpcmap.py -target-ip {{ip_address}} {{stringbinding}}`
- Authenticate to the RPC interface with username and password:
`rpcmap.py -auth-rpc {{domain}}/{{username}}:{{password}} {{stringbinding}}`
- Authenticate using NTLM hashes for RPC:
`rpcmap.py -hashes-rpc {{LMHASH:NTHASH}} {{stringbinding}}`
- Enable debug output for verbose information:
`rpcmap.py -debug {{stringbinding}}`