We’ve all got a little voyeurism in us. That’s why the recent article, Clearing Google Search History to Maintain Your Privacy sent my visitor counts off the charts .
Unprotected Directories Yield Interesting Finds
Read the Google Search History article.
In this article, I’m going to show you how to create search queries that will list the contents of unprotected directories on the Internet.
You’ll be able to play the music files, watch the videos, look at photos and more. I have to say, it’s really addicting.
First of all, I want to say that I got the idea for this from reading this article and this article on Tech-Recipes.com. It’s similar but I’ve improved on it a bit to make it more accurate so you don’t have to wade through so many unrelated search listings.
First of all, what’s an unprotected web directory? It’s one that does not have an “index” file created for it-index.htm, index.html, index.php or some other more rarely used file types.
If you try to access a non-password controlled directory that does not have an index file, the system will build a listing of files that are within the directory. If you get that, you can then click on the files and run them with a viewer or player or even download them.
I have to say I have not had this much fun with Google for a while! It’s just plain crazy seeing what people have stashed away in their web sites. (Please, don’t steal copyrighted steal music-I’m really against that. You can buy it for a buck a song anyway.)
I think the absolute most fun you can have with this is to watch the movies you run across. I watched a hilarious British TV commercial, some interesting home videos, and some, well, you know, very interesting other types of videos.
So let’s get to the nitty gritty details. We need to construct a Google search query that searches for and recognizes these system built directory pages. Here’s what one looks like:
The words “Index of /” are common to these pages, and they end up in the “title” of the page. Unfortunately, Google sees the slash is a “stop word” so we cannot search for that. But, the problem is that without the slash there are all sorts of other pages that have the words “Index of” that are regular web pages.
So, we need to find something else that is common. Within the page there are the headings of “name,” “last modified,” “size” and “description,” followed by the word “Parent Directory.”
The combination of these words in the page body, and the “Index of” in the title should provide a pretty clean search, especially when we use the -inurl operator to exclude regular web pages that might have the same wording in them. (If all this has you confused, please read the Google Tutor Google Search Manual while referencing the sample queries below.)
So, for starters here is a query that will give you a search results page of unprotected directories:
[-inurl(html|htm|php) intitle:”index of” +”last modified” +”parent directory” +description +size]
But, this is kind of boring. Too many unknown program files, text files, web pages etc. Let’s narrow it down. You can narrow it down by looking for something in the name of a file in the list, or by the file type, or both.
For example, this query tries to find any types of files about Jennifer Lopez. Within the directories I found music, image and movie files.
Let’s say that we wanted to find any movie files in WMV or AVI format:
Or audio files in WMA or MP3 format:
Or images in JPG or GIF format:
You can get more specific by specifying both the file types and a search word to hopefully find in the name. For example, the following will attempt to find the infamous Paris Hilton video tape:
Or, you can even take a guess at the file name someone might call it:
So there you go. You can combine various search terms and experiment with this. As you’ve seen, this is not an exact science. The directory pages you bring up may have many or even all files which are unrelated to what you are looking for. But, it does make some good hits very often.
I find the most fun searching for movies with an interesting or provocative search term and seeing what comes up. The samples in this article are rather safe and boring, but I’m sure you all have some good ideas of what to try and search for. Do me a favor and post a comment with some interesting queries you’ve had success with, or crazy files that you’ve found (as long as nothing private is given out).
Mark Fleming is the founder of a new blog called Google Tutor & Advisor. Google Tutor & Advisor offers in-depth Tips, Techniques and Advice for Google Users.
Visit Google Tutor & Advisor …