Finding Links on Google


Recommended Posts

Introduction

Google is world?s most popular and powerful search engine which has the ability to accept pre-defined commands as input and produce unbelievable results. This enables malicious users like hackers, crackers, and script kiddies etc to use Google search engine extensively to gather confidential or sensitive information which is not visible through common searches.

In this paper I shall cover the below given points that an administrators or security professionals must take into account to prevent such information disclosures:

- Google?s Advance Search Query Syntaxes

- Querying for vulnerable sites or servers using Google?s advance syntaxes

- Securing servers or sites from Google?s invasGoogle?s Advance Search Query Syntaxesntaxes

Below discussed are various Google?s special commands and I shall be explaining each command in brief and will show how it can be used for critical information[ intitle: ]title: ]

The ?intitle:? syntax helps Google restrict the search results to pages containing that word in the title. For example, ?intitle: login password? (without quotes) will return links to those pages that has the word "login" in their title, and the word "password" anywhere in the page.

Similarly, if one has to query for more than one word in the page title then in that case ?allintitle:? can be used instead of ?intitle? to get the list of pages containing all those words in its title. For example using ?intitle: login intitle: password? is same as querying ??[ inurl: ]n password?.

[ inurl: ]

The ?inurl:? syntax restricts the search results to those URLs containing the search keyword. For example: ?inurl: passwd? (without quotes) will return only links to those pages that have "passwd" in the URL.

Similarly, if one has to query for more than one word in an URL then in that case ?allinurl:? can be used instead of ?inurl? to get the list of URLs containing all those search keywords in it. For example: ?allinurl: etc/passwd? will look for the URLs containing ?etc? and ?passwd?. T[ site: ]?) between the words will be ignored by Google.

[ site: ]

The ?site:? syntax restricts Google to query for certain keywords in a particular site or domain. For example: ?exploits site:hackingspirits.com? (without quotes) will look for the keyword ?exploits? in those pages present in all the links of the domain ?hackingspirit>

