OverTheWire — Natas Level 6& 7
Complete solution with the explanation of natas level 6and level 7
Natas Level 5 → Level 6
- now this time we have something different, an input field.
- so to test what this does, let’s just click submit….this throws a “wrong error” message.
- okay, now let’s view the source code
- so we can find a php code, which takes in values from the input field (form) and compares it to a file located in
- so let’s navigate to that page
- we found the secret code, enter that and we’ll get the password to the next level!!
Natas Level 6 → Level 7
- On this page, we have two links
- now let’s read the page source (
ctrl + u)
- we can see a hint
<!-- hint: password for webuser natas8 is in /etc/natas_webpass/natas8 -->
- ok, when we navigate to them, notice how the URL changes
- it points to a page, which is directly passed into the php file
- so we can mention a path after
pagein the url
- let’s try
- we get the password for the next level!!
Give this a 👏 if you found it useful!