A script with some common operations used to solve XOR challenges in CTFs.
python3 xorutils.py <encrypted/plain text file> <--key|-k> <key>
python3 xorutils.py plain.txt --key 123456
python3 xorutils.py plain.txt --key "spaced key"
python3 xorutils.py <encrypted/plain text file> <plain text/encrypted file>
python3 xorutils.py crypt.enc plain.txt
This generates a file called <encrypted/plain text file>.bf_res containing the results:
python3 xorutils.py <encrypted/plain text file> <--brute|-b>
This generates a file called crypt.enc.bf_res containing the results:
python3 xorutils.py crypt.enc --brute