Q:

upgrade shell tty

python -c 'import pty; pty.spawn("/bin/bash")'
0
# 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>
0
stty raw -echo
$ export SHELL=bash
$ export TERM=xterm256-color
$ stty rows 38 columns 116
0

New to Communities?

Join the community