Created
May 9, 2017 01:56
-
-
Save Kvetch/2ca3e320c61ef20f57cb94020268743f to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python2 | |
# 6 bytes | |
inputfile = open('BlahBlahBlah', 'rb') | |
outputfile = open('output','w+b') | |
decode = [0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA] | |
counter = 0 | |
byte = inputfile.read(1) | |
while byte != "": | |
#print byte | |
byte = ord(byte) | |
byte = byte ^ decode[counter] | |
counter += 1 | |
if counter > 6: | |
counter = 0 | |
#print byte | |
outputfile.write('%c' % byte) | |
byte = inputfile.read(1) | |
outputfile.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment