Implementation of testing specific sites using google

Source: Internet
Author: User

Google can still collect and penetrate information on a site. Next we will use google to perform a test on a specific site.
------------------------------------------------
First, use google to check some basic information about the site (some details are omitted ):
Site: xxxx.com
Find the domain names of several school departments from the returned information:
Http // a1.xxxx.com
Http // a2.xxxx.com
Http // a3.xxxx.com
Http // a4.xxxx.com
By the way, the ping should be performed on different servers. Schools generally have a lot of good information. First, check whether there are any good things.
Site: xxxx.com filetype: do *
Get * GOOD * oc.
First look for the website management background address:
Site: xxxx.com intext: Management
Site: xxxx.com inurl: login
Site: xxxx.com intitle: Management
More than 2 Admin backend addresses:
Http // a2.xxxx.com/sys/admin_login.asp
Http // a3.xxxx.com: 88/_ admin/login_in.asp
Pretty good. Let's see what programs are running on the server:
Site: a2.xxxx.com filetype: asp
Site: a2.xxxx.com filetype: php
Site: a2.xxxx.com filetype: aspx
Site: a3.xxxx.com filetype: asp
Site :.......
......
On the a2 server, IIS is used, asp is used, and a php Forum is also used.
The a3 server is also IIS, aspx + asp. Web programs should all be developed by themselves. If you have a forum, you can see if you can meet any public FTP account or something:
Site: a2.xxxx.com intext: ftp ://*:*
No value found. Let's see if there are any upload vulnerabilities:
Site: a2.xxxx.com inurl: file
Site: a3.xxxx.com inurl: load
A file upload page is found on a2:
Http // a2.xxxx.com/sys/previusfile.asp
I checked it with IE and did not have the access permission. Try injection,
Site: a2.xxxx.com filetype: asp
Get the address of N asp pages, and let the software do the physical work. This program obviously does not prevent injection, and the dbowner permission is not high, but it is enough, and the back a shell is not very nice.

In addition, it seems that the database is not small, and the password of the web administrator is directly exposed. Then, MD5 encryption is passed. In general, the passwords of school sites are relatively regular, usually domain names +
The transformation of the telephone type should be done with google.
Site: xxxx.com // obtain N second-level domain names
Site: xxxx.com intext: * @ xxxx.com // get N email addresses and the name of the email owner.
Site: xxxx.com intext: Phone Number // N
Create a dictionary of the information and then run it slowly. After a while, I ran out of four accounts, two of which were from the student union, one administrator, and one possibly from the teacher's account. Login:
Name: website administrator
Pass: a2xxxx7619 // Let's talk about it, that is, the domain name + 4 digits
How to escalate the permission is not discussed in this article.
During this time, I looked at some google hack research sites outside China. In fact, they are basically using some basic syntaxes flexibly, or working with a Script Vulnerability, mainly relying on
Flexible personal thinking. There are not many defense measures for google hack in foreign countries, so we are still waiting till now, so don't try to crack it. For some running on Windows
Apache network administrators should pay more attention to this aspect. An intitle: index of will almost all come out :)


-------------------------------------- Google hack --------------------------------------

Simple implementation of google hack
Some google syntaxes can be used to provide us with more information (and, of course, to those who are used to attack more people they want .), the following describes some common syntaxes.
Intext:
This is to use a character in the body of the webpage as a search condition. for example, enter "intext: Net" in google. returns all the web pages that contain "" in the webpage body. allintext: similar to intext.

Intitle:
Similar to the intext above, search for any characters in the webpage title that we are looking for. For example, search: intitle: Security angel. The system will return all web pages whose titles contain "Security Angel ".
Page. Similarly, allintitle: is similar to intitle.
Cache:
Search for the cache of some content in google, and sometimes you may find some good stuff.
Define:
Search for the definition of a word. Search: define: hacker. The definition of hacker is returned.
Filetype:
I would like to recommend that you use this method to search for files of a specified type, for example, input, whether it is a network-based attack or what we will talk about to collect information about a specific target.
: Filetype: doc. All file URLs ending with doc will be returned. Of course, if you are looking for. bak,. mdb, or. inc, the information may be richer :)
Inf
Query the basic information of a specified site.
Inurl:
Search whether the specified character exists in the URL. For example, if you enter inurl: admin, N connection tokens similar to this will be returned.
Link:
For example, search: inurl: www.4ngel.net can return all URLs connected to www.4ngel.net.
Site:
This is also useful. For example, site: www.4ngel.net. will return all URLs related to this site of 4ngel.net.


