Skip to content

Instantly share code, notes, and snippets.

@GordonOus
Created August 20, 2021 18:35
Show Gist options
  • Save GordonOus/a677cd8e1e3a48765999424b128f0166 to your computer and use it in GitHub Desktop.
Save GordonOus/a677cd8e1e3a48765999424b128f0166 to your computer and use it in GitHub Desktop.
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