This file contains 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
from struct import unpack | |
from sys import argv, exit | |
import os | |
from itertools import cycle | |
def xor(a,b): | |
return bytes([i ^ j for i,j in zip(a, cycle(b))]) | |
f = open(argv[1], 'rb') |
This file contains 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
from struct import unpack | |
from sys import argv, exit | |
import os | |
from itertools import cycle | |
def xor(a,b): | |
return bytes([i ^ j for i,j in zip(a, cycle(b))]) | |
f = open(argv[1], 'rb') |
This file contains 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
from struct import unpack | |
from sys import argv, exit | |
import os | |
from itertools import cycle | |
def xor(a,b): | |
return bytes([i ^ j for i,j in zip(a, cycle(b))]) | |
f = open(argv[1], 'rb') |