Shell Stabilizing

Python shell

#On REV shell
which python
# python3
python3 -c 'import pty;pty.spawn("/bin/bash")'
export TERM=xterm

# python2.7
python -c 'import pty; pty.spawn("/bin/bash")'
  • On Attacker PC : -- Ctrl + Z -- Enter -- stty raw -echo in attacking terminal and note down the values for rows and columns.

stty raw -echo; fg
stty rows NUMBER cols NUMBER

Script shell

# On REV shell
which script 
/usr/bin/script -qc /bin/bash /dev/null
export TERM=xterm

Last updated