Created
August 20, 2021 18:35
-
-
Save GordonOus/a677cd8e1e3a48765999424b128f0166 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
from binascii import unhexlify | |
enc_flag = 'Put the encrypted flag extracted from the pcap hear' | |
ct = 'the First Ciphertext we find' | |
ct2 = 'the second Ciphertext we find' | |
flag = '' | |
#Note the length of all the above texts are 36 bytes after decoding from ascii | |
for i,j in enumerate(ct): | |
flag += chr(j ^ ct2[i] ^ enc_flag[i]) | |
print(flag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment