less than 1 minute read

SHELL=/bin/bash script -q /dev/null
Ctrl-Z
stty raw -echo
fg
reset
xterm

Let’s upgrade to a tty shell and continue enumeration.

SHELL=/bin/bash script -q /dev/null

If the target has python installed you can upgrade shell with this:

python3 -c "import pty;pty.spawn('/bin/bash')"

Additional Notes for general upgrading terminal are here:

Upgrade a Dumb Shell to a Fully Interactive Shell for More Flexibility