Upgrading simple shells
Spawning TTY
python -c "import pty; pty.spawn('/bin/bash')"echo os.system('/bin/bash')/bin/sh -iTab auto completion
CTRL + Z (background the session)
stty raw -echo
fg
resetFull TTY
# on attack machine
stty -a (note number of rows and columns)
echo $TERM
#on target machine
export TERM=xterm-256color (match term from attack machine)
stty row XX columns XXX (match from attack machine)
echo $SHELL -- if not bash, export SHELL=bashLast updated