> For the complete documentation index, see [llms.txt](https://thamizhiniyancs.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thamizhiniyancs.gitbook.io/writeups/overthewire/natas/level-5-level-6.md).

# Level 5 - Level 6

```
Username: natas6
Password: fOIvE0MDtPTgRhqmmvvAOt2EfXR6uQgR
URL:      http://natas6.natas.labs.overthewire.org
```

This time the page welcomed me with an input box requesting for a secret. Also there was a link "View sourcecode".

<figure><img src="/files/MaTrfDiuFeixJ8fKAYVa" alt=""><figcaption></figcaption></figure>

The link lead to `index-source.html` page, which had the logic that is behind the verification of the secret key that we enter as input. The variable `$secret`, which is used in the code is imported from the file/path `includes/secret.inc`.

<figure><img src="/files/HIKeLFr1WxSvPbR4edhh" alt=""><figcaption></figcaption></figure>

The path `includes/secret.inc` \[ <http://natas6.natas.labs.overthewire.org/includes/secret.inc> ]  had the value for the variable `$secret`.

<figure><img src="/files/DWqwF7k4nimCkqyGTE0z" alt=""><figcaption></figcaption></figure>

On entering the found secret value in the input, got the password for the next level.

<figure><img src="/files/358HHbSTjU3Z4gqYfR59" alt=""><figcaption></figcaption></figure>
