Skip to content

Latest commit

 

History

History
63 lines (36 loc) · 1.47 KB

File metadata and controls

63 lines (36 loc) · 1.47 KB

Weak RSA

Write-up author: jon-brandy

DESCRIPTION:

Can you decrypt the message and get the flag?

HINT:

  • NONE

STEPS:

  1. First, unzip the .zip file given.

RESULT

image

image

image

  1. For this solution i used RsaCtfTool.

RESULT

./RsaCtfTool.py --publickey ./key.pub --uncipherfile ./flag.enc

image

  1. 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

image

  1. To get the flag run this payload:
openssl pkeyutl -in flag.enc -out flag.txt -decrypt -inkey key.pri

image

RESULT

image

  1. Got the flag!

FLAG

HTB{s1mpl3_Wi3n3rs_4tt4ck}