Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-06 00:22:28 +00:00
parent 54605ccea2
commit 98e90b9247
16 changed files with 98 additions and 18 deletions

View File

@@ -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: <https://github.com/fortra/impacket>.
- Add a computer with a specific name and password:

View File

@@ -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: <https://bun.com/docs/pm/cli/outdated>.
- 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]}}`

41
tldr/bun-publish Normal file
View File

@@ -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: <https://bun.com/docs/pm/cli/publish>.
- 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}}`

View File

@@ -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: <https://manned.org/hping3>.
- Ping a destination with 4 ICMP ping requests:

25
tldr/linux/kmscon Normal file
View File

@@ -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: <https://manned.org/man/fedora-43/kmscon>.
- 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}}`

View File

@@ -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: <https://manned.org/masscan>.
- Scan an IP or network subnet for port 80:

View File

@@ -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: <https://docs.projectdiscovery.io/opensource/naabu/running>.
- Run a SYN scan against default (top 100) ports of remote host:

View File

@@ -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: <https://nmap.org/book/man.html>.
- Scan the top 1000 ports of a remote host with various [v]erbosity levels:

View File

@@ -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: <https://github.com/fortra/impacket>.
- Ping a host from a specified source IPv4 address:

View File

@@ -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: <https://github.com/fortra/impacket>.
- Ping an IPv6 host from a specified source IPv6 address:

View File

@@ -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: <https://github.com/bee-san/RustScan/wiki>.
- Scan all ports of one or more comma-delimited addresses using the default values:

View File

@@ -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: <https://github.com/fortra/impacket>.
- Upload and load a shared object file on a vulnerable Samba server:

View File

@@ -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: <https://github.com/fortra/impacket>.
- Connect to an SMB server with username and password:

View File

@@ -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: <https://github.com/fortra/impacket>.
- Set up a basic SMB share:

View File

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

View File

@@ -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: <https://manned.org/zmap>.
- Scan a subnet or full IPv4 space for a specific TCP port (default: 80):