Created
October 8, 2021 15:12
-
-
Save Alyinghood/4fd68164822b07a63ed6d408b68a224f 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
import sys | |
bx = b"\x8C\x11\x93\xAA\xB2\x97\xFA\xBB\xBD\xF6\x63\xA8\xA5\xE1\x70\x23" | |
with open(sys.argv[1], "rb") as f: | |
with open(sys.argv[2], "wb") as wf: | |
last_read_len = len(bx) | |
while last_read_len >= len(bx): | |
ba = bytearray(f.read(16)) | |
last_read_len = len(ba) | |
for i in range(len(ba)): | |
ba[i] ^= bx[i] | |
wf.write(ba) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment