LokiSec.com

LokiSec.com
  • Security
    • Security Tools
    • Website Defense
    • Personal Security
    • Standards
  • Books
    • Technical

Google Hacking

April 15, 2012 by CyberRad

Google Dorks are advanced search parameters that you can use with Google’s search engine to narrow down a search.  Google Hacking is the art of using Google Dorks to find specific information on Google’s databases.  For example finding a known vulnerable version of a web application. 

The Basics

intitle: By placing this in the search field you are telling Google that you only want results that contain parts of the string you specified in the title. intitle:brown fox gives you results that contain brown or fox or both.
allintitle: This acts like intitle: however it gives you results that contain the entire string you specify. allintitle:brown fox gives you the results that contain both brown and fox.
inurl: When passing inurl: to Google you are specifying that you are searching for parts of that string in the url.  inurl:install php will return results that contain the string install and/or php in the url.
allinurl: This acts like inurl: however it gives you results that contain the entire string you specify.  allinurl:install php will return results that contain both install and php.
filetype: Using this allows you to specify the type of file you are looking for.  filetype:txt will return all results that are text files.
intext: Acts like a typical search. intext:brown fox will return all results contain either/or brown and fox.
allintext: Acts like a typical search with quotes around it.  allintext:brown fox returns results that contains both brown and fox.
site: Specifying site: will limit your results to only that web site. site:lokisec.com brown fox will only contain results from lokisec.com that contain either/both brown and fox.
link: Using this in a search will show all results that link to that url.  link:www.lokisec.com returns all results that have links to www.lokisec.com.
cache: Passing cache: will return results that link to cached versions of pages Google stores. cache:brown fox will return results that contain brown and/or fox in cached pages Google’s database contains.
related: When related: is used it returns results that are similar to the url you specified. related:www.lokisec.com will return results that are similar to lokisec.com.

The Potential

Let’s say that you are on a pen test and know that your client is using an WYSIWYG that allows the persons responsible for maintaining the company website to upload changes on the fly.  You can use the site:<customer website> filetype:<config file extension> to find the config file that the WYSIWYG uses to track files on the server.  Dreamweaver has/had this issue.  By searching for filetype:ste you can get an xml file that contains the username and obfuscated password for the ftp server that the files reside on.  With minimal effort you now own the website and potentially the entire server.

Not enough for you?  The same client has a MySQL database that is backed up on the web server.  Using site:<customer website> filetype:sql dump returns all dumps that Google’s spider was able to access.  This file could potentially have database usernames and passwords along with unreleased information that is important to the company.

A list of potential dorks can be found at exploit-db.com specifically here.  Check them out and see what you can get.

Remediation

To help protect yourself from this type of attack be mindful of what files are kept on your web server.  Also keep pay attention to where your files are kept on the web server.  If it has to be on the web server use a robots.txt file to prevent web spiders from indexing.  If you use a CMS make sure you keep it up to date and follow the security guidelines that are recommended to minimize your exposure.  Use what you have learned here to do an audit on your site.  You might be surprised at what you find.

Posted in Security Tools, Website Defense and tagged with default, dorks, file, google, hacking, page, password, Pentest, scan, security, tools, tutorial, username, web. RSS 2.0 feed.
« Backtrack 5 r2 has been released!
Metasploit: The Penetration Tester’s Guide »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent Posts

  • Backtrack 5 r3 has been released!
  • Metasploit: The Penetration Tester’s Guide
  • Google Hacking
  • Backtrack 5 r2 has been released!
  • Going Phishing with the Social Engineering Toolkit

Twitter Feed

  • RT @smhack1: The Space is open for the members hangout. Become a dues paying member and hangout with us. 1 day ago

  • RT @smhack1: We are participating in the Extra Life 2013 event http://t.co/aqg6mWYllF 5 days ago

  • I'm supporting @CMNHospitals through @ExtraLife4Kids! http://t.co/BtApLZUBx9 via @DonorDrive Help me reach my goal! 5 days ago

Archives

  • August 2012
  • June 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • October 2011
  • September 2011
  • August 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011

Tags

802.11 aircrack-ng aliases apache armitage audit Backtrack cree.py creepy flicker geolocation GUI hacker iis Linux metasploit meterpreter netcat network Nmap No Pentest php PTES Quality scan security SET Snort SQLi swiss army knife tools tutorial twitter Uber user-agent vulnerability w3af web weblabyrinth website WEP wireless WPA WPA2

Search

Spread the word!

Blogroll

  • Carnal0wnage
  • Darknet
  • DigiNinja
  • McGrew Security
  • mubix
  • PaulDotCom
  • SpyLogic
  • TaoSecurity

© 2011-2013 LokiSec.com All Rights Reserved