Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 859 Bytes

natas06.md

File metadata and controls

36 lines (22 loc) · 859 Bytes

Natas 6

Link : http://natas6.natas.labs.overthewire.org/

Natas 6 screen :

Natas6 screen

Clicking in View sourcecode , you redirect to :

n6 source

include "includes/secret.inc";

    if(array_key_exists("submit", $_POST)) {
        if($secret == $_POST['secret']) {
        print "Access granted. The password for natas7 is <censored>";
    } else {
        print "Wrong secret";
    }
    }

The code is recieving a file from "includes/secret.inc", if we access to

http://natas6.natas.labs.overthewire.org/includes/secret.inc

secret

Now our secret is "FOEIUWGHFEEUHOFUOIU".

sol

So the password for Natas 7 is : 7z3hEENjQtflzgnT29q7wAvMNfZdh0i9