Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.03 KB

decode-me-100-points.md

File metadata and controls

32 lines (22 loc) · 1.03 KB

Decode Me - 100 points

Someone I met today told me that they had a perfect encryption method. To prove that there is no such thing, I want you to decrypt this encrypted flag he gave me.

Solution

Writeup by Valar Dragon

The input file ends in the iconic = sign, hinting at base64. And it b64 decodes, into another base64 string. So I wrote a short python3 script to perform repeated base64 decryption

import base64

a = open('begin').read()
a = a.replace('\n','').replace('\\n','')
b64 = str(base64.standard_b64decode(a),'utf-8')

while 'easyctf' not in b64:
    b64 = str(base64.standard_b64decode(b64),'utf-8')
print(b64)

which gives the flag

$ python3 solve.py
easyctf{what_1s_l0v3_bby_don7_hurt_m3}

External Writeups