HKCERT CTF 2023 Writeups - ReZero
Here is the writeup for 從零開始的新世界!
hkcert23{he110_aga1n_4nd_we1c0m3_t0_hkc3r7_c7f}
從零開始的新世界 (150 pts) (with guide)
The official guide is here.
Solution
- I don’t want to play the game!!!
- Where the fuck is the data stored? I looked at storage -
data:”{“hasAlreadyPlayed”:true,”player”:{“name”:”test”,”weapon”:”sword2”,”armor”:”clotharmor”,”image”:”data:someBase64Txt”},”achievements”:{“unlocked”:[],”ratCount”:0,”skeletonCount”:0,”totalKills”:0,”totalDmg”:98,”totalRevives”:1}}” - I need to have achievements from 0 - 20, as well as 0 totalKills, 0 totalDmg and 0 totalRevives.
- Apparantly Firefox cannot do inclient storage modification, I downloaded a extension to edit the data into - data:”{“hasAlreadyPlayed”:true,”player”:{“name”:”test”,”weapon”:”sword2”,”armor”:”clotharmor”,”image”:”data:someBase64Txt”},”achievements”:{“unlocked”:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],”ratCount”:0,”skeletonCount”:0,”totalKills”:0,”totalDmg”:0,”totalRevives”:0}}”
- Why still no flag after CTRL-R? Because I searched for “flag” not “hkcert”!
- Filtering for “hkcert” gives the flag
hkcert23{m0dm0d__loc4l__stor4g3}
.