Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 309 Bytes

Shell-Upgrade.md

File metadata and controls

20 lines (15 loc) · 309 Bytes
Interactive Shell

Upgrading to a fully interactive TTY using Python

# Enter while in reverse shell
$ python -c 'import pty; pty.spawn("/bin/bash")'

Ctrl-Z

# In Kali
$ stty raw -echo
$ fg

# In reverse shell
$ reset
$ export SHELL=bash
$ export TERM=xterm-256color
$ stty rows <num> columns <cols>