Upgrading Reverse Shell to Interactive Shell
https://0xffsec.com/handbook/shells/full-tty/ https://sushant747.gitbooks.io/total-oscp-guide/content/spawning_shells.html https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/
# Upgrade from sh to bash
python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'
perl -e 'exec "/bin/bash";'
# [CTRL+Z]
stty raw -echo && fg
export SHELL=/bin/bash; export TERM=screen; reset;