Forked from shelld0n/gist:36e34399e3fea54d65d4b6aef9e5bc70
Created
April 27, 2019 09:26
-
-
Save T3nb3w/9cc07ce6586f6bfa5518f6b1034a3a55 to your computer and use it in GitHub Desktop.
TTY SHELL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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