diff --git a/tldr/elinks b/tldr/elinks index aa59289c..ba41dc61 100644 --- a/tldr/elinks +++ b/tldr/elinks @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # elinks > A text based browser similar to `lynx`. -> More information: . +> More information: . - Start ELinks: diff --git a/tldr/linux/swww b/tldr/linux/swww new file mode 100644 index 00000000..036b9cbb --- /dev/null +++ b/tldr/linux/swww @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# swww + +> Efficient animated wallpaper daemon for Wayland. +> See also: `swww-daemon`. +> More information: . + +- Set wallpaper: + +`swww img {{path/to/image}}` + +- Set wallpaper to specified [o]utputs: + +`swww img -o {{output1,output2,...}} {{path/to/image}}` + +- Restore last wallpaper: + +`swww restore` + +- Kill daemon: + +`swww kill` + +- Display output information: + +`swww query` diff --git a/tldr/linux/tzselect b/tldr/linux/tzselect new file mode 100644 index 00000000..6fa0522d --- /dev/null +++ b/tldr/linux/tzselect @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# tzselect + +> Interactively select timezone. +> Note: this program doesn't actually set the timezone. +> More information: . + +- Open the interactive menu for timezone selection and print the selected timezone to `stdout`: + +`tzselect` + +- Ask for nearest timezone to coordinates in ISO 6709 notation: + +`tzselect -c {{coordinates}}` diff --git a/tldr/linux/zic b/tldr/linux/zic new file mode 100644 index 00000000..e85b443b --- /dev/null +++ b/tldr/linux/zic @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# zic + +> Compile timezones into binary files. +> More information: . + +- Compile a timezone file from a directory: + +`zic -d {{path/to/directory}}` + +- Report warnings during compilation of a specific file: + +`zic -v {{path/to/file}}.infile` diff --git a/tldr/npm-access b/tldr/npm-access new file mode 100644 index 00000000..d7c15354 --- /dev/null +++ b/tldr/npm-access @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm access + +> Set access level on published packages. +> More information: . + +- List packages for a user or scope: + +`npm access list packages {{user|scope|scope:team}} {{package_name}}` + +- List collaborators on a package: + +`npm access list collaborators {{package_name}} {{username}}` + +- Get status of a package: + +`npm access get status {{package_name}}` + +- Set package status (public or private): + +`npm access set status={{public|private}} {{package_name}}` + +- Grant access to a package: + +`npm access grant {{read-only|read-write}} {{scope:team}} {{package_name}}` + +- Revoke access to a package: + +`npm access revoke {{scope:team}} {{package_name}}` + +- Configure two-factor authentication requirement: + +`npm access set mfa={{none|publish|automation}} {{package_name}}` diff --git a/tldr/ntpctl b/tldr/ntpctl new file mode 100644 index 00000000..bd56b421 --- /dev/null +++ b/tldr/ntpctl @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ntpctl + +> Display information about the running instance of OpenNTPD. +> More information: . + +- Show all data: + +`ntpctl -s {{a|all}}` + +- Show information about each peer: + +`ntpctl -s {{p|peers}}` + +- Show the status of peers and sensors, and whether the system clock is synced: + +`ntpctl -s {{s|status}}` + +- Show information about each sensor: + +`ntpctl -s {{S|Sensors}}` diff --git a/tldr/nxc-mssql b/tldr/nxc-mssql new file mode 100644 index 00000000..643a9903 --- /dev/null +++ b/tldr/nxc-mssql @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# nxc mssql + +> Pentest and exploit Microsoft SQL servers. +> More information: . + +- Search for valid credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords: + +`nxc mssql {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- Execute the specified SQL [q]uery on the target server: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} --query '{{SELECT * FROM sys.databases;}}'` + +- Execute the specified shell command on the target server through MSSQL: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} -x {{whoami}}` + +- Execute the specified PowerShell command on the target server through MSSQL without retrieving output: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} -X {{whoami}} --no-output` + +- Download a remote file from the target server and store it in the specified location: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} --get-file {{C:\path o emote_file}} {{path/to/local_file}}` + +- Upload a local file to the specified location on the target server: + +`nxc mssql {{192.168.178.2}} -u {{username}} -p {{password}} --put-file {{path/to/local_file}} {{C:\path o emote_file}}` diff --git a/tldr/nxc-nfs b/tldr/nxc-nfs new file mode 100644 index 00000000..30f86d4a --- /dev/null +++ b/tldr/nxc-nfs @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# nxc nfs + +> Pentest and exploit NFS servers. Currently supports anonymous mode only. +> More information: . + +- Detect the version of a remote NFS server: + +`nxc nfs {{192.168.178.0/24}}` + +- List the available NFS shares: + +`nxc nfs {{192.168.178.2}} --shares` + +- Enumerate the exposed shares recursively to the specified depth: + +`nxc nfs {{192.168.178.2}} --enum-shares {{5}}` + +- Download the specified remote file: + +`nxc nfs {{192.168.178.2}} --get-file {{path/to/remote_file}} {{path/to/local_file}}` + +- Upload the specified local file to the remote share: + +`nxc nfs {{192.168.178.2}} --put-file {{path/to/local_file}} {{path/to/remote_file}}` diff --git a/tldr/nxc-rdp b/tldr/nxc-rdp new file mode 100644 index 00000000..443f153c --- /dev/null +++ b/tldr/nxc-rdp @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# nxc rdp + +> Pentest and exploit RDP servers. +> More information: . + +- Search for valid credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords: + +`nxc rdp {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- Take a screenshot after waiting the for specified number of seconds: + +`nxc rdp {{192.168.178.2}} -u {{username}} -p {{password}} --screenshot --screentime {{10}}` + +- Take a screenshot in the specified resolution: + +`nxc rdp {{192.168.178.2}} -u {{username}} -p {{password}} --screenshot --res {{1024x768}}` + +- Take a screenshot of the RDP login prompt if Network Level Authentication is disabled: + +`nxc rdp {{192.168.178.2}} -u {{username}} -p {{password}} --nla-screenshot` diff --git a/tldr/nxc-vnc b/tldr/nxc-vnc new file mode 100644 index 00000000..eb833356 --- /dev/null +++ b/tldr/nxc-vnc @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# nxc vnc + +> Pentest and exploit VNC servers. +> More information: . + +- Search for valid credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords: + +`nxc vnc {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}` + +- Avoid rate limiting through VNC-sleep: + +`nxc vnc {{192.168.178.2}} -u {{{path/to/usernames.txt}}} -p {{path/to/passwords.txt}} --vnc-sleep {{10}}` + +- Take a screenshot on the remote system after waiting the specified amount of time: + +`nxc vnc {{192.168.178.2}} -u {{{username}}} -p {{password}} --screenshot --screentime {{10}}` diff --git a/tldr/nxcdb b/tldr/nxcdb new file mode 100644 index 00000000..0c399c0a --- /dev/null +++ b/tldr/nxcdb @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# nxcdb + +> Interact with the NetExec database. +> More information: . + +- Enter an interactive database session: + +`nxcdb` + +- Display the currently active workspace: + +`nxcdb --get-workspace` + +- Create a new workspace: + +`nxcdb --create-workspace {{workspace_name}}` + +- Activate the specified workspace: + +`nxcdb --set-workspace {{workspace_name}}` diff --git a/tldr/pandoc b/tldr/pandoc index b5aee03b..90b2c483 100644 --- a/tldr/pandoc +++ b/tldr/pandoc @@ -6,19 +6,19 @@ source: https://github.com/tldr-pages/tldr.git # pandoc > Convert documents between various formats. -> More information: . +> More information: . - Convert file to PDF (the output format is determined by file extension): -`pandoc {{input.md}} -o {{output.pdf}}` +`pandoc {{path/to/input.md}} {{-o|--output}} {{path/to/output.pdf}}` - Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.): -`pandoc {{input.md}} -s -o {{output.html}}` +`pandoc {{path/to/input.md}} {{-s|--standalone}} {{-o|--output}} {{path/to/output.html}}` -- Force conversion to use a specific format: +- Manually specify format detection and conversion (overriding automatic format detection using filename extension or when filename extension is missing altogether): -`pandoc {{input.docx}} --to {{gfm}} -o {{output.md}}` +`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{-o|--output}} {{path/to/output}}` - List all supported input formats: diff --git a/tldr/step b/tldr/step new file mode 100644 index 00000000..950481d7 --- /dev/null +++ b/tldr/step @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# step + +> An easy-to-use CLI tool for building, operating, and automating Public Key Infrastructure (PKI) systems and workflows. +> See also: `openssl`. +> More information: . + +- Inspect the contents of a certificate: + +`step certificate inspect {{path/to/certificate.crt}}` + +- Create a root CA certificate and a key (append `--no-password --insecure` to skip private key password protection): + +`step certificate create "{{Example Root CA}}" {{path/to/root-ca.crt}} {{path/to/root-ca.key}} --profile root-ca` + +- Generate a certificate for a specific hostname and sign it with the root CA (generating a CSR can be skipped for simplification): + +`step certificate create {{hostname.example.com}} {{path/to/hostname.crt}} {{path/to/hostname.key}} --profile leaf --ca {{path/to/root-ca.crt}} --ca-key {{path/to/root-ca.key}}` + +- Verify a certificate chain: + +`step certificate verify {{path/to/hostname.crt}} --roots {{path/to/root-ca.crt}} --verbose` + +- Convert a PEM format certificate to DER and write it to disk: + +`step certificate format {{path/to/certificate.pem}} --out {{path/to/certificate.der}}` + +- Install or uninstall a root certificate in the system's default trust store: + +`step certificate {{install|uninstall}} {{path/to/root-ca.crt}}` + +- Create a RSA/EC private and public keypair (append `--no-password --insecure` to skip private key password protection): + +`step crypto keypair {{path/to/public_key}} {{path/to/private_key}} --kty {{RSA|EC}}` + +- Show help for subcommands: + +`step {{path|base64|certificate|completion|context|crl|crypto|oauth|ca|beta|ssh}} --help`