Skip to content

Instantly share code, notes, and snippets.

@shelld0n
Created December 23, 2018 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shelld0n/36e34399e3fea54d65d4b6aef9e5bc70 to your computer and use it in GitHub Desktop.
Save shelld0n/36e34399e3fea54d65d4b6aef9e5bc70 to your computer and use it in GitHub Desktop.
TTY SHELL
# 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment