OverTheWire Wargames
Natas Level 8 –> Level 9
Username: natas9
Password: W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl
URL: http://natas9.natas.labs.overthewire.org
Solution
- Open inspect, there is textbox take a code and button send us to page contain source code lets see it
- In this page page it is obvious that what we will write in previous textbox will be inject in linux command “grep -i $code dictionary.txt”
- So we can inject command to get our target by write “;cat /etc/natas_webpass/natas10;” in textbox so the command will be as follow:
grep -i ;cat /etc/natas_webpass/natas10; dictionary.txt
- That’s the password
Natas10 Password
nOpp1igQAkUzaI1GUUjzn1bFVj7xCNzu