TTY Shell

From non-tty-shell, there are certain commands that cannot be used.

Python

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

Echo

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

Sh

/bin/sh -i

Bash

/bin/bash -i

Perl

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

From within VI

:!bash

Last updated