Spawning a TTY Shell
1
python -c 'import pty; pty.spawn("/bin/sh")'
Copied!
1
echo os.system('/bin/bash')
Copied!
1
/bin/sh -i
Copied!
1
perl —e 'exec "/bin/sh";'
Copied!
1
perl: exec "/bin/sh";
Copied!
1
ruby: exec "/bin/sh"
Copied!
1
lua: os.execute('/bin/sh')
Copied!
1
(From within IRB) exec "/bin/sh"
Copied!
1
(From within vi) :!bash
Copied!
1
(From within vi) :set shell=/bin/bash:shell
Copied!
1
(From within nmap) !sh
Copied!
Last modified 2yr ago
Copy link