From 99092db1f1d8b14d90de74591f86e5a32455c54d Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 10 Apr 2025 00:18:48 +0000 Subject: [PATCH] Update cheatsheets --- tldr/fastfetch | 16 ++++++++++------ tldr/impacket-rpcdump | 13 +++++++++++++ tldr/impacket-rpcmap | 13 +++++++++++++ tldr/rpcdump.py | 30 ++++++++++++++++++++++++++++++ tldr/rpcmap.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+), 6 deletions(-) create mode 100644 tldr/impacket-rpcdump create mode 100644 tldr/impacket-rpcmap create mode 100644 tldr/rpcdump.py create mode 100644 tldr/rpcmap.py diff --git a/tldr/fastfetch b/tldr/fastfetch index 3005d8ad..8ad9fcf8 100644 --- a/tldr/fastfetch +++ b/tldr/fastfetch @@ -6,27 +6,31 @@ source: https://github.com/tldr-pages/tldr.git # fastfetch > Display information about your operating system, software and hardware. -> More information: . +> More information: . - Display system information: `fastfetch` -- Fetch a specific structure: +- Display full system information with all the modules enabled: -`fastfetch --structure {{structure}}` +`fastfetch {{[-c|--config]}} all` - Load a custom configuration file: -`fastfetch --load-config {{path/to/config_file}}` +`fastfetch {{[-c|--config]}} {{path/to/config_file}}` + +- Fetch a specific structure: + +`fastfetch {{[-s|--structure]}} {{structure}}` - Use a specific logo: -`fastfetch --logo {{logo}}` +`fastfetch {{[-l|--logo]}} {{logo}}` - Display system information without a logo: -`fastfetch --logo none` +`fastfetch {{[-l|--logo]}} none` - Use a specific color for the keys and title: diff --git a/tldr/impacket-rpcdump b/tldr/impacket-rpcdump new file mode 100644 index 00000000..3c7e8b35 --- /dev/null +++ b/tldr/impacket-rpcdump @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# impacket-rpcdump + +> This command is an alias of `rpcdump.py`. +> More information: . + +- View documentation for the original command: + +`tldr rpcdump.py` diff --git a/tldr/impacket-rpcmap b/tldr/impacket-rpcmap new file mode 100644 index 00000000..35c68387 --- /dev/null +++ b/tldr/impacket-rpcmap @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# impacket-rpcmap + +> This command is an alias of `rpcmap.py`. +> More information: . + +- View documentation for the original command: + +`tldr rpcmap.py` diff --git a/tldr/rpcdump.py b/tldr/rpcdump.py new file mode 100644 index 00000000..6fc6431e --- /dev/null +++ b/tldr/rpcdump.py @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# rpcdump.py + +> Dump remote RPC endpoints information via the Endpoint Mapper. +> Part of the Impacket suite. +> More information: . + +- Dump RPC endpoints using username and password: + +`rpcdump.py {{domain}}/{{username}}:{{password}}@{{target}}` + +- Dump RPC endpoints using NTLM hashes: + +`rpcdump.py -hashes {{LMHASH}}:{{NTHASH}} {{domain}}/{{username}}:{{password}}@{{target}}` + +- Specify a target IP address explicitly (useful if the target name is a NetBIOS name): + +`rpcdump.py -target-ip {{target_ip}} {{domain}}/{{username}}:{{password}}@{{target}}` + +- Connect to a specific port (default is 135 for RPC Endpoint Mapper): + +`rpcdump.py -port {{port_number}} {{domain}}/{{username}}:{{password}}@{{target}}` + +- Enable debug output: + +`rpcdump.py -debug {{domain}}/{{username}}:{{password}}@{{target}}` diff --git a/tldr/rpcmap.py b/tldr/rpcmap.py new file mode 100644 index 00000000..fb15449e --- /dev/null +++ b/tldr/rpcmap.py @@ -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: . + +- 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}}`