Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/python
for test in xrange(1<<24):
correct = True
x = test
for i in xrange(5):
x = (x * 0x000343fd + 0x269ec3) & 0xFFFFFF
if (x>>16)!=key[i]:
correct = False
break
if correct:
print("Found it: ",hex(test))
print("Verify: ")
for i in xrange(5):
test = (test * 0x000343fd + 0x269ec3) & 0xFFFFFF
print(hex(test>>16),hex(test))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.