[ filetype: d not be any space between ?site:? and the ?domain name?.

[ filetype: ]

This ?filetype:? syntax restricts Google search for files on internet with particular extensions (i.e. doc, pdf or ppt etc). For example: ?filetype:doc site:gov confidential? (without quotes) will look for files with ?.doc? extension in all government domains with ?.gov? extension and containing the word ?confidential? either in the pages or in the ?.doc? fil>[ link: lt will contain the links to all confidential word document files on the government sites.

[ link: ]

?link:? syntax will list down webpages that have links to the specified webpage. For Example: ?link:www.securityfocus.com? will list webpages that have links pointi>[ related: ocus homepage. Note there can be no space between the "link:" and the web page url.

[ related: ]

The ?related:? will list web pages that are "similar" to a specified web page. For Example: ?related:www.securityfocus.com? will list web pages that ar>[ cache: Securityfocus homepage. Note there can be no space between the "related:" and the web page url.

[ cache: ]

The query ?cache:? will show the version of the web page that Google has in its cache. For Example: ?cache:www.hackingspirits.com? will show Google's cache of the Google homepage. Note there can be no space between the "cache:" and the web page url.

If you include other words in the query, Google will highlight those words within the cached doc>[ intext: : ?cache:www.hackingspirits.com guest? will show the cached content with the word "guest" highlighted.

[ intext: ]

The ?intext:? syntax searches for words in a particular website. It ignores links or URLs and page titles. For example: ?>[ phonebook: ithout quotes) will return only links to those web pages that has the search keyword "exploits" in its webpage.

[ phonebook: ]

?phonebook? searches for U.S. street address and phone number information. For Example: ?phonebook:Lisa+CA? will list down all names of person having ?Lisa? in their names a>Querying for vulnerable sites or servers using Google?s advance syntaxers incase someone want to do dig personal information for social engineering.

Querying for vulnerable sites or servers using Google?s advance syntaxes

Well, the Google?s query syntaxes discussed above can really help people to precise their search and get what they are exactly looking for.

Now Google being so intelligent search engine, malicious users don?t mind exploiting its ability to dig confidential and secret information from in>Using ?Index of ? syntax to find sites enabled with Index browsinues in details how malicious user dig information from internet using Google as a tool.

Using ?Index of ? syntax to find sites enabled with Index browsing

A webserver with Index browsing enabled means anyone can browse the webserver directories like ordinary local directories. Here I shall discuss how one can use ?index of? syntax to get a list links to webserver which has got directory browsing enabled. This becomes an easy source for information gathering for a hacker. Imagine if the get hold of password files or others sensitive files which are not normally visible to the internet. Below given are few examples using which one can get access to many sensitive information much easily.

Index of /admin

Index of /passwd

Index of /password

Index of /mail

"Index of /" +passwd

"Index of /" +password.txt

"Index of /" +.htaccess

"Index of /secret"

"Ind>Looking for vulnerable sites or servers using ?inurl:? or ?allinurl:?quot;

"Index of /credit-card"

"Index of /logs"

"Index of /config"

Looking for vulnerable sites or servers using ?inurl:? or ?allinurl:?

a. Using ?allinurl:winnt/system32/? (without quotes) will list down all the links to the server which gives access to restricted directories like ?system32? through web. If you are lucky enough then you might get access to the cmd.exe in the ?system32? directory. Once you have the access to ?cmd.exe? and are able to execute it then you can go ahead in further escalating your privileges over the server and compromise it.

b. Using ?allinurl:wwwboard/passwd.txt?(without quotes) in the Google search will list down all the links to the server which are vulnerable to ?WWWBoard Password vulnerability?. To know more about this vulnerability you can have a look at the following link:

http://www.securiteam.com/exploits/2BUQ4S0SAW.html

c. Using ?inurl:.bash_history? (without quotes) will list down all the links to the server which gives access to ?.bash_history? file through web. This is a command history file. This file includes the list of command executed by the administrator, and sometimes includes sensitive information such as password typed in by the administrator. If this file is compromised and if contains the encrypted unix (or *nix) password then it can be easily cracked using ?John The Ripper?.

d. Using ?inurl:config.txt? (without quotes) will list down all the links to the servers which gives access to ?config.txt? file through web. This file contains sensitive information, including the hash value of the administrative password and database authentication credentials. For Example: Ingenium Learning Management System is a Web-based application for Windows based systems developed by Click2learn, Inc. Ingen>Other similar search using ?inurl:? or ?allinurl:? combined with other syntaxcurely in the config.txt file. For more information refer the following links:

http://www.securiteam.com/securitynews/6M00H2K5PG.html

Other similar search using ?inurl:? or ?allinurl:? combined with other syntaxs

inurl:admin filetype:txt

inurl:admin filetype:db

inurl:admin filetype:cfg

inurl:mysql filetype:cfg

inurl:passwd filet>Looking for vulnerable sites or servers using ?intitle:? or ?allintitle:?oot/*."

inurl:adpassword.txt

inurl:webeditor.php

inurl:file_upload.php

inurl:gov filetype:xls "restricted"

index of ftp +.mdb allinurl:/cgi-bin/ +mailto

Looking for vulnerable sites or servers using ?intitle:? or ?allintitle:?

a. Using [allintitle: "index of /root?] (without brackets) will list down the links to the web server which gives access to restricted directories like ?root? through web. This directory sometimes contains sensitive information which can be easily retrieved through simple web requests.

b. Using [allintitle: "index of /admin?] (without brackets) will list down the links to the websites which has got index browsing e>Other similar search using ?intitle:? or ?allintitle:? combined with other syntaxon sometimes uses names like ?admin? to store admin credentials in it. This directory sometimes contains sensitive information which can be easily retrieved through simple web requests.

Other similar search using ?intitle:? or ?allintitle:? combined with other syntaxs

intitle:"Index of" .sh_history

intitle:"Index of" .bash_history

intitle:"index of" passwd

intitle:"index of" people.lst

intitle:"index of" pwd.db

intitle:"index of" etc/shadow

intitle:"index of" spwd

intitle:&q>Other interesting Search Queriee:"index of" htpasswd

intitle:"index of" members OR accounts

intitle:"index of" user_carts OR user_cart

allintitle: sensitive filetype>To search for sites vulnerable to SQL Injection attacksed filetype:doc site:gov

Other interesting>Securing servers or sites from Google?s invasio Cross-Sites Scripting (XSS) attacks:

allinurl:/scripts/cart32.exe

allinurl:/CuteNews/show_archives.php

allinurl:/phpinfo.php

To search for sites vulnerable to SQL Injection attacks:

allinurl:/privmsg.php

allinurl:/privmsg.php

Securing servers or sites from Google?s invasion

Below given are the security measures which system administrators and security professionals must take into account to secure critical information available online, falling into wrong hands:

- Install latest security patches available till date for the applications and as well as the operating system running on the servers.

- Don?t put critical and sensitive information on servers without any proper authentication system which can be directly accessible to anyone on internet.

- Disable directory browsing on the webserver. Directory browsing should be enabled for those web-folders for which you want to give access to anyone on internet.

- If you find any links to your restricted server or sites in Google search result then it should be removed. Visit the following link for more details:

http://www.google.com/remove.html

- Disable anonymous access in the webserver through internet to restricted systems directory.

- Install filtering tools like URLScan for servers running IIS as webserver.

Edited by protesto
Link to comment
https://www.neowin.net/forum/topic/243326-finding-links-on-google/
Share on other sites

This is great info, the phonebook one, i was amazed! I searched for me and my State, so many other people! I searched for my friend and he was in there! i told him about it and he got all mad :p

Also, so many references to hackers... was this from a hackers guide or something? :blink:

Edit: *coughcough*

Edited by whcodered
  • 4 years later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Bose QuietComfort Ultra Gen 2 headphones are down to lowest price in over a month by Taras Buria Bose's second-gen QuietComfort Ultra headphones are premium over-ear headphones with noise cancellation, but right now, you can save 16%, thanks to a discount that brought the headphones to a new lowest price in over a month. While the general look and aesthetics remain unchanged compared to the previous gen, the Gen 2 features redesigned wear-detection sensors, which accurately pause your music the moment you take them off. Additionally, the headphones now support lossless audio via a direct USB-C wired connection, letting you enjoy uncompressed sound when plugged into your laptop or phone. There is also spatial audio support (works wirelessly) for a more immersive audio experience and improved noise cancellation, which makes the QuietComfort Ultra go-to headphones for many users on long flights or other scenarios when they need to isolate themselves from the surrounding noise. The QuietComfort Ultra (Gen 2) also features Bluetooth Multipoint for seamless switching between two devices at once. As for battery life, you get up to 30 hours on a single charge (up to 23 hours when using spatial audio). Besides good audio quality and noise cancellation, the headphones should be comfortable to wear, thanks to the lightweight 250-gram design and soft protein-leather ear pads. The QuietComfort Ultra Gen 2 are available in four colors, and all five are now available at the lowest price: Bose QuietComfort Ultra Bluetooth Headphones (2nd Gen) - $379 | 16% off on Amazon This Amazon deal is US-specific and not available in other regions unless specified. This is a first-party seller link (at the time of article publishing); ensure that you also purchase from a first-party seller link only. If you don't like it or want to look at more options, check out the previous deals that we have covered, OR you can also visit Amazon US deals page. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • Started implementing weapons! Here's a little sneak peek! 👀 Animation was done inside of Unreal Engine using Control Rig! Really useful tool, I don't have to go back and forth between Blender and UE, you can basically make tweaks while the game is running.
    • Keep in mind Intuit has lobbied like crazy to keep taxes complicated so they can continue to sell tax software. They also got caught hiding their legally mandated free version so they could release a second one that pushed countless people into charges they didn't need to pay to file. Intuit leads the charge on inventing problems so they can sell you the solution and disrespecting you in the process.
    • Oddly, there was a time that UFC games were culturally relevant, largely because of the graphics and gameplay that was different than the norm. But it seems like as the sport grew in popularity, gaming outlets stopped talking about the games.
    • Microsoft Edge 149.0.4022.69 by Razvan Serea Microsoft Edge is a super fast and secure web browser from Microsoft. It works on almost any device, including PCs, iPhones and Androids. It keeps you safe online, protects your privacy, and lets you browse the web quickly. You can even use it on all your devices and keep your browsing history and favorites synced up. Built on the same technology as Chrome, Microsoft Edge has additional built-in features like Startup boost and Sleeping tabs, which boost your browsing experience with world class performance and speed that are optimized to work best with Windows. Microsoft Edge security and privacy features such as Microsoft Defender SmartScreen, Password Monitor, InPrivate search, and Kids Mode help keep you and your loved ones protected and secure online. Microsoft Edge has features to keep both you and your family protected. Enable content filters and access activity reports with your Microsoft Family Safety account and experience a kid-friendly web with Kids Mode. The new Microsoft Edge is now compatible with your favorite extensions, so it’s easy to personalize your browsing experience. Microsoft Edge 149.0.4022.69 changelog: Fixed an issue that caused the Downloads dialog to continue displaying the "Keep/Delete" prompt for .rdp files after the download completed. Stable channel security updates are listed here. Download: Microsoft Edge (64-bit) | 193.0 MB (Freeware) Download: Microsoft Edge (32-bit) | 170.0 MB Download: Microsoft Edge (ARM64) | 188.0 MB View: Microsoft Edge Website | Release History Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      175
    3. 3
      PsYcHoKiLLa
      139
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!