
Stuck in a python restricted environment with things like 'exec' and 'import' being filtered

What about eval?

By breaking up the import so that the filter isn't picking it up and setting the eval to a variable that's not filtered, we can call system.

Well, not technically escaped. To actually escape you would need to call bash

---
Back to [[_WebSite Publish/CTF/CTF Index|CTF Index]]
Tags: #ctf #python #python_shell_escape
Related: