From 98e90b9247c07d10514312402c8115f5f3687e1f Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 6 Jan 2026 00:22:28 +0000 Subject: [PATCH] Update cheatsheets --- tldr/addcomputer.py | 3 ++- tldr/bun-outdated | 6 +++--- tldr/bun-publish | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/hping3 | 1 + tldr/linux/kmscon | 25 +++++++++++++++++++++++++ tldr/masscan | 1 + tldr/naabu | 1 + tldr/nmap | 1 + tldr/ping.py | 6 ++++-- tldr/ping6.py | 6 ++++-- tldr/rustscan | 1 + tldr/sambapipe.py | 1 + tldr/smbclient.py | 3 ++- tldr/smbserver.py | 3 ++- tldr/virt-viewer | 16 ++++++++-------- tldr/zmap | 1 + 16 files changed, 98 insertions(+), 18 deletions(-) create mode 100644 tldr/bun-publish create mode 100644 tldr/linux/kmscon diff --git a/tldr/addcomputer.py b/tldr/addcomputer.py index 720466ef..983d55ce 100644 --- a/tldr/addcomputer.py +++ b/tldr/addcomputer.py @@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # addcomputer.py -> Add a computer account to domain. +> Add a computer account to a domain. +> Part of the Impacket suite. > More information: . - Add a computer with a specific name and password: diff --git a/tldr/bun-outdated b/tldr/bun-outdated index 1d29f9fd..603b321e 100644 --- a/tldr/bun-outdated +++ b/tldr/bun-outdated @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # bun outdated -> List dependencies in your project that have newer versions available. +> List dependencies that have newer versions available. > More information: . - List all outdated dependencies in the current project: @@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git - Show outdated dependencies for specific workspaces: -`bun outdated --filter "{{workspace_pattern}}"` +`bun outdated {{[-F|--filter]}} "{{workspace_pattern}}"` - Recursively check all workspaces in a monorepo: -`bun outdated --recursive` +`bun outdated {{[-r|--recursive]}}` diff --git a/tldr/bun-publish b/tldr/bun-publish new file mode 100644 index 00000000..b69d0e14 --- /dev/null +++ b/tldr/bun-publish @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun publish + +> Publish a package to the npm registry. +> More information: . + +- Publish the current package to the npm registry: + +`bun publish` + +- Publish a package from a specific directory: + +`bun publish {{path/to/package_directory}}` + +- Publish a scoped package with specific access level: + +`bun publish --access {{public|restricted}}` + +- Publish a package to a custom registry: + +`bun publish --registry {{registry}}` + +- Run a dry run to see what would be published without uploading: + +`bun publish --dry-run` + +- Publish a package with a specific distribution tag: + +`bun publish --tag {{tag_name}}` + +- Publish with a one-time password for 2FA-enabled accounts: + +`bun publish --otp {{one_time_password}}` + +- Publish using a specific authentication type: + +`bun publish --auth-type {{web|legacy}}` diff --git a/tldr/hping3 b/tldr/hping3 index 66f0555d..27dd99e9 100644 --- a/tldr/hping3 +++ b/tldr/hping3 @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Advanced ping utility which supports protocols such TCP, UDP, and raw IP. > Best run with elevated privileges. +> See also: `masscan`, `naabu`, `nmap`, `rustscan`, `zmap`. > More information: . - Ping a destination with 4 ICMP ping requests: diff --git a/tldr/linux/kmscon b/tldr/linux/kmscon new file mode 100644 index 00000000..dfcd43df --- /dev/null +++ b/tldr/linux/kmscon @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# kmscon + +> Use the framebuffer instead of text mode to draw a terminal in a TTY. +> More information: . + +- Start `kmscon` on the first available TTY: + +`sudo kmscon` + +- Start `kmscon` in a specific TTY: + +`sudo kmscon --vt {{/dev/ttyX|ttyX|X}}` + +- Enable mouse support: + +`sudo kmscon --mouse` + +- Specify the command to use for login: + +`sudo kmscon {{[-l|--login]}} {{command}}` diff --git a/tldr/masscan b/tldr/masscan index bcdd3876..8af1baf6 100644 --- a/tldr/masscan +++ b/tldr/masscan @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A very fast network scanner. > Works best with elevated privileges. For help with Nmap compatibility, run `masscan --nmap`. +> See also: `hping3`, `naabu`, `nmap`, `rustscan`, `zmap`. > More information: . - Scan an IP or network subnet for port 80: diff --git a/tldr/naabu b/tldr/naabu index 4ab1971a..acff8db6 100644 --- a/tldr/naabu +++ b/tldr/naabu @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A fast port scanner written in Go with a focus on reliability and simplicity. > Note: Some features are only activated when `naabu` is run with root privileges such as SYN scan. +> See also: `hping3`, `masscan`, `nmap`, `rustscan`, `zmap`. > More information: . - Run a SYN scan against default (top 100) ports of remote host: diff --git a/tldr/nmap b/tldr/nmap index 5da4a31f..3c8515e3 100644 --- a/tldr/nmap +++ b/tldr/nmap @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Network exploration tool and security/port scanner. > Some features (e.g. SYN scan) activate only when `nmap` is run with root privileges. +> See also: `hping3`, `masscan`, `naabu`, `rustscan`, `zmap`. > More information: . - Scan the top 1000 ports of a remote host with various [v]erbosity levels: diff --git a/tldr/ping.py b/tldr/ping.py index 59e4c21c..bef1cb73 100644 --- a/tldr/ping.py +++ b/tldr/ping.py @@ -5,8 +5,10 @@ source: https://github.com/tldr-pages/tldr.git --- # ping.py -> Simple ICMP ping using Impacket to check if an IPv4 host is reachable. -> Sends ICMP echo requests and listens for echo replies. Requires root privileges for raw socket access (e.g., run with `sudo`). +> Check if an IPv4 host is reachable using ICMP. +> Sends ICMP echo requests and listens for echo replies. +> Note: Requires root privileges for raw socket access (e.g., run with `sudo`). +> Part of the Impacket suite. > More information: . - Ping a host from a specified source IPv4 address: diff --git a/tldr/ping6.py b/tldr/ping6.py index c4a11995..34a11ae7 100644 --- a/tldr/ping6.py +++ b/tldr/ping6.py @@ -5,8 +5,10 @@ source: https://github.com/tldr-pages/tldr.git --- # ping6.py -> Simple ICMPv6 ping using Impacket to check if an IPv6 host is reachable. -> Sends ICMPv6 echo requests and listens for echo replies. Requires root privileges for raw socket access (e.g., run with `sudo`). +> Check if an IPv6 host is reachable using ICMPv6. +> Sends ICMPv6 echo requests and listens for echo replies. +> Note: Requires root privileges for raw socket access (e.g., run with `sudo`). +> Part of the Impacket suite. > More information: . - Ping an IPv6 host from a specified source IPv6 address: diff --git a/tldr/rustscan b/tldr/rustscan index 07c25f98..70e0a981 100644 --- a/tldr/rustscan +++ b/tldr/rustscan @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Modern Port Scanner written in Rust. > Note: `nmap` must be installed for some of the examples below to work. +> See also: `hping3`, `masscan`, `naabu`, `nmap`, `zmap`. > More information: . - Scan all ports of one or more comma-delimited addresses using the default values: diff --git a/tldr/sambapipe.py b/tldr/sambapipe.py index 534bfa88..9f543a19 100644 --- a/tldr/sambapipe.py +++ b/tldr/sambapipe.py @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sambaPipe.py > Exploit CVE-2017-7494 (SambaCry) to upload and load a shared object (SO) file on a vulnerable Samba server for remote code execution. +> Part of the Impacket suite. > More information: . - Upload and load a shared object file on a vulnerable Samba server: diff --git a/tldr/smbclient.py b/tldr/smbclient.py index 93a592e6..44d9b6dc 100644 --- a/tldr/smbclient.py +++ b/tldr/smbclient.py @@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # smbclient.py -> A Python-based SMB client for interacting with SMB servers. +> Interact with SMB servers. +> Part of the Impacket suite. > More information: . - Connect to an SMB server with username and password: diff --git a/tldr/smbserver.py b/tldr/smbserver.py index 7d977255..d7595a88 100644 --- a/tldr/smbserver.py +++ b/tldr/smbserver.py @@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # smbserver.py -> A Python-based SMB server for hosting shares (requires root for port 445). +> Host SMB shares. +> Part of the Impacket suite. > More information: . - Set up a basic SMB share: diff --git a/tldr/virt-viewer b/tldr/virt-viewer index 67b037c1..a6f07038 100644 --- a/tldr/virt-viewer +++ b/tldr/virt-viewer @@ -12,20 +12,20 @@ source: https://github.com/tldr-pages/tldr.git - Launch `virt-viewer` with a prompt to select running virtual machines: -`virt-viewer` +`virt-viewer {{[-c|--connect]}} {{qemu:///system|qemu:///session|...}}` - Launch `virt-viewer` for a specific virtual machine by ID, UUID, or name: -`virt-viewer "{{domain}}"` +`virt-viewer {{[-c|--connect]}} {{URI}} {{domain}}` -- Wait for a virtual machine to start and automatically reconnect if it shutdown and restarts: +- Wait for a virtual machine to start and automatically reconnect if it shuts down and restarts: -`virt-viewer --reconnect --wait "{{domain}}"` +`virt-viewer {{[-c|--connect]}} {{URI}} {{[-r|--reconnect]}} {{[-w|--wait]}} {{domain}}` -- Connect to a specific remote virtual machine over TLS: +- Connect to a specific remote virtual machine over TLS (requires pre-configured TLS certificates): -`virt-viewer --connect "xen//{{url}}" "{{domain}}"` +`virt-viewer {{[-c|--connect]}} {{qemu+tls://host/system}} {{domain}}` -- Connect to a specific remote virtual machine over SSH: +- Connect to a specific remote virtual machine over SSH (requires SSH access to the host): -`virt-viewer --connect "qemu+ssh//{{username}}@{{url}}/system" "{{domain}}"` +`virt-viewer {{[-c|--connect]}} {{xen+ssh://username@host/system}} {{domain}}` diff --git a/tldr/zmap b/tldr/zmap index 15d4ad24..057b866c 100644 --- a/tldr/zmap +++ b/tldr/zmap @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # zmap > Fast, open-source network scanner for Internet-wide surveys. +> See also: `hping3`, `masscan`, `naabu`, `nmap`, `rustscan`. > More information: . - Scan a subnet or full IPv4 space for a specific TCP port (default: 80):