This article is collected and organized on the Internet. If you have any vulnerabilities or problems, please kindly advise !!!!!!!
Google Hacking is actually not a new thing. At that time, Google Hacking didn't pay much attention to this technology and thought that webshell or something didn't have much practical use. Google Hacking is actually not
So simple...
Simple implementation of Google Hacking
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 means that a character in the body of a webpage is used as a search condition. For example, if you enter intext in Google, the system will return all webpages whose body contains "".
. Allintext: The usage is similar to that of 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 emphasize on this, whether it's a network-based attack or what we will talk about later on the side of the special survey? Search for files of the specified type. For example, enter
: Filetype: Doc. All file URLs ending with Doc will be returned. Of course, if you are looking for. Bak,. mdb, or. Inc, you can also obtain more information.
Info:
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 Connections similar to this will be returned: http://www.xxx.com/xxx/admin, which will be used to find the administrator login.
The URL is good. allinurl is similar to inurl, and multiple characters can be specified.
Link:
For example, you can search for: inurl: www.jz5u.com to return all URLs linked to www.jz5u.com.
Site:
This is also useful. For example, site: www.jz5u.com will return all URLs related to jz5u.com.
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
Sometimes some important password files are exposed to the network without protection for various reasons. If they are obtained by someone with ulterior motives, the harm is very great.
You can also use Google to search for programs with vulnerabilities. For example, zeroboard found a file code leakage vulnerability some time ago. You can use Google to find websites that use this program on the Internet.
Point:
Intext: zeroboard filetype: PHP
Or use:
Inurlutlogin. php? _ Zb_path = site:. JP
To find the page we need. phpMyAdmin is a set of powerful database * software, some sites due to configuration errors, we can directly access phpMyAdmin without using the password
Line *. You can use Google to search for program URLs with such vulnerabilities:
Intitle: phpMyAdmin intext: Create new database
Also remember http://www.xxx.com/_vti_bin/..%5... ystem32/cmd.exe? Dir? Search by Google. You may find many more
Antique machines. 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 things (Access database, MSSQL, MySQL connection files ).
For example:
Allinurl: BBS data
Filetype: MDB inurl: Database
Filetype: Inc Conn
Inurl: Data filetype: MDB
Intitle: "index of" data // This problem often occurs on Apache + Win32 servers with incorrect configuration. Like the above principle, we can use Google to find it.
Platform.
Google can be used to 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: Doc
Get n good doc files.
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/uploadfile.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 onJz5u.com
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.
1. Search for webshell using PHP
Intitle: "php shell *" "enable stderr" filetype: PHP
(Note: intitle-the webpage title enable stderr-UNIX standard output and the abbreviated filetype-file type for standard errors ). In the search results, you can find many
The Web shell of the command line. If the phpshell you find won't be used, if you are not familiar with Unix, you can directly look at the list, which is not detailed here and has a lot of useful value. Www.jz5u.com
Some of the phpshells we searched out here use Unix commands, all of which are functions called by the system (in fact, Baidu and other search engines can be used, just fill in
The write search content is different ). This phpwebshell can directly echo (commonly used Unix Commands ). One sentence:
Echo "summon"> index. jsp
Now let's look at the homepage and change it to "summon.
We can also use wget to upload a file (for example, the leaf you want to replace ). Execute Command and enter cat File> index.html or echo ""> File
Echo "test"> File
In this way, the site homepage is replaced successfully. You can also
Uname-A; CAT/etc/passwd
However, you must note that some webshell programs cannot be executed due to problems,
2. Search for Inc sensitive information
In the Google search box, enter:
Code:
. Org filetype: Inc