Tags: python pyjail 

Rating:

Full WriteUp

Full Writeup on our website: https://www.aperikube.fr/docs/inshack_2019/hell_of_a_jail/

TL;DR

Using getattr() to access to exit.__code__, to understand how the function works. Then access the os module via exit.__globals__, to get a shell.

Original writeup (https://www.aperikube.fr/docs/inshack_2019/hell_of_a_jail/).