diff --git a/tldr/duckdb b/tldr/duckdb index 65ed3b9b..1a101104 100644 --- a/tldr/duckdb +++ b/tldr/duckdb @@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git - Read CSV from `stdin` and write CSV to `stdout`: -`cat {{path/to/source.csv}} | duckdb -c "{{COPY (FROM read_csv_auto('/dev/stdin')) TO '/dev/stdout' WITH (FORMAT CSV, HEADER)}}"` +`cat {{path/to/source.csv}} | duckdb -c "{{COPY (FROM read_csv('/dev/stdin')) TO '/dev/stdout' WITH (FORMAT CSV, HEADER)}}"` - Display help: diff --git a/tldr/fdupes b/tldr/fdupes index 68fdb6ed..32b71067 100644 --- a/tldr/fdupes +++ b/tldr/fdupes @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `fdupes {{directory1}} -R {{directory2}}` -- Search recursively and replace duplicates with hardlinks: +- Search recursively, considering hardlinks as duplicates: `fdupes -rH {{path/to/directory}}` diff --git a/tldr/find b/tldr/find index dade270a..905d9461 100644 --- a/tldr/find +++ b/tldr/find @@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git `find {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` -- Find empty (0 byte) files and delete them: +- Find empty files (0 byte) or directories and delete them verbosely: -`find {{root_path}} -type {{f}} -empty -delete` +`find {{root_path}} -type {{f|d}} -empty -delete -print` diff --git a/tldr/medusa b/tldr/medusa index ded5a63f..2c227252 100644 --- a/tldr/medusa +++ b/tldr/medusa @@ -3,11 +3,19 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Medusa +# medusa > A modular and parallel login brute-forcer for a variety of protocols. > More information: . +- List all installed modules: + +`medusa -d` + +- Show usage example of a specific module (use `medusa -d` for listing all installed modules): + +`medusa -M {{ssh|http|web-form|postgres|ftp|mysql|...}} -q` + - Execute brute force against an FTP server using a file containing usernames and a file containing passwords: `medusa -M ftp -h host -U {{path/to/username_file}} -P {{path/to/password_file}}` diff --git a/tldr/msfconsole b/tldr/msfconsole new file mode 100644 index 00000000..7bf0a048 --- /dev/null +++ b/tldr/msfconsole @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# msfconsole + +> Console for the Metasploit Framework. +> More information: . + +- Launch the console: + +`msfconsole` + +- Launch the console [q]uietly without any banner: + +`msfconsole --quiet` + +- Do [n]ot enable database support: + +`msfconsole --no-database` + +- E[x]ecute console commands (Note: use `;` for passing multiple commands): + +`msfconsole --execute-command "{{use auxiliary/server/capture/ftp; set SRVHOST 0.0.0.0; set SRVPORT 21; run}}"` + +- Display [v]ersion: + +`msfconsole --version`