Update cheatsheets

This commit is contained in:
ivuorinen
2024-03-07 00:10:46 +00:00
parent 17a4574aeb
commit 18990cb95e
7 changed files with 135 additions and 11 deletions

View File

@@ -9,10 +9,18 @@ source: https://github.com/tldr-pages/tldr.git
> Part of `aircrack-ng`.
> More information: <https://www.aircrack-ng.org/doku.php?id=airodump-ng>.
- Capture packets and display information about a wireless network:
- Capture packets and display information about wireless network(s) on the 2.4GHz band:
`sudo airodump-ng {{interface}}`
- Capture packets and display information about wireless network(s) on the 5GHz band:
`sudo airodump-ng {{interface}} --band a`
- Capture packets and display information about wireless network(s) on both 2.4GHz and 5GHz bands:
`sudo airodump-ng {{interface}} --band abg`
- Capture packets and display information about a wireless network given the MAC address and channel, and save the output to a file:
`sudo airodump-ng --channel {{channel}} --write {{path/to/file}} --bssid {{mac}} {{interface}}`

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> A `cat` clone with syntax highlighting and Git integration.
> More information: <https://github.com/sharkdp/bat>.
- Print the contents of one or more files to `stdout`:
- Pretty print the contents of one or more files to `stdout`:
`bat {{path/to/file1 path/to/file2 ...}}`
@@ -17,18 +17,26 @@ source: https://github.com/tldr-pages/tldr.git
`bat {{path/to/file1 path/to/file2 ...}} > {{path/to/target_file}}`
- Append several files into the target file:
- Remove decorations and disable paging (`--style plain` can be replaced with `-p`, or both options with `-pp`):
`bat {{path/to/file1 path/to/file2 ...}} >> {{path/to/target_file}}`
`bat --style plain --pager never {{path/to/file}}`
- Number all output lines:
- Highlight a specific line or a range of lines with a different background color:
`bat --number {{path/to/file}}`
`bat {{--highlight-line|-H}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}`
- Syntax highlight a JSON file:
- Show non-printable characters like space, tab or newline:
`bat --language json {{path/to/file.json}}`
`bat {{--show-all|-A}} {{path/to/file}}`
- Remove all decorations except line numbers in the output:
`bat {{--number|-n}} {{path/to/file}}`
- Syntax highlight a JSON file by explicitly setting the language:
`bat {{--language|-l}} json {{path/to/file.json}}`
- Display all supported languages:
`bat --list-languages`
`bat {{--list-languages|-L}}`

17
tldr/dolt-gc Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# dolt gc
> Search the repository for data that are no longer referenced and no longer needed.
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-gc>.
- Clean up unreferenced data from the repository:
`dolt gc`
- Initiate a faster but less thorough garbage collection process:
`dolt gc --shallow`

41
tldr/linux/iwlist Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# iwlist
> Get detailed information from a wireless interface.
> More information: <https://manned.org/iwlist.8>.
- Display the list of access points and ad-hoc cells in range:
`iwlist {{wireless_interface}} scan`
- Display available frequencies in the device:
`iwlist {{wireless_interface}} frequency`
- List the bit-rates supported by the device:
`iwlist {{wireless_interface}} rate`
- List the WPA authentication parameters currently set:
`iwlist {{wireless_interface}} auth`
- List all the WPA encryption keys set in the device:
`iwlist {{wireless_interface}} wpakeys`
- List the encryption key sizes supported and list all the encryption keys set in the device:
`iwlist {{wireless_interface}} keys`
- List the various power management attributes and modes of the device:
`iwlist {{wireless_interface}} power`
- List generic information elements set in the device (used for WPA support):
`iwlist {{wireless_interface}} genie`

View File

@@ -16,10 +16,18 @@ source: https://github.com/tldr-pages/tldr.git
`macchanger --random {{interface}}`
- Set interface to a specific MAC:
- Set an interface to a random MAC address, and pretend to be a [b]urned-[i]n-[a]ddress:
`macchanger --random --bia {{interface}}`
- Set an interface to a specific MAC address:
`macchanger --mac {{XX:XX:XX:XX:XX:XX}} {{interface}}`
- Reset interface to its permanent hardware MAC:
- Print the identifications (the first three bytes of a MAC address) of all known vendors:
`macchanger --list`
- Reset an interface to its permanent hardware MAC address:
`macchanger --permanent {{interface}}`

29
tldr/pipes.sh Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pipes.sh
> A bash script which draws randomly pathed pipes over the terminal.
> More information: <https://github.com/pipeseroni/pipes.sh>.
- Change the pa[t]tern of the pipes:
`pipes.sh -t {{0..9}}`
- Change the [c]olor of the pipes:
`pipes.sh -c {{0..7}}`
- Change the [f]ramerate of the pipes:
`pipes.sh -f {{20..100}}`
- Disable [C]olors:
`pipes.sh -C`
- Display [v]ersion:
`pipes.sh -v`

13
tldr/pngtopnm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pngtopnm
> This command is superseded by `pngtopam`.
> More information: <https://netpbm.sourceforge.net/doc/pngtopnm.html>.
- View documentation for the current command:
`tldr pngtopam`