Skip to content

Instantly share code, notes, and snippets.

@Alyinghood
Created October 8, 2021 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alyinghood/4fd68164822b07a63ed6d408b68a224f to your computer and use it in GitHub Desktop.
Save Alyinghood/4fd68164822b07a63ed6d408b68a224f to your computer and use it in GitHub Desktop.
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