From 49835eed5805c7463ece0aae88d7ad5abf784c9c Mon Sep 17 00:00:00 2001 From: dade <0xdade@users.noreply.github.com> Date: Thu, 20 Jul 2017 19:22:59 -0700 Subject: [PATCH] Create stty.sh --- Upgrade-Shells/stty.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Upgrade-Shells/stty.sh diff --git a/Upgrade-Shells/stty.sh b/Upgrade-Shells/stty.sh new file mode 100644 index 0000000..b7a4190 --- /dev/null +++ b/Upgrade-Shells/stty.sh @@ -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 columns