-
Notifications
You must be signed in to change notification settings - Fork 2
/
Bruteforce_Scanner.php
126 lines (110 loc) · 4 KB
/
Bruteforce_Scanner.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
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
<?php
#------ Bruteforce Scanner [v1] By AGC007™ ------#
#------ Get Data ------#4
if(isset($_REQUEST["LoginPage"]))#~GetPageUrl
{
if(strstr(strtolower($_REQUEST["LoginPage"]),"http"))
{
$Site = $_REQUEST["LoginPage"];
if(!strstr(strtolower($Site),"https"))
{
$Site = str_replace("http","https",$Site);
Check_BruteForce($Site);
}
else
{
Check_BruteForce($Site);
}
}
else
{
echo("Please Enter The URL of The Login Page (https://dash.cloudflare.com/login)");
}
}
#------ Get Data ------#
#------ Check BruteForce Function ------#
function Check_BruteForce($Site)#~Check-BruteForce
{
try {
$ch = curl_init($Site);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 1);
$Respone_REQ = curl_exec($ch);
curl_close($ch);
if(strstr(strtolower($Respone_REQ),"captcha"))#~Check-Captcha
{
if(strstr(strtolower($Respone_REQ),"recaptcha") || strstr(strtolower($Respone_REQ),"re-captcha"))#~Check-reCaptcha
{
if (strstr(strtolower($Respone_REQ), "class=\"g-recaptcha\" data-sitekey=\""))#~Check-reCaptcha-Version
{
$Security_Var = "Hard";
$Challenge_Var = "Yes";
$Captcha_Var = "Yes"; $reCaptcha_Var = "Yes";
$Respone_Var = "The Site's Login Page has Hard Security (reCaptcha[V2] Bypass is Not Possible)";
}
else
{
$Security_Var = "Medium";
$Challenge_Var = "No";
$Captcha_Var = "Yes"; $reCaptcha_Var = "Yes";
$Respone_Var = "The Site's Login Page has Good Security(reCaptcha[V3] Bypass is Possible)";
}
}
else
{
$Security_Var = "Medium";
$Challenge_Var = "No";
$Captcha_Var = "Yes"; $reCaptcha_Var = "No";
$Respone_Var = "The Site's Login Page has Moderate Security (Captcha Bypass is Possible)";
}
}
else
{
if (strstr(strtolower($Respone_REQ), "cloudflare"))#~Check-Cloudflare
{
$Security_Var = "Hard";
$Challenge_Var = "Yes";
$Captcha_Var = "Unknow"; $reCaptcha_Var = "Unknow";
$Respone_Var = "The Site's Login Page has Hard Security (The Site has A System To Prevent The Entry of Robots)";
}
else
{
$Security_Var = "Low";
$Challenge_Var = "No";
$Captcha_Var = "No"; $reCaptcha_Var = "No";
$Respone_Var = "The Site's Login Page of The Site has Very Low Security";
}
}
echo(
json_encode(
array(
"Security" => $Security_Var,
"Challenge" => $Challenge_Var,
"Captcha" => $Captcha_Var,
"reCaptcha" => $reCaptcha_Var,
"Respone" => " $Respone_Var",
)
)
);
}
catch (Exception $ER)#~Error
{
$Security_Var = "Hard";
$Challenge_Var = "Yes";
$Captcha_Var = "Unknow"; $reCaptcha_Var = "Unknow";
$Respone_Var = "The Site's Login Page has Hard Security (The Site has A System To Prevent The Entry of Robots)";
echo(
json_encode(
array(
"Security" => $Security_Var,
"Challenge" => $Challenge_Var,
"Captcha" => $Captcha_Var,
"reCaptcha" => $reCaptcha_Var,
"Respone" => " $Respone_Var",
)
)
);
}
}
#------ Check BruteForce Function ------#
#------ Bruteforce Scanner [v1] By AGC007™ ------#