Created
November 11, 2016 03:26
-
-
Save levisre/24e5f361db9dd4958f7c1bd957792f5d to your computer and use it in GitHub Desktop.
Flare-on 2016 Challenge 6 Solver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
def solver(win_msg): | |
tmp = "312a232f272e27313162322e372548" | |
stuffs = [67, | |
139, | |
119, | |
165, | |
232, | |
86, | |
207, | |
61, | |
79, | |
67, | |
45, | |
58, | |
230, | |
190, | |
181, | |
74, | |
65, | |
148, | |
71, | |
243, | |
246, | |
67, | |
142, | |
60, | |
61, | |
92, | |
58, | |
115, | |
240, | |
226, | |
171] | |
stuffer = hashlib.md5(win_msg + tmp).digest() | |
for x in range(len(stuffs)): | |
print chr(stuffs[x] ^ ord(stuffer[x % len(stuffer)])), | |
for count in range(2,26): | |
win_msg = 'Wahoo, you guessed it with %d guesses\n' % count | |
print "\n%d" % count | |
solver(win_msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment