OverTheWire Natas Level 4 -> Level 5 - Walkthrough
![]() |
OverTheWire Natas Solutions |
In this level, I'll give you a walkthrough to the natas wargame Level 4 -> Level 5. We will use the javascript console available in the developers tool to write javascript code and execute it.
Goal
Login to natas5 and get the password for the next level.
Login details
URL - http://natas5.natas.labs.overthewire.org
Username - natas5
Password - Z0NsrtIkJoKALBCLi5eqFfcRN82Au2oD
Theory
Websites use cookies to remember the user login information and grant us access without having to login next time. We can see them as a key-value pair in the developer tools. 0 means "false" and 1 means "true".
Solution
Open the URL in a browser. Enter the username and password mentioned above.
The below screen appears on successfully logging in that gives the message that "Access disallowed. You are not logged in"
Right Click -> Select "Inspect". In the
developers tool options, select "Application". Under the Storage
heading select Cookies -> http://natas5.natas.labs.overthewire.org/
We can see the loggedin cookie is set as 0.
We will write javascript code snippet and set the loggedin
cookie as 1. Click on "Console" and write below code and press Enter-:
document.cookie = "loggedin=1"
Refresh the page and we will be able to see the password.
This completes the Level 5 walkthrough as we have got the password. Please post your questions and doubts in the comment section.
Comments
Post a Comment