Upgrading shell

Commands used to spawn a TTY shell

Using Python

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

Using bash

echo os.system('/bin/bash')

Using sh

/bin/sh -i

Using Perl

perl —e 'exec "/bin/sh";'

SSTY (Get Tab-autocomplete)

CTRL+Z // out of netcat
$ stty raw -echo
$ fg + [Enter x 2]


NetSec Spawning a TTY Shell: https://netsec.ws/?p=337

Ropnop's Upgrading Simple Shell to Fully interactive ttys: https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/

Last updated