# solution to this: http://shell-storm.org/repo/CTF/PHDays-Quals-2014/Yet_another_pyjail-3900pts/ # just replace EXPECTED's value in the globals of the function leetleetleetleet a = div(1) type(div)(a.func_code, {a.func_code.co_names[1]:0, a.func_code.co_names[0]:int}, closure=a.func_closure)(2) ---