Most of the time we can use Python to spawn interactive shell. But sometimes Python might not be available.

Most Linux system will have /bin/sh or `/bin/bash.

/bin/sh -i

/bin/sh -i
sh: no job control in this shell
sh-4.2$

Perl

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

or

perl: exec "/bin/sh";

Ruby

ruby: exec "/bin/sh"

Lua

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

AWK

awk 'BEGIN {system("/bin/sh")}'

Find

Find is a command but can also be used to spawn interactive shell.

find / -name nameoffile -exec /bin/awk 'BEGIN {system("/bin/sh")}' \;

Or

find . -exec /bin/sh \; -quit

VIM

Vim is a text editor.

vim -c ':!/bin/sh'

Vim escape:

vim
:set shell=/bin/sh
:shell