Advertisement
danhcltx

get token

Aug 14th, 2021
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. date_default_timezone_set('Asia/Ho_Chi_Minh');
  2. $res="\033[0m";
  3. $red="\033[1;31m";
  4. $white= "\033[1;37m";
  5. $whiteb= "\033[1;37m";
  6. $redb="\033[1;31m";
  7. $green="\033[1;32m";
  8. $yellow="\033[1;33m";
  9. $cam="\033[1;33m";
  10. $test="\033[1;33m";
  11. $greenb="\033[1;32m";
  12. $blue="\033[1;34m";
  13. $lam="\033[1;34m";
  14. $tmi="\033[1;34m";
  15. $hong="\033[1;35m";
  16. $imt="\033[1;35m";
  17. $cyan= "\e[1;36m";
  18. $syan="\033[1;36m";
  19. $xnhac= "\033[1;96m";
  20. $den="\033[1;90m";
  21. $do="\033[1;91m";
  22. $luc="\033[1;92m";
  23. $vang="\033[1;93m";
  24. $xduong="\033[1;94m";
  25. $hong="\033[1;95m";
  26. $trang="\033[1;97m";
  27. $vang="\033[1;93m";
  28. $do="\033[1;91m";
  29. $BBlack="\033[1;30m" ;
  30. $BRed="\033[1;31m" ;
  31. $BGreen="\033[1;32m" ;
  32. $BYellow="\033[1;33m" ;
  33. $BBlue="\033[1;34m" ;
  34. $BPurple="\033[1;35m" ;
  35. $BCyan="\033[1;36m" ;
  36. $BWhite="\033[1;37m" ;
  37. $Blue="\033[0;34m";
  38. $lime="\033[1;32m";
  39. $red="\033[1;31m";
  40. $xanh="\033[1;32m";
  41. $cyan="\033[1;36m";
  42. $yellow="\033[1;33m";
  43. $turquoise="\033[1;34m";
  44. $maugi="\033[1;35m";
  45. $white= "\033[1;37m";
  46. $BCyan="\033[1;36m";
  47. $trang="\033[1;37m";
  48. $do="\033[1;31m";
  49. $luc="\033[1;32m";
  50. $vang="\033[1;33m";
  51. $luc="\033[1;92m";
  52. system('clear');
  53. echo "\033[1;93m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n";
  54. echo "\033[1;93m┃ \033[1;93m┃\033[1;92m☞ YouTube: \033[0;34mDanh Võ \033[1;93m┃
  55. \033[1;93m┃ \033[1;31m█▀▄ ▄▀█ █▄ █ █▄█ \033[1;93m┃\033[1;92m☞ zalo:\033[1;36m 0929533616 \033[1;93m┃
  56. \033[0;93m┃ \033[1;97m█▄▀ █▀█ █ ▀█ █▀█ \033[1;93m┃\033[1;92m☞ momo: \033[1;37m0336536030 \033[1;93m┃ \n\033[1;93m┃ ┃\033[1;92m☞ Facebook: \033[1;31m100069088879543 \033[1;93m┃ \n";
  57. echo "\033[1;93m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n";
  58. @system("clear");
  59. echo "\033[1;31m[\033[1;33m●\033[1;31m]\033[1;37m => \033[1;32mNhập Tài Khoản Facebook: \033[1;36m";
  60. $acc=trim(fgets(STDIN));
  61. echo "\033[1;31m[\033[1;33m●\033[1;31m]\033[1;37m => \033[1;32mNhập Mật khẩu Facebook: \033[1;36m";
  62. $pw=trim(fgets(STDIN));
  63. $url="https://b-graph.facebook.com/auth/login?email=".$acc."&password=".$pw."&access_token=6628568379|c1e620fa708a1d5696fb991c1bde5662&method=post";
  64. $ch=curl_init();
  65. $timeout=5;
  66. curl_setopt($ch, CURLOPT_URL, $url);
  67. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  68. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  69. $lines_string=curl_exec($ch);
  70. curl_close($ch);
  71. $json = json_decode($lines_string,true);
  72. $key = $json['access_token'];
  73. $idfb = $json['uid'];
  74.  
  75. $lik="https://graph.facebook.com/me/?access_token=".$key;
  76. $ch=curl_init();
  77. $timeout=5;
  78. curl_setopt($ch, CURLOPT_URL, $lik);
  79. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  80. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  81. $dulieu=curl_exec($ch);
  82. curl_close($ch);
  83. $json = json_decode($dulieu,true);
  84. $ten = $json['name'];
  85. $link = $json['link'];
  86. echo "\033[1;37mTên Facebook: \033[1;35m$ten \n";
  87. echo "\033[1;37mLink Facebook: \033[1;35m$link \n";
  88. echo "\033[1;37mID Facebook: \033[1;35m $idfb \n";
  89. echo "\033[1;37mToken Facebook: \033[1;35m$key \n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement