Skip to content

Latest commit

 

History

History
 
 

cryptolocker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Hack.lu CTF 2016 : cryptolocker-200

Category: Crypto Points: 200 (-52) Solves: 114 Description:

Oh no! Cthulhu's laptop was hit by ransomware and an important document was encrypted! But you have obtained the encryption script and it seems like the encryption is vulnerable... Even tough you don't know the encryption password, can you still help recover the important ODT file? Download

Write-up

8文字のkeyを2文字ずつ4分割してSHA-256でハッシュ化し、それぞれをkeyとしてAES-CBCで4回暗号化を重ねている。2文字ずつブルートフォースして復号結果のパディング長が正しい値になるかをチェックしてkeyを特定していく。

solver.py

Other write-ups and resources