07 Jan 2021 - OverTheWire - Natas
website: http://natas3.natas.labs.overthewire.org (password: sJIJNW6ucpu6HPZ1ZAchaDtwd7oGrD14)
After viewing page source, I found this comment line “Not even Google will find it this time”. This is related with something called website crawl. Search engines such as Google can crawl through websites and index on what they find. One way web admins can help to defend against standard web crawlers is to use a file named robots.txt
at the root of their site. Once a file or a directory is listed in this file, honest search engines and web crawlers will not touch those listed resources. However, it will not prevent hackers to dig into them.
With this knowledge in mind, I found this line Disallow: /s3cr3t/ in natas3’s robots.txt. Again directory indexing is not disabled in that folder and I found the file for the password.
CONCLUSION
Be careful with web crawlers, especially those non-ethical hackers. They can find hidden directories on your website and dig into them. You can find more info about robots.txt here.
«Prev | More About | Next» |
---|---|---|
Variadic Macros In C | OverTheWire - Natas | Natas4 - HTTP Referer |