OverTheWire Natas Level 6 Walkthrough
Today we're doing a walkthrough of level 6 of the Natas CTF wargame hosted at:
http://natas6.natas.labs.overthewire.org
We will need to authenticate into the webpage, using the current level (natas6) as the username and the password we captured in the last level as the password. Once authenticated, we see this webpage:
It looks like this webpage form wants us to input a specific string. Let's take a look at the the "view sourcecode" link.
http://natas6.natas.labs.overthewire.org/index-source.html
The source indicates that the page will print out the password for natas7 if the query string that we post to the page is identical to a variable named $secret, which we assume is generated by the secret.inc file located in the /includes/ directory. Let's navigate to that page and see what's there.
http://natas6.natas.labs.overthewire.org/includes/secret.inc
Nothing here, but let's check out the page source.
view-source:http://natas6.natas.labs.overthewire.org/includes/secret.inc
There's our $secret variable. Now, if we plug this variable into the query form from the other page we should get the password for the next level.
http://natas6.natas.labs.overthewire.org
Here we go...
Summary
Natas6 required us to post a specific string to the page's query form to receive the password for the next level. The page source indicated that it was looking for a variable taken from another page on the site. Upon looking at the indicated page's source gave us the required string, which we submitted to the original page's query form, gaining us access to the password for Natas7.
Finish
Comments
Post a Comment