Update cheatsheets

This commit is contained in:
ivuorinen
2024-03-17 00:14:35 +00:00
parent 1c7d3e3ebc
commit fb68c8db78
8 changed files with 45 additions and 25 deletions

View File

@@ -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: <https://github.com/OWASP/Amass>.
> Some subcommands such as `amass intel` have their own usage documentation.
> More information: <https://github.com/owasp-amass/amass>.
- 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:

View File

@@ -6,17 +6,17 @@ source: https://github.com/tldr-pages/tldr.git
# amass enum
> Find subdomains of a domain.
> More information: <https://github.com/OWASP/Amass/blob/master/doc/user_guide.md#the-enum-subcommand>.
> More information: <https://github.com/owasp-amass/amass/blob/master/doc/user_guide.md#the-enum-subcommand>.
- 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`

View File

@@ -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: <https://github.com/OWASP/Amass/blob/master/doc/user_guide.md#the-intel-subcommand>.
> More information: <https://github.com/owasp-amass/amass/blob/master/doc/user_guide.md#the-intel-subcommand>.
- 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`

View File

@@ -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}}`

View File

@@ -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}}`

View File

@@ -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}}`

View File

@@ -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: <https://manned.org/iptables-save>.
- Print the `iptables` configuration:

View File

@@ -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: