Skip to content

Latest commit

 

History

History
86 lines (64 loc) · 1.11 KB

writeup.md

File metadata and controls

86 lines (64 loc) · 1.11 KB

Overthewire | Natas

level 0

inspect page source for flag (as a comment)

level 1

inspect page source for flag (as a comment)
use keyboard shortcut instead of mouse for console

level 2

inspect
image link
explore directory
open /files/users.txt

level 3

inspect
not even google - robots.txt
explore dir on robots.txt

level 4

refresh link on page
edit request to manually change the referrer header

level 5

change cookie loggedin to 1

level 6

view source
check include "includes/secret.inc" file
secret as comment
send secret

level 7

view source
use the password file as the page parameter

level 8

view source
reverse encodedSecret
bin2hex(strrev(base64_encode($secret)));

level 9

view source
$key is used to run a shell command
and passthrough the raw output
inject cat /etc/natas_webpass/natas10 via $key

level 10

view source
cannot use ;|& in the injected command
use grep wildcard to match all lines in a file
key = [a-z,A-Z,0-9]} /etc/natas_webpass/natas11