[♦]Dominating Dorks 10-01-2012, 11:17 PM
#1
![[Image: TSLLE.png]](http://i.imgur.com/TSLLE.png)
Let's go deep to the basics, dorks. Dorks are like search criteria in which a search engine returns results related to your dork. The process can be a little time consuming, but the outcome will be worth it after learning about how to use dorks. Using these dorks we can gain information about sites that we may not be allowed to normally. They can also be used to find vulnerable sites, find certain pages with the same vulnerability and so much more.
Let's use the most basic dork which finds a lot of websites vulnerable to SQL Injection, an extremely common vulnerability. First, we go to 'http://www.google.com' - once there, we type the dork in the search bar. In our case, we're using the most basic: "inurl:index.php?id="(with or without quotes)
Once we have searched, this should bring us a lot of results of pages with 'index.php?id=' in the URL, usually followed by the id of whatever is on the page. If you know anything about SQLi, we can check to see if the page is vulnerable via adding a ' before the number and after the '='. If that page throws an error, it's vulnerable. If not, there's a good chance it's not. There are plenty of SQLi tutorials out there though, so go read up on them.
Basic Search Commands:
Code:
inurl: - Your query the URL. For example 'index.php?id='
intitle: - Returns results with your query in the title.
intext: - Returns results with your query in the text.
ext: - Returns URL's with the extension of your choice. EG: ext:html
site: - Returns URL's with the domain extension of your choice. EG: site:govWith these search commands, we can mix them together to make one big dork. For example, if we wanted to quickly search for possible .gov websites vulnerable to SQLi then we could enter something such as: site:gov inurl:index.php?id=
Try it out and see what you get! I said before that this could be used to find pages we aren't normally allowed. This is correct. If you have ever worked with WordPress before then you will know about having to block some of the locations such as '/wp-content/' or '/wp-includes/'. Without blocking these, it can be a serious threat to your sites security.
There's a popular plugin for WP sites called HD-Webplayer that has an SQLi vulnerability inside of it. We will be using a custom dork to find this vulnerability. Use the following:
inurl:/wp-content/plugins/hd-webplayer/playlist.php?videoid=
See that? Hundreds of vulnerable websites in one search. You can exploit these easily and then the site would be under your control. Now, imagine someone going through each and every one of these websites and rooting them all? That's a huge range of sites. This isn't the only vulnerablity either, there are thousands. This is just one example of getting somewhere you're not allowed. There's also the extremely risky dorks where you can access Credit Card information. Imagine if your card was vulnerable due to one quick Google search? Well, there's a good chance it is and only the website your details are on are responsible for fixing that.
Extra Goodies:
I kind of feel obligated to give you a few 'cool' dorks to play around with. I'm sure a lot of you have already created your own dork by now if you followed this tutorial but these can always give you a few more ideas. Here's another tip, let's say a company owned a website and on each index they wrote "Property of BigBusinessGuys LTD", you could make a basic dork such as intext
roperty of BigBusinessGuys LTD and find every site that is linked to them. This is like the example of the Wordpress vulnerability before where we took the URL used on every website with the vulnerability. Anyhow, on to the goodies!Code:
inurl:”editor/list.asp” | inurl:”database_editor.asp” | inurl:”login.asa” “are set”
This search finds CLEARTEXT usernames/passwords for the Results Database Editor.
ext:passwd -intext:the -sample -example
Various encrypted passwords, some plaintext passwords and some private keys are revealed by this search.
filetype:sql (“values * MD5″ | “values * password” | “values * encrypt”)
Locate insert statements making use of some builtin function to encrypt a password. PASSWORD(), ENCRYPT() and MD5() are searched.
inurl:"phpmyadmin/index.php" intext:"[ Edit ] [ Create PHP Code ] [ Refresh ]"
This dork will find a lot of insecure databases and will grant you access without password verification.
intitle:"hp laserjet" inurl:info_configuration.htm
Configure someone's HP Laserjet printer all the way from your browser. There are many types of dorks where you can control someones device, this is just one of thousands.
inurl:"c99.php" & intext:Encoder Tools Proc. FTP brute Sec. SQL PHP-code Update Feedback Self remove Logout
Using this dork you can find someones C99 shell in a website. You could then possibly take over the website via entering the shell and replacing it with your own secured shell.
intitle:index.of /maildir/new/
Displays directories with a lot of mail in there. Some of it could actually be quite interesting. There is a lot of email addresses to be collected in there too.This wraps it up for this tutorial. Now you can see how easily exploitable websites
can be and how you can modify your search to target specific websites online.
Practice with it and sail safe.
can be and how you can modify your search to target specific websites online.
Practice with it and sail safe.
(This post was last modified: 10-02-2012, 06:17 PM by Jewel.)
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)











![[Image: 7ajmN5P.jpg]](https://i.imgur.com/7ajmN5P.jpg)
![[Image: hZbv6.gif]](http://i.imgur.com/hZbv6.gif)