Advertisement
elvanderb

PHDays Quals 2014: pyjail

Jan 27th, 2014
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. # solution to this: http://shell-storm.org/repo/CTF/PHDays-Quals-2014/Yet_another_pyjail-3900pts/
  2. # just replace EXPECTED's value in the globals of the function
  3. leetleetleetleet
  4. a = div(1)
  5. type(div)(a.func_code, {a.func_code.co_names[1]:0, a.func_code.co_names[0]:int}, closure=a.func_closure)(2)
  6. ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement