BugkuCTF domain name resolution Windows10 does not modify the solution of the hosts file permissions (pro-test effective)

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:

c:\windows\system32\drivers\etc\hosts, please refer to this article if there is no permission problem

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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325300556&siteId=291194637