diff --git a/tldr/cut b/tldr/cut index d03d0e78..468c3cb9 100644 --- a/tldr/cut +++ b/tldr/cut @@ -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]}}` diff --git a/tldr/gpg b/tldr/gpg index f8d25e69..42712d23 100644 --- a/tldr/gpg +++ b/tldr/gpg @@ -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: . - Create a GPG public and private key interactively: diff --git a/tldr/linux/lxc-attach b/tldr/linux/lxc-attach index 92b9ac6c..2df30baa 100644 --- a/tldr/linux/lxc-attach +++ b/tldr/linux/lxc-attach @@ -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]}}` diff --git a/tldr/tlsx b/tldr/tlsx new file mode 100644 index 00000000..7bb298ae --- /dev/null +++ b/tldr/tlsx @@ -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: . + +- 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]}}` diff --git a/tldr/tspin b/tldr/tspin index a75abd4f..e3418cb8 100644 --- a/tldr/tspin +++ b/tldr/tspin @@ -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: . +> More information: . -- 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}}'`