OverTheWire - Natas - Level 5 → Level 6
Warning: This post contains a solution!
Only continue if:
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!
Login using given credentials.
URL: http://natas6.natas.labs.overthewire.org
Username: natas6
Password: aGoYxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The page contains a HTML form element and an link to the page source code:
|
|
This code checks if the entered “Input secret” ($_POST['secret']
) equals $secret
. $secret
is included from the file includes/secret.inc
. Opening this file shows a blank page. The value for $secret
is visible in the page source code:
|
|
Entering “FOEIUWGHFEEUHOFUOIU” in the form and submitting it returns the message:
Access granted. The password for natas7 is 7z3hxxxxxxxxxxxxxxxxxxxxxxxxxxxx