-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
161 lines (151 loc) · 7.33 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Google Hacking Tests</title>
<script src="./jquery.js"></script>
<script src="./jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="./easyui.css">
<link rel="stylesheet" type="text/css" href="./icon.css">
<link rel="stylesheet" type="text/css" href="./tools-common.css">
<style type="text/css">
.row1,
.row2,
.row3 {
display: inline-flex;
}
li {
padding: 8px;
}
</style>
</head>
<body>
<div id="loading"></div>
<div id="center" data-options="region:'center'">
<div class="srch-inp">
<h1>Google Hacking Tests</h1>
<h3>How vulnerable is your website in a Search Engine</h3>
<input type="text" name="txtUrl" id="txtUrl" class="search-url"
placeholder="Enter domain name or IP address">
<div>
<ul class="list">
<div class="row1">
<li>
<p><a href="javascript:google_hacking_tests(1);" class="easyui-linkbutton"
style="width:200px">Directory Listing Vulnerabilities</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(2);" class="easyui-linkbutton"
style="width:200px">Configuration File Exposed</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(3);" class="easyui-linkbutton"
style="width:200px">Database Files Exposed</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(4);" class="easyui-linkbutton"
style="width:200px">Log Files Exposed</a></p>
</li>
</div><br />
<div class="row2">
<li>
<p><a href="javascript:google_hacking_tests(5);" class="easyui-linkbutton"
style="width:200px">Backup and old Files</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(6);" class="easyui-linkbutton"
style="width:200px">Login Pages</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(7);" class="easyui-linkbutton"
style="width:200px">SQL Errors</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(8);" class="easyui-linkbutton"
style="width:200px">Publicly Exposed Documents</a></p>
</li> <br />
</div>
<div class="row3">
<li>
<p><a href="javascript:google_hacking_tests(9);" class="easyui-linkbutton"
style="width:200px">phpinfo()</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(10);" class="easyui-linkbutton"
style="width:200px">Exposed CGI Files</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(11);" class="easyui-linkbutton"
style="width:200px">Open Redirect</a></p>
</li>
<li>
<p><a href="javascript:google_hacking_tests(12);" class="easyui-linkbutton"
style="width:200px">Git files</a></p>
</li>
</div>
</ul>
</div>
</div>
</div>
<!-- Script-->
<script>
function google_hacking_tests(type) {
if (!$("#txtUrl").val()) {
$.messager.alert('Alert', "Please enter either a domain name or IP address").window({ width: 300, height: 120 });
return;
}
site = $("#txtUrl").val();
if (site.indexOf('://') > 0) {
site = site.substr(site.indexOf('://') + 3);
}
url = 'https://www.google.com/search?q=';
url += 'site:' + site;
switch (type) {
case 1:
url += '+intitle:index.of';
break;
case 2:
url += '+ext:xml+|+ext:conf+|+ext:cnf+|+ext:reg+|+ext:inf+|+ext:rdp+|+ext:cfg+|+ext:txt+|+ext:ora+|+ext:ini';
break;
case 3:
url += '+ext:sql+|+ext:dbf+|+ext:mdb';
break;
case 4:
url += '+ext:log';
break;
case 5:
url += '+ext:bkf+|+ext:bkp+|+ext:bak+|+ext:old+|+ext:backup';
break;
case 6:
url += '+inurl:login';
break;
case 7:
url += '+intext:"sql+syntax+near"+|+intext:"syntax+error+has+occurred"+|+intext:"incorrect+syntax+near"+|+intext:"unexpected+end+of+SQL+command"+|+intext:"Warning:+mysql_connect()"+|+intext:"Warning:+mysql_query()"+|+intext:"Warning:+pg_connect()"';
break;
case 8:
url += '+ext:doc+|+ext:docx+|+ext:odt+|+ext:pdf+|+ext:rtf+|+ext:sxw+|+ext:psw+|+ext:ppt+|+ext:pptx+|+ext:pps+|+ext:csv';
break;
case 9:
url += '+ext:php+intitle:phpinfo+"published+by+the+PHP+Group"';
break;
case 10:
url += '+ext:cgi';
break;
case 11:
url += '+inurl:redir+|+inurl:redirect_uri+|+inurl:redirect_url+|+inurl:return_uri+|+inurl:return_url+|+inurl:return_to+|+inurl:href+|+inurl:host+|+inurl:next+|+inurl:url+|+inurl:uri+|+inurl:origin+|+inurl:referrer+|+inurl:callback_url+|+inurl:redirect+|+inurl:img_url+|+inurl:img_uri+|+inurl:returnTo+|+inurl:checkout_url+|+inurl:continue+|+inurl:return_path+|+inurl:destination+|+inurl:rurl+|+inurl:image_url+|+inurl:newurl'
break;
case 12:
url += '+intext:”index+of+/.git”+”parent directory”';
break;
}
window.open(url, 'Google Hacking Test2', 'scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=yes,menubar=no,location=no,status=no');
}
$("#loading").css({ "visibility": "hidden" });
$("body#cc").css({ "visibility": "visible" });
</script>
<script type="text/javascript">
_uacct = "UA-232293-6";
urchinTracker();
</script>
</body>
</html>