Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-24 00:21:55 +00:00
parent b6a6d775f5
commit 7b572f2b7c
5 changed files with 67 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
`{{command}} | cut {{[-d|--delimiter]}} " " {{[-f|--fields]}} -3`
- Do not print lines that do not contain the delimiter:
- Only print lines that contain the delimiter:
`{{command}} | cut {{[-d|--delimiter]}} "{{:}}" {{[-f|--fields]}} {{1}} {{[-s|--only-delimited]}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gpg
> GNU Privacy Guard, an OpenPGP encryption and signing tool.
> See also: `sq`.
> More information: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
- Create a GPG public and private key interactively:

View File

@@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
`sudo lxc-attach {{container_name}}`
- Attach to a container without passing host environment variables to it:
`sudo lxc-attach {{container_name}} --clear-env`
- Display help:
`lxc-attach {{[-?|--help]}}`

37
tldr/tlsx Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# tlsx
> Fast and configurable TLS grabber focused on TLS based data collection and analysis.
> More information: <https://github.com/projectdiscovery/tlsx#usage>.
- Display TLS version and cipher of one or more hosts:
`tlsx {{[-u|-host]}} {{host1,host2,...}} {{[-tv|-tls-version]}} -cipher`
- Enumerate and display supported TLS versions and ciphers of a host:
`tlsx {{[-u|-host]}} {{host}} {{[-ve|-version-enum]}} {{[-ce|-cipher-enum]}}`
- Scan a list of hosts from a file and mark hosts with expired/self-signed/mismatched/revoked/untrusted certificates:
`tlsx {{[-l|-list]}} {{path/to/hosts.txt}} {{[-ex|-expired]}} {{[-ss|-self-signed]}} {{[-mm|-mismatched]}} {{[-re|-revoked]}} {{[-un|-untrusted]}}`
- Adjust per host concurrency, timeout, retry and delay parameters when scanning a list of hosts for wildcard SSL certificates:
`tlsx {{[-l|-list]}} {{path/to/hosts.txt}} {{[-c|-concurrency]}} {{300}} -timeout {{5}} -retry {{3}} -delay {{200ms}} {{[-wc|-wildcard-cert]}}`
- Display unique hostname(s) from SSL certificate response:
`tlsx {{[-u|-host]}} {{host}} -dns`
- Display Subject Alternative Names (SANs) from the TLS certificate of a host, with JSON output written to a file:
`tlsx {{[-u|-host]}} {{host}} -san {{[-j|-json]}} {{[-o|-output]}} {{path/to/file.json}}`
- Perform a self health-check of `tlsx` itself:
`tlsx {{[-hc|-health-check]}}`

View File

@@ -6,20 +6,36 @@ source: https://github.com/tldr-pages/tldr.git
# tspin
> A log file highlighter based on the `less` pager and basically behaves like any pager.
> More information: <https://github.com/bensadeh/tailspin#settings>.
> More information: <https://github.com/bensadeh/tailspin#usage>.
- Read from file and view in `less`:
- View a log file using the default pager (`less`):
`tspin {{path/to/application.log}}`
`tspin {{path/to/file.log}}`
- Read from another command and print to `stdout`:
`journalctl {{[-b|--boot]}} {{[-f|--follow]}} | tspin`
`{{command}} | tspin`
- Read from file and print to `stdout`:
- Read from a file and print to `stdout` without paging:
`tspin {{path/to/application.log}} {{[-p|--print]}}`
`tspin {{path/to/file.log}} {{[-p|--print]}}`
- Read from `stdin` and print to `stdout`:
- Follow a file (mimics `tail -f`) and highlight new entries:
`echo "2021-01-01 12:00:00 [INFO] This is a log message" | tspin`
`tspin {{[-f|--follow]}} {{path/to/file.log}}`
- Highlight specific groups only (possible values: `numbers`, `urls`, `pointers`, `dates`, `paths`, `quotes`, `key-value-pairs`, `uuids`, `ip-addresses`, `processes`, `json`):
`tspin --enable {{urls,ip-addresses,...}} {{path/to/file.log}}`
- Use a custom pager (the `[FILE]` string is a required literal placeholder):
`tspin --pager "{{bat -p}} [FILE]" {{path/to/file.log}}`
- Highlight custom strings with custom colors:
`tspin --highlight {{red}}:{{ERROR,WARNING,...}} {{path/to/file.log}}`
- Run the provided command and view the output in `less`:
`tspin --exec='{{command}}'`