-
-
Save secrary/5266a746928db77a0738ccd15eb67392 to your computer and use it in GitHub Desktop.
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
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