Landon Crabtree

Home

❯

pentesting

❯

notes

❯

Upgrading Reverse Shell to Interactive Shell

Upgrading Reverse Shell to Interactive Shell

Aug 26, 20241 min read

Upgrading Reverse Shell to Interactive Shell

https://0xffsec.com/handbook/shells/full-tty/ https://sushant747.gitbooks.io/total-oscp-guide/content/spawning_shells.html https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/

# Upgrade from sh to bash
python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'
perl -e 'exec "/bin/bash";'
 
# [CTRL+Z]
 
stty raw -echo && fg
export SHELL=/bin/bash; export TERM=screen; reset;

Graph View

Backlinks

  • Red Team Notes

Created with Quartz v4.5.0 © 2025

  • GitHub