Skip to content

Instantly share code, notes, and snippets.

@secrary
Last active April 16, 2018 19: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 secrary/5266a746928db77a0738ccd15eb67392 to your computer and use it in GitHub Desktop.
Save secrary/5266a746928db77a0738ccd15eb67392 to your computer and use it in GitHub Desktop.
def decrypt_traffic(content):
key = content[:8] + b"1Q2a3k79"
key = hashlib.md5(key).digest()
base64_encoded = content[8:]
encrypted_content = base64.b64decode(base64_encoded)
IV = 16 * b'\x00'
mode = AES.MODE_CBC
decryptor = AES.new(key, mode, IV)
dec_content = decryptor.decrypt(encrypted_content)
print(dec_content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment