daily pastebin goal
64%
SHARE
TWEET

Login FACEBOOK PHP

Googleinurl Sep 24th, 2013 3,557 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. #####################################################################
  4. AUTOR:Googleinurl
  5.  
  6. Script login PHP facebook.
  7. Pode facilmente adaptado em um bruteforce web.
  8. Usando...
  9.  
  10. http://localhost/loginFace.php?arquivo=arquivoCookie01.txt
  11.  
  12.  
  13. HTTP/1.1 302 Found Location: https://login.facebook.com/checkpoint/?next
  14.  
  15. LOGIN OK Header location direciona para url https://login.facebook.com/checkpoint/?next
  16.  
  17. Isso pode servir de validação em um possivel BruteForce.
  18. #####################################################################
  19. */
  20.  
  21. function criarArquivoC($arquivoCookie){
  22. $arquivoCookie = isset($arquivoCookie) ? $arquivoCookie : exit();
  23. $arquivoCookie = fopen($_GET['arquivo'], 'a');
  24. fclose($arquivoCookie);
  25. return $_GET['arquivo'];
  26. }
  27.  
  28. function logarFace($login,$senha,$arquivoCookie){
  29.  
  30. $config['navegador'] = "Internet/8.0 (Chrome; U;  Linux; Puta que te pariu, SP, BR; rv:1.7.12) Gecko/20050915 Chrome/1.0.7";
  31.  
  32. $config['url_referencia'] = "https://www.facebook.com/login.php";
  33. $config['url_login_post'] = "https://login.facebook.com/login.php";
  34.  
  35. $config['login'] = $login;
  36. $config['senha'] = $senha;
  37.  
  38. $arquivoCookie = criarArquivoC($_GET['arquivo']);
  39.  
  40. $ch = curl_init();
  41. curl_setopt($ch, CURLOPT_URL,$config['url_login_post']);
  42. curl_setopt($ch, CURLOPT_USERAGENT, $config['navegador']);
  43. curl_setopt($ch, CURLOPT_COOKIEFILE, $arquivoCookie);
  44. curl_setopt($ch, CURLOPT_COOKIEJAR, $arquivoCookie);
  45. curl_setopt($ch, CURLOPT_REFERER, $config['url_referencia']);
  46. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  47. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  48. curl_setopt($ch, CURLOPT_HEADER, 1);
  49. curl_setopt($ch, CURLOPT_NOBODY, 0);
  50. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  51. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  52. curl_setopt($ch, CURLOPT_POSTFIELDS, "charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&version=1.0&return_session=0&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email={$config['login']}&pass={$config['senha']}");
  53.  
  54.  
  55. $html = curl_exec($ch);//EXECUTANDO URL  DEPOIS DE LOGADO
  56.  
  57. return $html;
  58. }
  59.  
  60.  
  61. echo logarFace('SENHA','LOGIN',$_GET['arquivo']);
  62.  
  63. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top