finalshare

brutecrc32

Sep 28th, 2017
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import zlib
  2. f = open("flag.txt","w")
  3. for a in range(0,256):
  4.     print a
  5.     for b in range(0,256):
  6.         for c in range(0,256):
  7.             for d in range(0,256):
  8.                 prev = zlib.crc32(chr(a)+chr(b)+chr(c)+chr(d), 4246039339)& 0xFFFFFFFF
  9.                 if (prev == d*256*256*256 + c*256*256 + b*256+a):
  10.                     f.write(a +" " +b+" "+c +" "+d)
  11.                     print a +" " +b+" "+c +" "+d;
  12.                     f.close()
  13.                     exit()
RAW Paste Data