mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 17:44:33 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
10
tldr/medusa
10
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: <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
29
tldr/msfconsole
Normal 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`
|
||||
Reference in New Issue
Block a user