Googleinurl

[SCRIPT]=> INURL API facebook

Jul 30th, 2014
1,981
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. EMAIL: inurllbr@gmail.com
  10. Blog:http://blog.inurl.com.br
  11. Twitter: https://twitter.com/googleinurl
  12. Fanpage: https://fb.com/InurlBrasil
  13. GIT: https://github.com/googleinurl
  14. PASTEBIN: http://pastebin.com/u/Googleinurl
  15. YOUTUBE: https://www.youtube.com/channel/UCFP-WEzs5Ikdqw0HBLImGGA
  16. PACKETSTORMSECURITY: http://packetstormsecurity.com/user/googleinurl/
  17. PRINT: https://1.bp.blogspot.com/-GByN8EJG974/VKBxtKai66I/AAAAAAAADSQ/tdbuiZIZ0wI/s1600/Untitled-4.jpg
  18. Description:
  19. 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.
  20. ------------------------------------------------------
  21. Usage info:
  22. php script.php {id/user}
  23. ------------------------------------------------------
  24. #PHP Version         5.4.7
  25. #php5-curl           LIB
  26. #php5-cli            LIB  
  27. #Apache              2.4
  28. #allow_url_fopen     On
  29. #permission          Reading
  30. #Operating system    LINUX              
  31. ------------------------------------------------------
  32. */
  33.  
  34. error_reporting(0);
  35. ini_set('display_errors', 0);
  36. !isset($_SESSION) ? session_start() : NULL;
  37. $_SESSION['config'] = array();
  38. system("command clear");
  39. echo menu();
  40.  
  41. function getHttpResponseCode($url) {
  42.     $curl = curl_init();
  43.    //print_r($url);
  44.     curl_setopt($curl, CURLOPT_URL, ($url));
  45.     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
  46.     curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
  47.     curl_setopt($curl, CURLOPT_HEADER, 0);
  48.     curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 0);
  49.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  50.     //curl_setopt($curl, CURLOPT_PROXY,"localhost:8118");  
  51.     return curl_exec($curl);
  52. }
  53.  
  54. if (isset($argv[1]) && !empty($argv[1])) {
  55.  
  56.     $_SESSION['config'] = json_decode(getHttpResponseCode("http://graph.facebook.com/{$argv[1]}"), true);
  57.     $_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']}"));
  58.  
  59.     $xml = simplexml_load_string($_SESSION['config2']);
  60.     $array_ = json_decode(json_encode((array) $xml), 1);
  61.     $array = array($xml->getName() => $array_);
  62.     echo
  63.  
  64.     "\033[1;34m
  65. ================================================================================================================
  66.                                          DADOS FACEBOOK
  67. ================================================================================================================
  68. \n";
  69.     echo "\033[1;37m0x\033[0m\033[02;31mLINK:: \033[1;37m" . (isset($_SESSION['config']['link']) ? $_SESSION['config']['link'] : NULL ) . "\n\n";
  70.     echo "\033[1;37m0x\033[0m\033[02;31mID:: \033[1;37m{$array['fql_query_response']['user']['uid']}\n\n";
  71.     echo "\033[1;37m0x\033[0m\033[02;31mUSERNAME:: \033[1;37m{$array['fql_query_response']['user']['username']}\n\n";
  72.     echo "\033[1;37m0x\033[0m\033[02;31mNOME:: \033[1;37m{$array['fql_query_response']['user']['name']}\n\n";
  73.     echo "\033[1;37m0x\033[0m\033[02;31mPRIMEIRO NOME:: \033[1;37m{$array['fql_query_response']['user']['first_name']}\n\n";
  74.     echo "\033[1;37m0x\033[0m\033[02;31mSOBRENOME:: \033[1;37m{$array['fql_query_response']['user']['last_name']}\n\n";
  75.     echo "\033[1;37m0x\033[0m\033[02;31mSEXO:: \033[1;37m{$array['fql_query_response']['user']['sex']}\n\n";
  76.     echo "\033[1;37m0x\033[0m\033[02;31mLOCAL:: \033[1;37m{$array['fql_query_response']['user']['locale']}\n\n";
  77.     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";
  78.     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";
  79.     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";
  80.     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";
  81.  
  82.     echo "http://www.facebook.com/ajax/typeahead_friends.php?u={$_SESSION['config']['id']}&__a=1\n";
  83.     $_SESSION['config3'] = getHttpResponseCode("http://www.facebook.com/ajax/typeahead_friends.php?u={$_SESSION['config']['id']}&__a=1");
  84.     echo "================================================================================================================\n";
  85.  
  86.  
  87.     $cont = 0;
  88.     $array2 = (explode('{"', $_SESSION['config3']));
  89.     foreach ($array2 as $valores) {
  90.         $valores = str_replace('],"viewer_id":0},"bootloadable":{},"ixData":[]}', '', str_replace(',"n":"","it":null}', '', $valores));
  91.         $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))));
  92.         echo "\033[02;31m[\033[1;37m".$cont++."\033[02;31m]\033[0m - $valores\n";
  93.     }
  94. } else {
  95.  
  96.     echo menu() . "   Falta definir parâmetro de busca, Exemplo=> php face.php usuario\n";
  97. }
  98.  
  99. function menu() {
  100.     system("command clear");
  101.     return("
  102. \033[1;37m _____
  103. \033[1;37m(_____)  
  104. \033[1;37m(\033[02;31m() ()\033[1;37m)
  105. \033[1;37m \   /  
  106. \033[1;37m  \ /
  107. \033[1;37m  /=\
  108. \033[1;37m [___] / Googleinurl - [ INURL API facebook ]  
  109. \033[1;37m0xNeither war between hackers, nor peace for the system.
  110. \033[1;37m0x\033[0m\033[02;31mhttp://blog.inurl.com.br
  111. \033[1;37m0x\033[0m\033[02;31mhttps://fb.com/InurlBrasil
  112. \033[1;37m0x\033[0m\033[02;31mhttp://twitter.com/@googleinurl\033[0m
  113. [+] Pesquisa dados facebook, Ex: php face.php zuck
  114. ");
  115. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×