🚩CTFs shortcuts

Find flag

# if the flag looks like : flag{*****}
grep -irl flag{ $path

# if the flag is a .txt file
find / -iname "*.txt" 2>/dev/null
find / -iname "config.php" 2>/dev/null
find / -iname "flag.txt" 2>/dev/null

# find presence of chrootkit
find / -type f -name chkrootkit 2>/dev/null

Web Dev

Mozilla Firefox

CTRL + SHIFT + I

HTTP Headers Response

Stabilize Reverse shell

use CTRL + C

There's three popular ways I use to stabilize a reverse shell;

  • Python, as mentioned above.

  • riwrap, which prepends to a netcat shell for additional terminal features.

  • Socat, which is a step above netcat but must be manually transferred over and launched on the target machine.

Last updated

Was this helpful?