OverTheWire Natas Level 0 - Walkthrough
The Natas wargame starts from basic concepts of web hacking
and gradually increases the difficulty level. Different types of exploitation
methods are used in the various levels where the player needs to find ways to
get the password for next level. All the passwords are also stored in
/etc/natas_webpass/.
I would encourage you to google various concepts used in this
wargame to get accustomed to them. Discuss your doubts and post questions on
various online forums to expand your knowledge on web hacking.
Goal
Login to Natas Level 0 and get the password for next level.
Login details
URL - http://natas0.natas.labs.overthewire.org
Username - natas0
Password - natas0
Theory
Every browser has developers tool which contains tools for programmers that help them debug the page. It can be opened by right clicking on the webpage and selecting "Inspect Element". It will focus on the specific element.
We can also right click on the webpage and select "View Source" to see the HTML code.
HTML comment tag is used to write comments in the source
code. They are not displayed on the webpage and are used for explaining the
code. Syntax is as follows-:
- <!-- comments -->
Solution
Open the URL in a browser. Enter the username and password mentioned above.
The below screen appears on successfully logging in with the message "You can find the password for the next level on this page."Right Click on the page and select "View Page Source" or press the shortcut key "Ctrl+U" to view the HTML code. The shortcut key might change based on the browser you are using.
You can see the password for natas1 commented in the HTML source code.
This completes the Level 0 wlakthrough as we have got the natas1 password. Please explore more on the HTML inspect elements and post your questions in the comment section.
Comments
Post a Comment