[EN] HTML

tags:Writeup Web English

FlyDragon

Step.1

In index.html, using F12 developer tools, you can discover a hidden button.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step.2

Remove the hidden attribute then there will be a button.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

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.

Step.3

Replace cat() in onclick() with magic() or go directly to secret.html to get the first part of the flag.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step.4

Returning to cat.html, you can see a comment in <div> and <span>, which is the second part of the flag.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step.5

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.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Then you get the last part of flag.

Step.6

Assemble three flag segments.