By the way, some * operators are also very useful:
+ Display columns that may be ignored by google as the query range
-Ignore a word
~ Word of consent
. Single wildcard
* Wildcard, which can represent multiple letters
"" Precise Query


Let's start with the actual application.
The following content is searched on google. For a tested attacker, he may be most interested in the password file. However, google often has powerful search capabilities.
Expose some sensitive information to them. Use google to search for the following content:
Intitle: "index of" etc
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: "index of" master. passwd
Intitle: "index of" htpasswd
"#-FrontPage-" inurl: service. pwd is sometimes exposed to the network for some important password files for various reasons without any protection. If it is obtained by someone with ulterior motives, It is very harmful.

 


You can also use google to search for programs with vulnerabilities. For example, if ZeroBoard found a file code leakage vulnerability some time ago, you can use google to find websites that use this program on the Internet:

Intext: ZeroBoard filetype: php
Or use:
Inurl: outlogin. php? _ Zb_path = site:. jp
To find the page we need. phpmyadmin is a set of powerful database * software. Due to misconfiguration of some sites, we can directly perform * on phpmyadmin without using the password. we can use google to search for the program URLs with such vulnerabilities:

Intitle: phpmyadmin intext: Create new database
Http://www.xxx.com/_vti_bin/..%5C..%5C..%5C..%5C..%5C../winnt/system32/cmd.exe? Dir? You may also find many antique-grade machines by using google. We can also use this to find pages with other cgi vulnerabilities.

Allinurl: winnt system32
As mentioned above, google can be used to search for database files. Some syntaxes can be used to precisely search for more information (access database, mssql, mysql Connection Files, etc ). for example:

Allinurl: bbs data
Filetype: mdb inurl: database
Filetype: inc conn
Inurl: data filetype: mdb
Intitle: "index of" data
// This often happens on apache + win32 servers with incorrect configuration. Like the above principle, we can use google to find the backend.
Foo1 foo2 (that is, association, such as searching xx Company xx beauty)
Operator: foo
Filetype: 123 type
Site: foo.com is more interesting than directly viewing the website and can get a lot of unexpected information.
Intext: foo
Intitle: fooltitle title
Allinurl: foo searches for all related connections of xx website. (Required)
Links: foo. You just need to know its link.
Allintilte: foo.com
We can help "-" "+" to adjust the search Accuracy
Search for a password directly: (quotes indicate exact search)
Of course, we can extend it to the above results for secondary search.
"Index of" htpasswd/passwd
Filetype: xls username password email
"Ws_ftp.log"
"Config. php"
Allinurl: admin mdb
Service filetype: pwd... or a pcanywhere password suffix, such as "cif"

More and more interesting, and more sensitive information
"Robots.txt" "Disallow:" filetype: txt
Inurl: _ vti_cnf (the key index of FrontPage, the CGI library of the scanner generally has a location)
Allinurl:/msadc/Samples/selector/showcode. asp
/../Passwd
/Examples/jsp/snp/snoop. jsp
Phpsysinfo
Intitle: index of/admin
Intitle: "documetation"
Inurl: search by multiple keywords such as 5800 (vnc port) or desktop port
Webmin port 10000
Inurl:/admin/login. asp
Intext: Powered by GBook365
Intitle: "php shell *" "Enable stderr" filetype: php directly searches for phpwebshell
Foo.org filetype: inc
Ipsec filetype: conf
Intilte: "error occurred" ODBC request where (select | insert)
To put it bluntly, you can directly look up the database for retrieval. The popular SQL injection will be developed.
"Dumping data for table" username password
Intitle: "Error using Hypernews"
"Server Software"
Intitle: "HTTP_USER_AGENT = Googlebot"
"HTTP_USER_ANGET = Googlebot" THS ADMIN
Filetype:. doc site:. mil classified


Check multiple keywords:
Intitle: config confixx login password
"Mydomain.com" nessus report
"Report generated"
"Ipconfig"
"Winipconfig"
Google cache utilization (hoho, the most influential thing), we recommend that you search for more "select all websites"
Special Recommendation: administrator users and other related things, such as names and birthdays ...... You can also use it as a dictionary.


Some Techniques

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.