Skip to content

Commit

Permalink
Create solve.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEn1gma committed Aug 30, 2021
1 parent fcb7f43 commit b22cdcf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BKSEC/2021/Matryoshka Doll/solve.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit b22cdcf

Please sign in to comment.