Docsity

Natas game solution explained from LEVEL 0 - LEVEL 12, Assignments of Network Programming

Partial preview of the text

Download Natas game solution explained from LEVEL 0 - LEVEL 12 and more Assignments Network Programming in PDF only on Docsity!

Natas game

Use Ctrl+u , to enter into the source code of the page. You’ll see the password commented on the source code. Password: gtVrDuiDfck831PqWsLEZy5gyDz1clto

Level 1 – Level 2

Use ctrl+u , to enter into the source code. Password for the level 2 is commented within the code Password: ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi

You can see a text file called users.txt. Click on it to see the content on the text file. Image 4: We found the password for the next level. Password: sJIJNW6ucpu6HPZ1ZAchaDtwd7oGrD

Level 3 – level 4

Image 1

Use ctrl + u to enter into the source code. Notice a hint was given. Lets modify the URL passing a path way to the robots.txt file which will show the what files and directories are disallowed. Image 3: Notice a directory called s3cr3t is disallowed. Let us access that directory and see whats the content inside it.

Open Burp suit community edition, which is manual tool to peform web security testing. Using the embedded browser, vist http://natas4.natas.labs.overthewire.org/index.php Go to Proxy > Intercept tab. Turn on the intercept, which will intercept the HTTP request that is issued by the browser. Image 3: Refresh the page by clicking on the href link. Notice the changes on the burp suite community, intercept tab.

Change the URL on the Referer to the URL on the below image. Image 5: Once modifying the URL, forward it to the target server. Click on forward button, press the forward button until the page loads in the browser.

Go to proxy > intercept , open the browser and copy-paste the URL to the embedded browser and refresh the page of the embedded browser to intercept the HTTP request you have given. Image 3: Change the cookie: logged in = 0 to 1 and forward the request to the target server.

Password for the next level is given: aGoY4q2Dc6MgDq4oL4YtoKtyAg9PeHa

Level 6 – level 7

Image 1: Here they are asking to input secret key. Click on the “View sourcecode” href given on the web page.

Password for the next level: 7z3hEENjQtflzgnT29q7wAvMNfZdh0i

Level 7 – level 8

Image 1:

This pathway is pointing towards a local file or a local directory which is in the server. When you look at the URL , Image 3: In the URL http://natas7.natas.labs.overthewire.org/index.php?page=about

Level 8 – Level 9

Image 1: Click on the “view sourcecode” href. Image 2: In the PHP code, you can see a function encodeSecret, it takes the variable encodedSecret, first it converts to binary to hexa decimal, then base64 encoded and then the string is reversed. Lets convert them all and arrive at our value. For that lets use Cyber chef to easily convert.

Hex to Binary -> strrev -> base64_decode Image 2: Image 3:

Password for the next level: W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl

Level 9 – level 10

Image 1:

Here the user input is passed to the PHP passthru function:

passthru("grep -i $key dictionary.txt");

Image 2: