Update cheatsheets

This commit is contained in:
ivuorinen
2024-07-22 00:15:48 +00:00
parent 839a19265f
commit baba8f052c
5 changed files with 42 additions and 5 deletions

View File

@@ -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:

View File

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

View File

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

View File

@@ -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: <https://jmk-foofus.github.io/medusa/medusa.html>.
- 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}}`

29
tldr/msfconsole Normal file
View File

@@ -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: <https://docs.rapid7.com/metasploit/msf-overview>.
- 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`