-
-
Notifications
You must be signed in to change notification settings - Fork 794
/
gdorks.php
executable file
·78 lines (64 loc) · 1.87 KB
/
gdorks.php
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
<?php
$gg_url = 'https://www.google.fr/search?num=100&q=';
$t_dorks = array(
'site:__SITE__ filetype:php',
'site:__SITE__ filetype:swf',
'site:__SITE__ inurl:swf',
'site:__SITE__ inurl:config',
'site:__SITE__ filetype:wsdl',
'site:__SITE__ inurl:&',
'site:__SITE__ inurl:redirect',
'site:__SITE__ intitle:"index of"',
'site:__SITE__ intext:"/uploads/"',
'site:__SITE__ inurl:wp-content',
'site:__SITE__ inurl:jira',
// 'site:__SITE__ "Notice"',
// 'site:__SITE__ "Warning"',
'site:__SITE__ "Fatal error"',
'site:__SITE__ "PHP Error"',
'site:__SITE__ "Call Stack"',
'site:__SITE__ "mysql"',
'site:__SITE__ "A problem occured in"',
'site:__SITE__ "not found on this server"',
'site:__SITE__ inurl:url=',
'site:__SITE__ inurl:file=',
'site:__SITE__ inurl:login,register',
'site:__SITE__ inurl:token',
'site:__SITE__ inurl:apikey',
'site:__SITE__ inurl:password',
'site:__SITE__ allinurl:@__SITE__',
'site:__SITE__ intitle:"about atlassian bitbucket"',
'site:ideone.com __SITE__',
'site:codebeautify.org __SITE__',
'site:codeshare.io __SITE__',
'site:codepen.io __SITE__',
'site:repl.it __SITE__',
'site:justpaste.it __SITE__',
'site:pastebin.com __SITE__',
'site:jsfiddle.net __SITE__',
'site:trello.com __SITE__',
site:http://ideone.com | site:http://codebeautify.org | site:http://codeshare.io | site:http://codepen.io | site:http://repl.it | site:http://justpaste.it | site:http://pastebin.com | site:http://jsfiddle.net | site:http://trello.com "$"
);
function usage( $err=null ) {
echo 'Usage: '.$_SERVER['argv'][0]." <example.com>\n";
if( $err ) {
echo 'Error: '.$err."\n";
}
exit();
}
if( $_SERVER['argc'] < 2 ) {
usage();
}
for( $i=1 ; $i<$_SERVER['argc'] ; $i++ )
{
$site = $_SERVER['argv'][$i];
foreach( $t_dorks as $d )
{
$gg = urlencode( $d );
$gg = str_replace( '__SITE__', $site, $gg );
echo $gg_url.$gg."\n";
}
echo "\n";
}
exit();
?>