From fb68c8db780e9279fc8eed628eee0edb43783a47 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 17 Mar 2024 00:14:35 +0000 Subject: [PATCH] Update cheatsheets --- tldr/amass | 10 +++++----- tldr/amass-enum | 16 ++++++++++------ tldr/amass-intel | 10 +++++++--- tldr/base32 | 4 ++++ tldr/base64 | 4 ++++ tldr/diff | 22 +++++++++++++--------- tldr/linux/iptables-save | 2 +- tldr/windows/reg-query | 2 +- 8 files changed, 45 insertions(+), 25 deletions(-) diff --git a/tldr/amass b/tldr/amass index e71d6bc9..80f7ad2f 100644 --- a/tldr/amass +++ b/tldr/amass @@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git # amass > In-depth Attack Surface Mapping and Asset Discovery tool. -> Some subcommands such as `amass db` have their own usage documentation. -> More information: . +> Some subcommands such as `amass intel` have their own usage documentation. +> More information: . - Execute an Amass subcommand: -`amass {{subcommand}}` +`amass {{intel|enum}} {{options}}` - Display help: `amass -help` -- Display help on an Amass subcommand (like `intel`, `enum`, etc.): +- Display help on an Amass subcommand: -`amass -help {{subcommand}}` +`amass {{intel|enum}} -help` - Display version: diff --git a/tldr/amass-enum b/tldr/amass-enum index 1491e72e..d2a6e447 100644 --- a/tldr/amass-enum +++ b/tldr/amass-enum @@ -6,17 +6,17 @@ source: https://github.com/tldr-pages/tldr.git # amass enum > Find subdomains of a domain. -> More information: . +> More information: . -- Passively find subdomains of a [d]omain: +- Find (passively) subdomains of a [d]omain: -`amass enum -passive -d {{domain_name}}` +`amass enum -d {{domain_name}}` - Find subdomains of a [d]omain and actively verify them attempting to resolve the found subdomains: `amass enum -active -d {{domain_name}} -p {{80,443,8080}}` -- Do a brute force search for subdomains: +- Do a brute force search for sub[d]omains: `amass enum -brute -d {{domain_name}}` @@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git `amass enum -o {{output_file}} -d {{domain_name}}` -- Save the results to a database: +- Save terminal output to a file and other detailed output to a directory: -`amass enum -o {{output_file}} -dir {{path/to/database_directory}}` +`amass enum -o {{output_file}} -dir {{path/to/directory}} -d {{domain_name}}` + +- List all available data sources: + +`amass enum -list` diff --git a/tldr/amass-intel b/tldr/amass-intel index 46aecac1..c32c1378 100644 --- a/tldr/amass-intel +++ b/tldr/amass-intel @@ -6,9 +6,9 @@ source: https://github.com/tldr-pages/tldr.git # amass intel > Collect open source intel on an organisation like root domains and ASNs. -> More information: . +> More information: . -- Find root domains in an IP address range: +- Find root domains in an IP [addr]ess range: `amass intel -addr {{192.168.0.1-254}}` @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `amass intel -whois -d {{domain_name}}` -- Find ASNs belonging to an organisation: +- Find ASNs belonging to an [org]anisation: `amass intel -org {{organisation_name}}` @@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - Save results to a text file: `amass intel -o {{output_file}} -whois -d {{domain_name}}` + +- List all available data sources: + +`amass intel -list` diff --git a/tldr/base32 b/tldr/base32 index 7eae151b..e11c8c84 100644 --- a/tldr/base32 +++ b/tldr/base32 @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `base32 {{path/to/file}}` +- Wrap encoded output at a specific width (`0` disables wrapping): + +`base32 --wrap {{0|76|...}} {{path/to/file}}` + - Decode a file: `base32 --decode {{path/to/file}}` diff --git a/tldr/base64 b/tldr/base64 index b88205fb..6d26b0a0 100644 --- a/tldr/base64 +++ b/tldr/base64 @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `base64 {{path/to/file}}` +- Wrap encoded output at a specific width (`0` disables wrapping): + +`base64 --wrap {{0|76|...}} {{path/to/file}}` + - Decode the base64 contents of a file and write the result to `stdout`: `base64 --decode {{path/to/file}}` diff --git a/tldr/diff b/tldr/diff index 6f4e37e8..c990b58b 100644 --- a/tldr/diff +++ b/tldr/diff @@ -12,26 +12,30 @@ source: https://github.com/tldr-pages/tldr.git `diff {{old_file}} {{new_file}}` -- Compare files, ignoring white spaces: +- Compare files, ignoring [w]hite spaces: -`diff --ignore-all-space {{old_file}} {{new_file}}` +`diff {{-w|--ignore-all-space}} {{old_file}} {{new_file}}` - Compare files, showing the differences side by side: -`diff --side-by-side {{old_file}} {{new_file}}` +`diff {{-y|--side-by-side}} {{old_file}} {{new_file}}` -- Compare files, showing the differences in unified format (as used by `git diff`): +- Compare files, showing the differences in [u]nified format (as used by `git diff`): -`diff --unified {{old_file}} {{new_file}}` +`diff {{-u|--unified}} {{old_file}} {{new_file}}` -- Compare directories recursively (shows names for differing files/directories as well as changes made to files): +- Compare directories [r]ecursively (shows names for differing files/directories as well as changes made to files): -`diff --recursive {{old_directory}} {{new_directory}}` +`diff {{-r|--recursive}} {{old_directory}} {{new_directory}}` - Compare directories, only showing the names of files that differ: -`diff --recursive --brief {{old_directory}} {{new_directory}}` +`diff {{-r|--recursive}} {{-q|--brief}} {{old_directory}} {{new_directory}}` - Create a patch file for Git from the differences of two text files, treating nonexistent files as empty: -`diff --text --unified --new-file {{old_file}} {{new_file}} > {{diff.patch}}` +`diff {{-a|--text}} {{-u|--unified}} {{-N|--new-file}} {{old_file}} {{new_file}} > {{diff.patch}}` + +- Compare files, showing output in color and try hard to find smaller set of changes: + +`diff {{-d|--minimal}} --color=always {{old_file}} {{new_file}}` diff --git a/tldr/linux/iptables-save b/tldr/linux/iptables-save index 8ea2d2c4..69193652 100644 --- a/tldr/linux/iptables-save +++ b/tldr/linux/iptables-save @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # iptables-save > Save the `iptables` IPv4 configuration. -> Use `ip6tables-save` to the same for IPv6. +> Use `ip6tables-save` to do the same for IPv6. > More information: . - Print the `iptables` configuration: diff --git a/tldr/windows/reg-query b/tldr/windows/reg-query index 932503fe..5166d5ab 100644 --- a/tldr/windows/reg-query +++ b/tldr/windows/reg-query @@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git - Only search in [k]ey names: -`reg query {{key_name}} /f /k` +`reg query {{key_name}} /f "{{query_pattern}}" /k` - [c]ase-sensitively search for an [e]xact match: