BALASNIPER008

Jdownloads Scan 2016

Feb 24th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.31 KB | None | 0 0
  1. #!/usr/bin/perl
  2. ###############################################              
  3. #  Gr33tz TO ALL My Freinds    #
  4. #  BALA SNIPER                            #
  5. ###############################################
  6.  
  7. use HTTP::Request;
  8. use LWP::Simple;
  9. use LWP::UserAgent;
  10.  
  11.  
  12. if ($^O =~ /MSWin32/) {system("cls"); system("color a");
  13. }else { system("clear"); }
  14. print "\t[+]------Sample Scanner for JDownloads Vulnerability------[+]\n";
  15. print "\t[!]      Dev by BALA SNIPER                               [!]\n";
  16. print "\t[!]      result in GOOD.txt                               [!]\n";
  17. print "\t[+]-------------------------------------------------------[+]\n";
  18. print "\n\n\t.Usage : perl $0  list_of_website.txt .\n\n";
  19.  
  20. open(tarrget,"<$ARGV[0]") or die "$!";
  21. while(<tarrget>){
  22. chomp($_);
  23. $target = $_;
  24. if($target !~ /http:\/\//)
  25. {
  26. $target = "http://$target";
  27. }
  28.  
  29. $website = $target."/index.php?option=com_jdownloads&Itemid=0&view=upload";
  30.  
  31. $req=HTTP::Request->new(GET=>$website);
  32. $ua=LWP::UserAgent->new();
  33. $ua->timeout(30);
  34. $response=$ua->request($req);
  35. if($response->content=~ /Soumettre/ ||
  36.    $response->content=~ /Submit/    
  37.  
  38. )
  39.  {
  40.  $Messageee ="GOOD";
  41. open (TEXT, '>>GOOD.txt');
  42. print TEXT "$target => $Messageee\n";
  43. close (TEXT);
  44. }
  45. else {
  46. $Messageee = "ERROR";
  47. }
  48. print ">> $target => $Messageee\n";
  49. }
Add Comment
Please, Sign In to add comment