OSINT: Abusing robots.txt and Google "dorking" to find passwords and vulnerabilities
sten0.ghost.io/2016/10/13/abusing-dorking-and...Posted Oct 13, 2016, 4:31 AM UTC
Posted Oct 13, 2016, 4:31 AM UTC
Good stuff. Nothing new to me but I really like how you've presented everything in a clear and concise way without a lot of fluff!
Keep up the good work. :)
Will do! Though much of the infosec will be basics for a while as I learn the more advanced things well enough to write about it.
Glad the post turned out well.
Nice but a bit spare on robots.txt. Why include it in an article about Google dorking?
It's more to get the point across that robots.txt is usually full of goodies. I always go to it first during a pentest, and it's usually a sure-fire way to find the admin panel.
True. One thing to mention though is that Google still sometimes crawls directories listed as Disallow under robots.txt. It just doesn't provide a description. For example, http://www.wsj.com/robots.txt disallows /user/ for all user agents. However, a quick Google search for site:wsj.com/user/ still brings up results. The only difference is the description is missing because "A description for this result is not available because of this site's robots.txt".
Finally, seeing what user agents are allowed to crawl certain folders tends to raise the possibility that changing one's user agent when accessing the site may yield new or previously-blocked content.
One thing to mention though is that Google still sometimes crawls directories listed as Disallow under robots.txt. It just doesn't provide a description.
Interesting point. I've seen that description before, but I didn't put the two together. Never really thought about it or bothered to check if it was explicitly disallowed.
Finally, seeing what user agents are allowed to crawl certain folders tends to raise the possibility that changing one's user agent when accessing the site may yield new or previously-blocked content.
Also a good point. Rare in the wild, but possible and still worth a try. I believe some automated scanners in the early stages of a pentest change their User-Agent to attempt to find things like that.
I'm glad I let this one go for a while because the conversation was the most interesting.
Originally I had added in a short bit on robots.txt since it explains the premise/foundation for dorking (searching for info that shouldn't be indexed). It also gave a good opportunity for a SE "joke" about giving much more detailed information available via links (7th LOP for the uninitiated with OWASP/robots etc).
I think you were right though; adding a bit more fills it out a bit better. I've added a segment along the lines of your conversation and was wondering if you wanted a mention for it?
Sure, thanks!
Great article, but it doesn't do it for me...
but it doesn't do it for me...
As in... the search queries don't work or just not your cup of tea? Not exactly ground-breaking stuff so it's understandable.
Was meant to come off as a joke, I'm not very funny.
Context through monitors can be rough. I was just making sure it wasn't a question!
I like the article, but s/depreciated/deprecated/g.
Good catch.