daily pastebin goal
32%
SHARE
TWEET

[SCRIPT]=> INURLBR API face V1.0

Googleinurl Jul 22nd, 2014 2,075 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/php
  2. <?php
  3. ################################################################################
  4. #GRUPO GOOGLEINURL BRASIL - PESQUISA AVANÇADA.
  5. #SCRIPT NAME: INURLBR API face
  6. #AUTOR:    Cleiton Pinheiro
  7. #Nick:     Googleinurl
  8. #Blog:     http://blog.inurl.com.br
  9. #twitter: /@googleinurl
  10. #facebook: /InurlBrasil
  11. #Versão:  1.0
  12. #-------------------------------------------------------------------------------
  13. #PHP Version         5.4.7
  14. #php5-curl           LIB
  15. #php5-cli            LIB  
  16. #cURL support        enabled
  17. #cURL Information    7.24.0
  18. #Apache              2.4
  19. #allow_url_fopen     On
  20. #permission          Reading
  21. #Operating system    LINUX              
  22. ################################################################################
  23. error_reporting(0);
  24. ini_set('display_errors', 0);
  25. !isset($_SESSION) ? session_start() : NULL;
  26. $_SESSION['config'] = array();
  27. system("command clear");
  28. echo menu();
  29. function getHttpResponseCode($url) {
  30.     $curl = curl_init();
  31.     curl_setopt($curl, CURLOPT_URL, ($url));
  32.     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
  33.     curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
  34.     curl_setopt($curl, CURLOPT_HEADER, 0);
  35.     curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 0);
  36.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  37.  
  38.     return curl_exec($curl);
  39. }
  40.  
  41. if (isset($argv[1]) && !empty($argv[1])) {
  42.  
  43.     $_SESSION['config'] = json_decode(getHttpResponseCode("http://graph.facebook.com/{$argv[1]}"), true);
  44.     $_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']}"));
  45.  
  46.     $xml = simplexml_load_string($_SESSION['config2']);
  47.     $array_ = json_decode(json_encode((array) $xml), 1);
  48.     $array = array($xml->getName() => $array_);
  49.     echo
  50.  
  51.     "\033[1;34m
  52. ================================================================================================================
  53.                                          DADOS FACEBOOK
  54. ================================================================================================================
  55. \n";
  56.     echo "\033[1;37m0x\033[0m\033[02;31mLINK:: \033[1;37m" . (isset($_SESSION['config']['link']) ? $_SESSION['config']['link'] : NULL ) . "\n\n";
  57.     echo "\033[1;37m0x\033[0m\033[02;31mID:: \033[1;37m{$array['fql_query_response']['user']['uid']}\n\n";
  58.     echo "\033[1;37m0x\033[0m\033[02;31mUSERNAME:: \033[1;37m{$array['fql_query_response']['user']['username']}\n\n";
  59.     echo "\033[1;37m0x\033[0m\033[02;31mNOME:: \033[1;37m{$array['fql_query_response']['user']['name']}\n\n";
  60.     echo "\033[1;37m0x\033[0m\033[02;31mPRIMEIRO NOME:: \033[1;37m{$array['fql_query_response']['user']['first_name']}\n\n";
  61.     echo "\033[1;37m0x\033[0m\033[02;31mSOBRENOME:: \033[1;37m{$array['fql_query_response']['user']['last_name']}\n\n";
  62.     echo "\033[1;37m0x\033[0m\033[02;31mSEXO:: \033[1;37m{$array['fql_query_response']['user']['sex']}\n\n";
  63.     echo "\033[1;37m0x\033[0m\033[02;31mLOCAL:: \033[1;37m{$array['fql_query_response']['user']['locale']}\n\n";
  64.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO LOGO PEQUENA:: \033[1;37m{$array['fql_query_response']['user']['pic_small_with_logo']}\n\n";
  65.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO LOGO GRANDE:: \033[1;37m{$array['fql_query_response']['user']['pic_big_with_logo']}\n\n";
  66.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO LOGO:: \033[1;37m{$array['fql_query_response']['user']['pic_square_with_logo']}\n\n";
  67.     echo "\033[1;37m0x\033[0m\033[02;31mFOTO:: \033[1;37m{$array['fql_query_response']['user']['pic_with_logo']}\n\n\033[0m";
  68. } else {
  69.  
  70.     echo menu() . "   Falta definir parâmetro de busca, Exemplo=> php face.php usuario\n";
  71. }
  72.  
  73. function menu() {
  74.     system("command clear");
  75.     return("
  76. \033[1;37m _____
  77. \033[1;37m(_____)  
  78. \033[1;37m(\033[02;31m() ()\033[1;37m)
  79. \033[1;37m \   /  
  80. \033[1;37m  \ /
  81. \033[1;37m  /=\
  82. \033[1;37m [___] / Googleinurl - [ INURLBR API face V1.0 ]  
  83. \033[1;37m0xNeither war between hackers, nor peace for the system.
  84. \033[1;37m0x\033[0m\033[02;31mhttp://blog.inurl.com.br
  85. \033[1;37m0x\033[0m\033[02;31mhttps://fb.com/InurlBrasil
  86. \033[1;37m0x\033[0m\033[02;31mhttp://twitter.com/@googleinurl\033[0m
  87. [+] Pesquisa dados facebook, Ex: php face.php zuck
  88. ");
  89. }
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