foreword
After writing the web questions for so long, it is considered to have finished all the basic parts of it. The next few days will continue to update the solutions of the BugkuCTF WEB part. In order not to affect the reading, the solutions of each question are in the form of a separate article. Published, thank you for your continued support and understanding, and encouragement~~~
The title means to parse flag.bugku.com to 120.24.86.145, which works under both Windows and Linux.
The modified files under windows are:
This is OK, visit flag.bugku.com, the KEY is revealed,
For domain name resolution under linux, modify the /etc/hosts file:
However, you may encounter insufficient permissions, so you cannot modify it directly. You can only use the terminal to upgrade to the root user to increase permissions. Then the command opens the hosts file.
Add the following
After saving, open flag.bugku.com in your browser to see the flag.