Skip to content

Commit

Permalink
Update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripospisil committed Apr 16, 2024
1 parent fd9c523 commit c03c0c5
Show file tree
Hide file tree
Showing 252 changed files with 1,325 additions and 393 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");
const Allocator = std.mem.Allocator;

const VERSION = "0.0.17";
const VERSION = "0.0.18";

fn embedData(b: *std.Build, exe: *std.Build.Step.Compile) !void {
var options = b.addOptions();
Expand Down
2 changes: 1 addition & 1 deletion pages/common/7zr.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 7zr

> File archiver with a high compression ratio.
> Similar to `7z` except that it only supports `.7z` files.
> Similar to `7z` except that it only supports 7z files.
> More information: <https://manned.org/7zr>.
- [a]rchive a file or directory:
Expand Down
20 changes: 0 additions & 20 deletions pages/common/amass-db.md

This file was deleted.

16 changes: 10 additions & 6 deletions pages/common/amass-enum.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
# amass enum

> Find subdomains of a domain.
> More information: <https://github.com/OWASP/Amass/blob/master/doc/user_guide.md#the-enum-subcommand>.
> More information: <https://github.com/owasp-amass/amass/blob/master/doc/user_guide.md#the-enum-subcommand>.
- Passively find subdomains of a [d]omain:
- Find (passively) subdomains of a [d]omain:

`amass enum -passive -d {{domain_name}}`
`amass enum -d {{domain_name}}`

- Find subdomains of a [d]omain and actively verify them attempting to resolve the found subdomains:

`amass enum -active -d {{domain_name}} -p {{80,443,8080}}`

- Do a brute force search for subdomains:
- Do a brute force search for sub[d]omains:

`amass enum -brute -d {{domain_name}}`

- Save the results to a text file:

`amass enum -o {{output_file}} -d {{domain_name}}`

- Save the results to a database:
- Save terminal output to a file and other detailed output to a directory:

`amass enum -o {{output_file}} -dir {{path/to/database_directory}}`
`amass enum -o {{output_file}} -dir {{path/to/directory}} -d {{domain_name}}`

- List all available data sources:

`amass enum -list`
10 changes: 7 additions & 3 deletions pages/common/amass-intel.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# amass intel

> Collect open source intel on an organisation like root domains and ASNs.
> More information: <https://github.com/OWASP/Amass/blob/master/doc/user_guide.md#the-intel-subcommand>.
> More information: <https://github.com/owasp-amass/amass/blob/master/doc/user_guide.md#the-intel-subcommand>.
- Find root domains in an IP address range:
- Find root domains in an IP [addr]ess range:

`amass intel -addr {{192.168.0.1-254}}`

Expand All @@ -15,7 +15,7 @@

`amass intel -whois -d {{domain_name}}`

- Find ASNs belonging to an organisation:
- Find ASNs belonging to an [org]anisation:

`amass intel -org {{organisation_name}}`

Expand All @@ -26,3 +26,7 @@
- Save results to a text file:

`amass intel -o {{output_file}} -whois -d {{domain_name}}`

- List all available data sources:

`amass intel -list`
10 changes: 5 additions & 5 deletions pages/common/amass.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# amass

> In-depth Attack Surface Mapping and Asset Discovery tool.
> Some subcommands such as `amass db` have their own usage documentation.
> More information: <https://github.com/OWASP/Amass>.
> Some subcommands such as `amass intel` have their own usage documentation.
> More information: <https://github.com/owasp-amass/amass>.
- Execute an Amass subcommand:

`amass {{subcommand}}`
`amass {{intel|enum}} {{options}}`

- Display help:

`amass -help`

- Display help on an Amass subcommand (like `intel`, `enum`, etc.):
- Display help on an Amass subcommand:

`amass -help {{subcommand}}`
`amass {{intel|enum}} -help`

- Display version:

Expand Down
1 change: 1 addition & 0 deletions pages/common/audacious.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# audacious

> An open-source audio player. Indirectly based on XMMS.
> See also: `clementine`, `mpc`, `ncmpcpp`.
> More information: <https://audacious-media-player.org>.
- Launch the GUI:
Expand Down
6 changes: 3 additions & 3 deletions pages/common/autossh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# autossh

> Run, monitor and restart SSH connections.
> Auto-reconnects to keep port forwarding tunnels up. Accepts all `ssh` flags.
> Auto-reconnects to keep port forwarding tunnels up. Accepts all SSH flags.
> More information: <https://www.harding.motd.ca/autossh>.
- Start an SSH session, restarting when the [M]onitoring port fails to return data:
Expand All @@ -12,7 +12,7 @@

`autossh -M {{monitor_port}} -L {{local_port}}:localhost:{{remote_port}} {{user}}@{{host}}`

- Fork `autossh` into the background before executing `ssh` and do [N]ot open a remote shell:
- Fork `autossh` into the background before executing SSH and do [N]ot open a remote shell:

`autossh -f -M {{monitor_port}} -N "{{ssh_command}}"`

Expand All @@ -24,6 +24,6 @@

`autossh -f -M 0 -N -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -o ExitOnForwardFailure=yes -L {{local_port}}:localhost:{{remote_port}} {{user}}@{{host}}`

- Run in the background, logging `autossh` debug output and `ssh` verbose output to files:
- Run in the background, logging `autossh` debug output and SSH verbose output to files:

`AUTOSSH_DEBUG=1 AUTOSSH_LOGFILE={{path/to/autossh_log_file.log}} autossh -f -M {{monitor_port}} -v -E {{path/to/ssh_log_file.log}} {{ssh_command}}`
2 changes: 1 addition & 1 deletion pages/common/avrdude.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> Driver program for Atmel AVR microcontrollers programming.
> More information: <https://www.nongnu.org/avrdude/>.
- [r]ead the flash ROM of a AVR microcontroller with a specific [p]art id:
- [r]ead the flash ROM of a AVR microcontroller with a specific [p]art ID:

`avrdude -p {{part_no}} -c {{programmer_id}} -U flash:r:{{file.hex}}:i`

Expand Down
2 changes: 1 addition & 1 deletion pages/common/az-sshkey.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# az sshkey

> Manage ssh public keys with virtual machines.
> Manage SSH public keys with virtual machines.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/sshkey>.
Expand Down
2 changes: 1 addition & 1 deletion pages/common/az-vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

`az vm list`

- Create a virtual machine using the default Ubuntu image and generate ssh keys:
- Create a virtual machine using the default Ubuntu image and generate SSH keys:

`az vm create --resource-group {{rg}} --name {{vm_name}} --image {{UbuntuLTS}} --admin-user {{azureuser}} --generate-ssh-keys`

Expand Down
4 changes: 4 additions & 0 deletions pages/common/base32.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

`base32 {{path/to/file}}`

- Wrap encoded output at a specific width (`0` disables wrapping):

`base32 --wrap {{0|76|...}} {{path/to/file}}`

- Decode a file:

`base32 --decode {{path/to/file}}`
Expand Down
4 changes: 4 additions & 0 deletions pages/common/base64.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

`base64 {{path/to/file}}`

- Wrap encoded output at a specific width (`0` disables wrapping):

`base64 --wrap {{0|76|...}} {{path/to/file}}`

- Decode the base64 contents of a file and write the result to `stdout`:

`base64 --decode {{path/to/file}}`
Expand Down
28 changes: 28 additions & 0 deletions pages/common/bpkg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# bpkg

> A package manager for Bash scripts.
> More information: <https://github.com/bpkg/bpkg>.
- Update the local index:

`bpkg update`

- Install a package globally:

`bpkg install --global {{package}}`

- Install a package in a subdirectory of the current directory:

`bpkg install {{package}}`

- Install a specific version of a package globally:

`bpkg install {{package}}@{{version}} -g`

- Show details about a specific package:

`bpkg show {{package}}`

- Run a command, optionally specifying its arguments:

`bpkg run {{command}} {{argument1 argument2 ...}}`
2 changes: 1 addition & 1 deletion pages/common/bzegrep.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@

`bzegrep --only-matching "{{search_pattern}}" {{path/to/file}}`

- Recursively search files in a `bzip2` compressed `tar` archive for a pattern:
- Recursively search files in a bzip2 compressed tar archive for a pattern:

`bzegrep --recursive "{{search_pattern}}" {{path/to/file}}`
2 changes: 1 addition & 1 deletion pages/common/bzfgrep.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@

`bzfgrep --only-matching "{{search_string}}" {{path/to/file}}`

- Recursively search files in a `bzip2` compressed `tar` archive for the given list of strings:
- Recursively search files in a bzip2 compressed tar archive for the given list of strings:

`bzfgrep --recursive "{{search_string}}" {{path/to/file}}`
2 changes: 1 addition & 1 deletion pages/common/bzgrep.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

`bzgrep --only-matching "{{search_pattern}}" {{path/to/file}}`

- Recursively search files in a `bzip2` compressed `tar` archive for a pattern:
- Recursively search files in a bzip2 compressed tar archive for a pattern:

`bzgrep --recursive "{{search_pattern}}" {{path/to/tar/file}}`

Expand Down
1 change: 1 addition & 0 deletions pages/common/cal.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# cal

> Display a calendar with the current day highlighted.
> See also: `gcal`.
> More information: <https://manned.org/cal.1p>.
- Display a calendar for the current month:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/cargo-init.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cargo init

> Create a new Cargo package.
> Equivalent of `cargo new`, but specifiying a directory is optional.
> Equivalent of `cargo new`, but specifying a directory is optional.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-init.html>.
- Initialize a Rust project with a binary target in the current directory:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/cargo-new.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cargo new

> Create a new Cargo package.
> Equivalent of `cargo init`, but specifiying a directory is required.
> Equivalent of `cargo init`, but specifying a directory is required.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-new.html>.
- Create a new Rust project with a binary target:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/cargo-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

`cargo report {{future-incompatibilities|...}}`

- Display a report with the specified Cargo-generated id:
- Display a report with the specified Cargo-generated ID:

`cargo report {{future-incompatibilities|...}} --id {{id}}`

Expand Down
1 change: 1 addition & 0 deletions pages/common/chezmoi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Chezmoi

> A multi-machine dotfile manager, written in Go.
> See also: `stow`, `tuckr`, `vcsh`, `homeshick`.
> More information: <https://chezmoi.io>.
- Setup up `chezmoi`, creating a Git repository in `~/.local/share/chezmoi`:
Expand Down
11 changes: 10 additions & 1 deletion pages/common/chisel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# chisel

> Create TCP tunnels. Includes both client and server.
> Create TCP/UDP tunnels, transported over HTTP, secured via SSH.
> Includes both client and server in the same `chisel` executable.
> More information: <https://github.com/jpillora/chisel>.
- Run a Chisel server:
Expand All @@ -26,3 +27,11 @@
- Connect to a Chisel server using username and password authentication:

`chisel client --auth {{username}}:{{password}} {{server_ip}}:{{server_port}} {{local_port}}:{{remote_server}}:{{remote_port}}`

- Initialize a Chisel server in reverse mode on a specific port, also enabling SOCKS5 proxy (on port 1080) functionality:

`chisel server -p {{server_port}} --reverse --socks5`

- Connect to a Chisel server at specific IP and port, creating a reverse tunnel mapped to a local SOCKS proxy:

`chisel client {{server_ip}}:{{server_port}} R:socks`
8 changes: 4 additions & 4 deletions pages/common/circo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):

`circo -T {{png}} -O {{path/to/input.gv}}`

- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):

`circo -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`

- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:

`circo -T {{format}} -O {{path/to/input.gv}}`

- Render a `gif` image using `stdin` and `stdout`:
- Render a GIF image using `stdin` and `stdout`:

`echo "{{digraph {this -> that} }}" | circo -T {{gif}} > {{path/to/image.gif}}`

Expand Down
1 change: 1 addition & 0 deletions pages/common/clementine.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# clementine

> A modern music player and library organizer.
> See also: `audacious`, `qmmp`, `cmus`, `mpv`.
> More information: <https://github.com/clementine-player/Clementine/wiki>.
- Start the GUI or bring it to front:
Expand Down
1 change: 1 addition & 0 deletions pages/common/clifm.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# clifm

> The command-line file manager.
> See also: `vifm`, `ranger`, `mc`, `nautilus`.
> More information: <https://github.com/leo-arch/clifm>.
- Start CliFM:
Expand Down
Loading

0 comments on commit c03c0c5

Please sign in to comment.