From b22cdcf60f206ead9e50da6ca79037bd049627f4 Mon Sep 17 00:00:00 2001 From: MrPos3id0n <54548481+MrPos3id0n@users.noreply.github.com> Date: Mon, 30 Aug 2021 08:32:11 +0700 Subject: [PATCH] Create solve.py --- BKSEC/2021/Matryoshka Doll/solve.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 BKSEC/2021/Matryoshka Doll/solve.py diff --git a/BKSEC/2021/Matryoshka Doll/solve.py b/BKSEC/2021/Matryoshka Doll/solve.py new file mode 100644 index 0000000..7d0e813 --- /dev/null +++ b/BKSEC/2021/Matryoshka Doll/solve.py @@ -0,0 +1,8 @@ +from Cryptodome.Cipher import AES + +key = "lanlefthustbksec".encode() +encrypted_text = bytes.fromhex("FD0E144F20503802EB89895A65E996E3401FDC052503A5E569941EF5B84F9BB2556E6C4E8F13D4CD477788A4A3DBF08D5E40B1A7A4046B435EEAE8A6D70FED7E")[::-1] +iv = b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f' +aes = AES.new(key, AES.MODE_CBC, iv) +out = aes.decrypt(encrypted_text) +print(out) \ No newline at end of file