Advertisement
Googleinurl

[SCRIPT]=> INURL API facebook

Jul 30th, 2014
2,425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.10 KB | None | 0 0
  1. #!/usr/bin/php
  2. <?php
  3. /*
  4. NAME: INURL API facebook
  5. TIPE: TOOL - Capturing data facebook
  6. Tested on: Linux
  7. EXECUTE: php exploit.php perfilFacebook
  8. AUTOR: Cleiton Pinheiro / NICK: GoogleINURL
  9. Blog:http://blog.inurl.com.br
  10. Twitter: https://twitter.com/googleinurl
  11. Fanpage: https://fb.com/InurlBrasil
  12. GIT: https://github.com/googleinurl
  13. PASTEBIN: http://pastebin.com/u/Googleinurl
  14. YOUTUBE: https://www.youtube.com/channel/UCFP-WEzs5Ikdqw0HBLImGGA
  15. PACKETSTORMSECURITY: http://packetstormsecurity.com/user/googleinurl/
  16. PRINT: https://1.bp.blogspot.com/-GByN8EJG974/VKBxtKai66I/AAAAAAAADSQ/tdbuiZIZ0wI/s1600/Untitled-4.jpg
  17. Description:
  18. The script captures information through an api facebook, data that can be extracted: uid, username, name, first_name, middle_name, last_name, fri, locale, pic_small_with_logo, pic_big_with_logo, pic_square_with_logo, pic_with_logo, username Just to have an affinity or the User have not set the privacy of friends. it is possible to extract all friends of the victim.
  19. ------------------------------------------------------
  20. Usage info:
  21. php script.php {id/user}
  22. ------------------------------------------------------
  23. #PHP Version         5.4.7
  24. #php5-curl           LIB
  25. #php5-cli            LIB  
  26. #Apache              2.4
  27. #allow_url_fopen     On
  28. #permission          Reading
  29. #Operating system    LINUX              
  30. ------------------------------------------------------
  31. */
  32.  
  33. error_reporting(0);
  34. ini_set('display_errors', 0);
  35. !isset($_SESSION) ? session_start() : NULL;
  36. $_SESSION['config'] = array();
  37. system("command clear");
  38. echo menu();
  39.  
  40. function getHttpResponseCode($url) {
  41.     $curl = curl_init();
  42.    //print_r($url);
  43.     curl_setopt($curl, CURLOPT_URL, ($url));
  44.     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
  45.     curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
  46.     curl_setopt($curl, CURLOPT_HEADER, 0);
  47.     curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 0);
  48.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  49.     //curl_setopt($curl, CURLOPT_PROXY,"localhost:8118");  
  50.     return curl_exec($curl);
  51. }
  52.  
  53. if (isset($argv[1]) && !empty($argv[1])) {
  54.  
  55.     $_SESSION['config'] = json_decode(getHttpResponseCode("http://graph.facebook.com/{$argv[1]}"), true);
  56.     $_SESSION['config2'] = getHttpResponseCode("http://api.facebook.com/method/fql.query?query=" . urlencode("SELECT uid,username, name, first_name, middle_name, last_name, sex, locale, pic_small_with_logo, pic_big_with_logo, pic_square_with_logo, pic_with_logo, username FROM user WHERE uid ={$_SESSION['config']['id']}"));
  57.  
  58.     $xml = simplexml_load_string($_SESSION['config2']);
  59.     $array_ = json_decode(json_encode((array) $xml), 1);
  60.     $array = array($xml->getName() => $array_);
  61.     echo
  62.  
  63.     "\033[1;34m
  64. ================================================================================================================
  65.                                          DADOS FACEBOOK
  66. ================================================================================================================
  67. \n";
  68.     echo "\033[1;37m0x\033[0m\033[02;31mLINK:: \033[1;37m" . (isset($_SESSION['config']['link']) ? $_SESSION['config']['link'] : NULL ) . "\n\n";
  69.     echo "\033[1;37m0x\033[0m\033[02;31mID:: \033[1;37m{$array['fql_query_response']['user']['uid']}\n\n";
  70.     echo "\033[1;37m0x\033[0m\033[02;31mUSERNAME:: \033[1;37m{$array['fql_query_response']['user']['username']}\n\n";
  71.     echo "\033[1;37m0x\033[0m\033[02;31mNOME:: \033[1;37m{$array['fql_query_response']['user']['name']}\n\n";
  72.     echo "\033[1;37m0x\033[0m\033[02;31mPRIMEIRO NOME:: \033[1;37m{$array['fql_query_response']['user']['first_name']}\n\n";
  73.     echo "\033[1;37m0x\033[0m\033[02;31mSOBRENOME:: \033[1;37m{$array['fql_query_response']['user']['last_name']}\n\n";
  74.     echo "\033[1;37m0x\033[0m\033[02;31mSEXO:: \033[1;37m{$array['fql_query_response']['user']['sex']}\n\n";
  75.     echo "\033[1;37m0x\033[0m\033[02;31mLOCAL:: \033[1;37m{$array['fql_query_response']['user']['locale']}\n\n";
  76.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO LOGO PEQUENA:: \033[1;37m" . urldecode($array['fql_query_response']['user']['pic_small_with_logo']) . "\n\n";
  77.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO LOGO GRANDE:: \033[1;37m" . urldecode($array['fql_query_response']['user']['pic_big_with_logo']) . "\n\n";
  78.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO LOGO:: \033[1;37m" . urldecode($array['fql_query_response']['user']['pic_square_with_logo']) . "\n\n";
  79.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO:: \033[1;37m" . urldecode($array['fql_query_response']['user']['pic_with_logo']) . "\n\n\033[0m";
  80.  
  81.     echo "http://www.facebook.com/ajax/typeahead_friends.php?u={$_SESSION['config']['id']}&__a=1\n";
  82.     $_SESSION['config3'] = getHttpResponseCode("http://www.facebook.com/ajax/typeahead_friends.php?u={$_SESSION['config']['id']}&__a=1");
  83.     echo "================================================================================================================\n";
  84.  
  85.  
  86.     $cont = 0;
  87.     $array2 = (explode('{"', $_SESSION['config3']));
  88.     foreach ($array2 as $valores) {
  89.         $valores = str_replace('],"viewer_id":0},"bootloadable":{},"ixData":[]}', '', str_replace(',"n":"","it":null}', '', $valores));
  90.         $valores = str_replace('"u":', "\033[1;37mURL::\033[0m\033[1;34m", str_replace('t":', "\033[1;37mNOME::\033[0m\033[1;34m", str_replace('"i"', "\033[1;37mID::\033[0m\033[1;34m", str_replace('\/', '/', $valores))));
  91.         echo "\033[02;31m[\033[1;37m".$cont++."\033[02;31m]\033[0m - $valores\n";
  92.     }
  93. } else {
  94.  
  95.     echo menu() . "   Falta definir parĂ¢metro de busca, Exemplo=> php face.php usuario\n";
  96. }
  97.  
  98. function menu() {
  99.     system("command clear");
  100.     return("
  101. \033[1;37m _____
  102. \033[1;37m(_____)  
  103. \033[1;37m(\033[02;31m() ()\033[1;37m)
  104. \033[1;37m \   /  
  105. \033[1;37m  \ /
  106. \033[1;37m  /=\
  107. \033[1;37m [___] / Googleinurl - [ INURL API facebook ]  
  108. \033[1;37m0xNeither war between hackers, nor peace for the system.
  109. \033[1;37m0x\033[0m\033[02;31mhttp://blog.inurl.com.br
  110. \033[1;37m0x\033[0m\033[02;31mhttps://fb.com/InurlBrasil
  111. \033[1;37m0x\033[0m\033[02;31mhttp://twitter.com/@googleinurl\033[0m
  112. [+] Pesquisa dados facebook, Ex: php face.php zuck
  113. ");
  114. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement