Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 556 Bytes
#!/usr/bin/env python
bytes = [0x8C, 0xF1, 0x53, 0xA3, 0x8, 0xD7, 0xDC, 0x48, 0xDB, 0x0C, 0x3A, 0xEE, 0x15, 0x22, 0xC4, 0xE5, 0xC9, 0xA0, 0xA5, 0x0C, 0xD3, 0xDC, 0x51, 0xC7, 0x39, 0xFD, 0xD0, 0xF8, 0x3B, 0xE8, 0xCC, 0x3, 0x6, 0x43, 0xF7, 0xDA, 0x7E, 0x65, 0xAE, 0x80]
final = ''
total = 0
def brute(x):
global total, final
for b in range(0x20, 0x7f):
tmp = (((((((b ^ 0x33) + 0x44) & 0xff) ^ 0x55) - 0x66) & 0xff) ^ total)
if tmp == x:
final += chr(b)
total = (total + tmp) & 0xff
return
for i in range(40):
brute(bytes[i])
print final