Write-up author: jon-brandy
Can you decrypt the message and get the flag?
- NONE
- First, unzip the
.zip
file given.
RESULT
- For this solution i used
RsaCtfTool
.
RESULT
./RsaCtfTool.py --publickey ./key.pub --uncipherfile ./flag.enc
- Dunno why we didn't get any output, let's try another way by get the private key first and save it to a file named
key.pri
.
GET THE PRIVATE KEY FIRST.
./RsaCtfTool.py --publickey ./key.pub --private
- To get the flag run this payload:
openssl pkeyutl -in flag.enc -out flag.txt -decrypt -inkey key.pri
RESULT
- Got the flag!
HTB{s1mpl3_Wi3n3rs_4tt4ck}