Writeup
Web
English
FlyDragon
In index.html
, using F12
developer tools, you can discover a hidden button.
Remove the hidden
attribute then there will be a button.
After clicking the button, you will be redirected to cat.html
. Looking back at the <script>
, you can find another function called magic()
. By checking window.location.href
, you can know that this can be used to move to different pages.
Replace cat()
in onclick()
with magic()
or go directly to secret.html
to get the first part of the flag.
Returning to cat.html
, you can see a comment in <div>
and <span>
, which is the second part of the flag.
Check secret.html
and enter isAdmin = true
in the console to change isAdmin
to true
, then click the button or directly go to flag.html
.
Then you get the last part of flag.
Assemble three flag segments.