Advertisement
emin_int11

0b4d

Aug 3rd, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from math import *
  2. exp = int(round(log2(0xdeadbeef),0))
  3. m = 0x2
  4. exps = exp % 20
  5. perm = int((factorial(exps)/factorial(exps-m)))
  6. pow = perm<<0xf
  7. #user input
  8. userinput = 322^pow
  9. ###################
  10. if(userinput == 0xfeedbeef):
  11. print("Win")
  12. else:
  13. print("bad")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement