TTY Shells

Spawn a TTY Shell

PYTHON:

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

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



SH:

/bin/sh -i



PERL:

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

perl: exec "/bin/sh";



RUBY:

ruby: exec "/bin/sh"



LUA:

lua: os.execute('/bin/sh')



IRB:

(From within IRB)

exec "/bin/sh"



VIM:

(From within vi)

:!bash

OR

(From within vi)

:set shell=/bin/bash:shell



NMAP:

(From within nmap)

!sh