Advertisement
minhnhatisme

TDS

Jun 30th, 2021
1,252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 41.93 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. session_start();
  4. $ress = "\033[0;32m";
  5. $res = "\033[0;33m";
  6. $red = "\033[0;31m";
  7. $green = "\033[0;37m";
  8. $yellow = "\033[0;33m";
  9. $white = "\033[0;33m";
  10. $banner = "\r";
  11. $xnhac = "\033[1;96m";
  12. $den = "\033[1;90m";
  13. $do = "\033[1;91m";
  14. $luc = "\033[1;92m";
  15. $vang = "\033[1;93m";
  16. $xduong = "\033[1;94m";
  17. $hong = "\033[1;95m";
  18. $trang = "\033[1;97m";
  19. $dem = 0;
  20. date_default_timezone_set("Asia/Ho_Chi_Minh");
  21. system('clear');
  22. //================================================================================================================================================================================================================================================================================================================================================================================================
  23. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo"\n";
  24. echo "\033[1;91m ██████╗ ██╗   ██╗██╗   ██╗ ██████╗ ██╗   ██╗ █████╗ ███╗   ██╗\n";usleep(20000);
  25. echo "\033[1;33m ██╔══██╗██║   ██║╚██╗ ██╔╝██╔═══██╗██║   ██║██╔══██╗████╗  ██║\n";usleep(20000);
  26. echo "\033[1;34m ██║  ██║██║   ██║ ╚████╔╝ ██║   ██║██║   ██║███████║██╔██╗ ██║\n";usleep(20000);
  27. echo "\033[1;96m ██║  ██║██║   ██║  ╚██╔╝  ██║▄▄ ██║██║   ██║██╔══██║██║╚██╗██║\n";usleep(20000);
  28. echo "\033[1;97m ██████╔╝╚██████╔╝   ██║   ╚██████╔╝╚██████╔╝██║  ██║██║ ╚████║\n";usleep(20000);
  29. echo "\033[1;97m ╚═════╝  ╚═════╝    ╚═╝    ╚══▀▀═╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝\n";usleep(2000);
  30. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo "\n";
  31. //================================================================================================================================================================================================================================================================================================================================================================================================
  32. usleep(2000000);
  33. echo"$luc • Đang Kết Nối Tới Máy Chủ ...!\n";
  34. $lock = file_get_contents('https://pastebin.com/raw/jqnCPhzs');
  35.     $keylock = 'lock';
  36.     echo $res;
  37.     if (md5('lock') != md5($keylock)){
  38. exit($do . " • Máy Chủ Đã Ngừng Hoạt Động - Hoặc Kết Nối Mạng Có Vấn Đề !!! Vui Lòng Kiểm Tra Hoặc Cập Nhật Phiên Bản Mới...
  39. $res");
  40.     } else {  
  41.         sleep(1);
  42.             }
  43.         echo"$luc • Kết Nối Thành Công - HSD: 18/06/2021 ...!\n";
  44.         usleep(2000000);
  45.         for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo "\n";
  46.         $listnv = [];
  47.         if(file_exists('AccesTDS.txt') != true){
  48.         echo $trang." ".$luc."Nhập Access Token TDS:$vang ";
  49.         $tokenacc = trim(fgets(STDIN));
  50.         $k = fopen('AccesTDS.txt','a+');
  51.         fwrite($k,$tokenacc);
  52.         }else{
  53.         $tokentds = file_get_contents('AccesTDS.txt');
  54.         $m = login($tokentds);
  55.         $mm = json_decode($m);
  56.         $sss = $mm->{"success"};
  57.         //get xu access
  58.         $user = $mm->{"data"}->{"user"};
  59.         echo $trang." ".$luc."Bạn Muốn Đăng Nhập Lại Tài Khoản ".$vang.$user.$luc." Không? (y/n): $vang";
  60.         $choicee=trim(fgets(STDIN));
  61.         if ( strtolower($choicee) == 'y' ) {
  62.         $tokenacc = file_get_contents('AccesTDS.txt');}
  63.         else if( strtolower($choicee) == 'n' ) {
  64.         @system ('rm AccesTDS.txt');
  65.         echo $trang." ".$luc."Nhập Access Token TDS:$vang ";
  66.         $tokenacc = trim(fgets(STDIN));
  67.         $k = fopen('AccesTDS.txt','a+');
  68.         fwrite($k,$tokenacc);
  69.         } else { exit($do." Lỗi Không Xác Định \n");
  70.         }
  71. }
  72. //cookie
  73. $khocookie = [];
  74. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  75. echo $trang." ".$luc."Nhập Số Lượng Cookie Facebook:$vang ";
  76. $luong=trim(fgets(STDIN));
  77. $c=1;$thu=1;
  78. $mangcookie =[];
  79. for($b=1;$b<=$luong;$b++){
  80. echo $trang." ".$luc."Nhập Cookie Facebook Thứ ".$thu.":$vang ";
  81. $nhapck=trim(fgets(STDIN));
  82. array_push($khocookie,$nhapck);
  83. $thu=$thu+1;
  84. }
  85.  
  86. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  87. echo $luc." Cấu Hình Mặc Định Tự Động Cho Tool !!!\n";
  88. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  89. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Delay Nhiệm Vụ Like".$vang." 5 ".$luc."Giây\n";
  90. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Delay Nhiệm Vụ Page".$vang." 30 ".$luc."Giây\n";
  91. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Delay Nhiệm Vụ Share".$vang." 15 ".$luc."Giây\n";
  92. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Delay Nhiệm Vụ Follow".$vang." 10 ".$luc."Giây\n";
  93. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Delay Nhiệm Vụ Comment".$vang." 30 ".$luc."Giây\n";
  94. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Delay Nhiệm Vụ Cảm Xúc".$vang." 15 ".$luc."Giây\n";
  95. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Delay Nhiệm Vụ Cảm Xúc Cmt".$vang." 15 ".$luc."Giây\n";
  96. //1 Cookie
  97. if ($luong=='1'){
  98. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Chống Block Hoạt Động Sau".$vang." 20 ".$luc."Nhiệm Vụ\n";
  99. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Sau ".$vang."20".$luc." Nhiệm Vụ Tool Nghỉ Ngơi".$vang." 50 ".$luc."Giây\n";
  100. //Nhiều Cookie
  101. }else{
  102. echo $trang." ".$luc."Cấu Hình (".$vang." DEMO ".$luc.") Tự Động Chuyển Acc Sau".$vang." 20 ".$luc."Nhiệm Vụ\n";
  103. }
  104. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  105. //Cookie < 2
  106. if ($luong==1){
  107. echo $trang." ".$luc."Bạn Có Muốn Tool Cấu Hình Trên Không? (y/n): $vang";
  108. $choncauhinh=trim(fgets(STDIN));
  109. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  110. if ($choncauhinh=='y' or $choncauhinh =='Y'){$delaylike=5;$delaypage=20;$delaysub=10;$delaycx=15;$delaycxcmt=15;$delayshare=15;$delaycmt=30;$SBNNV=20;$DLBNS=50;$doinick=99999999;
  111. }
  112. //Cookie > 2
  113. }else{
  114. echo $trang." ".$luc."Bạn Có Muốn Tool Cấu Hình Trên Không? (y/n): $vang";
  115. $choncauhinh=trim(fgets(STDIN));
  116. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  117. if ($choncauhinh=='y' or $choncauhinh =='Y'){$delaylike=5;$delaypage=20;$delaysub=10;$delaycx=15;$delaycxcmt=15;$delayshare=15;$delaycmt=30;$doinick=20;$SBNNV=999999999;$DLBNS=9999999999;
  118. }
  119. }
  120. //Chọn Cấu Hình
  121. if ($choncauhinh=='n' or $choncauhinh=='N'){
  122. $doinick=99999999;
  123. echo $trang." ".$luc."Nhập Delay Nhiệm Vụ Like: $vang";
  124. $delaylike=trim(fgets(STDIN));
  125. echo $trang." ".$luc."Nhập Delay Nhiệm Vụ Page: $vang";
  126. $delaypage=trim(fgets(STDIN));
  127. $delaypage=trim(fgets(STDIN));
  128. echo $trang." ".$luc."Nhập Delay Nhiệm Vụ Share: $vang";
  129. $delayshare=trim(fgets(STDIN));
  130. echo $trang." ".$luc."Nhập Delay Nhiệm Vụ Follow: $vang";
  131. $delaysub=trim(fgets(STDIN));
  132. echo $trang." ".$luc."Nhập Delay Nhiệm Vụ Comment: $vang";
  133. $delaycmt=trim(fgets(STDIN));
  134. echo $trang." ".$luc."Nhập Delay Nhiệm Vụ Cảm Xúc: $vang";
  135. $delaycx=trim(fgets(STDIN));
  136. echo $trang." ".$luc."Nhập Delay Nhiệm Vụ Cảm Xúc Cmt: $vang";
  137. $delaycxcmt=trim(fgets(STDIN));
  138. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  139. //1 Cookie
  140. if ($luong==1){
  141. //bật tính năng block
  142. echo $trang." ".$luc."Tính Năng Chống Block Hoạt Động Sau:$vang ";
  143. $SBNNV=trim(fgets(STDIN));
  144. echo $trang." ".$luc."Sau ".$vang.$SBNNV.$luc." Nhiệm Vụ Thì Nghỉ Bao Nhiêu Giây:$vang ";
  145. $DLBNS=trim(fgets(STDIN));
  146. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  147.  
  148. //Delay Vòng
  149. }else{
  150. echo $trang." ".$luc."Tool Sẽ Chuyển Cấu Hình Sau:".$vang." ";
  151. $doinick=trim(fgets(STDIN));
  152.  
  153. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(2000);echo $trang."- ";usleep(15000);}echo "\n";
  154.  
  155. }
  156. echo "$res";}
  157.  
  158.  
  159. echo $luc." Đã Thêm ".$vang.$luong.$luc." Cookie Facebook Vào Cấu Hình Tool\n";
  160.  
  161.  
  162.  
  163.  
  164.  
  165. //url
  166. $urlinfo = "https://traodoisub.com/api/?fields=profile&access_token=$tokenacc";
  167. $urllike = "https://traodoisub.com/api/?fields=like&access_token=$tokenacc";
  168. $urlsub = "https://traodoisub.com/api/?fields=follow&access_token=$tokenacc";
  169. $urlcx = "https://traodoisub.com/api/?fields=reaction&access_token=$tokenacc";
  170. $urlshare = "https://traodoisub.com/api/?fields=share&access_token=$tokenacc";
  171. $urlcmt = "https://traodoisub.com/api/?fields=comment&access_token=$tokenacc";
  172. $urlpage = "https://traodoisub.com/api/?fields=page&access_token=$tokenacc";
  173. $urllikecmt = "https://traodoisub.com/api/?fields=reactcmt&access_token=$tokenacc";
  174. //login
  175. $info = api($urlinfo);
  176. if ($info["error"]) {
  177.     exit ($info["error"]);
  178. }
  179. //$thongtin
  180. $user = strtolower($info["data"]["user"]);
  181. $xuhientai = $info["data"]["xu"];
  182. $phongnen=$trang."~".$do."[".$luc."✓".$do."]".$trang." =>";
  183. system('clear');
  184. //================================================================================================================================================================================================================================================================================================================================================================================================
  185. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo"\n";
  186. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo"\n";
  187. echo "\033[1;91m ██████╗ ██╗   ██╗██╗   ██╗ ██████╗ ██╗   ██╗ █████╗ ███╗   ██╗\n";usleep(20000);
  188. echo "\033[1;33m ██╔══██╗██║   ██║╚██╗ ██╔╝██╔═══██╗██║   ██║██╔══██╗████╗  ██║\n";usleep(20000);
  189. echo "\033[1;34m ██║  ██║██║   ██║ ╚████╔╝ ██║   ██║██║   ██║███████║██╔██╗ ██║\n";usleep(20000);
  190. echo "\033[1;96m ██║  ██║██║   ██║  ╚██╔╝  ██║▄▄ ██║██║   ██║██╔══██║██║╚██╗██║\n";usleep(20000);
  191. echo "\033[1;97m ██████╔╝╚██████╔╝   ██║   ╚██████╔╝╚██████╔╝██║  ██║██║ ╚████║\n";usleep(20000);
  192. echo "\033[1;97m ╚═════╝  ╚═════╝    ╚═╝    ╚══▀▀═╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝\n";usleep(2000);
  193. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo "\n";
  194. //================================================================================================================================================================================================================================================================================================================================================================================================
  195. echo $phongnen.$luc." Tài Khoản TDS : ".$vang.$user."\n";
  196. echo $phongnen.$luc." Số Xu Tài Khoản : ".$vang.$xuhientai."\n";
  197. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo "\n";
  198.  
  199.  
  200. echo $phongnen.$luc." Nhiệm Vụ Like ? (y/n):$vang ";
  201. $chonlike=trim(fgets(STDIN));
  202. if ($chonlike == 'y' ){$like=1;}
  203. if ($chonlike == 'Y' ){$like=1;}
  204.  
  205. echo $phongnen.$luc." Nhiệm Vụ Page ? (y/n):$vang ";
  206. $chonpage=trim(fgets(STDIN));
  207. if ($chonpage == 'y' ){$page=1;}
  208. if ($chonpage == 'Y' ){$page=1;}
  209.  
  210. echo $phongnen.$luc." Nhiệm Vụ Share ? (y/n):$vang ";
  211. $chonshare=trim(fgets(STDIN));
  212. if ($chonshare == 'y' ){$share=1;}
  213. if ($chonshare == 'Y' ){$share=1;}
  214.  
  215. echo $phongnen.$luc." Nhiệm Vụ Follow ? (y/n):$vang ";
  216. $chonfollow=trim(fgets(STDIN));
  217. if ($chonfollow == 'y' ){$sub=1;}
  218. if ($chonfollow == 'Y' ){$sub=1;}
  219.  
  220. echo $phongnen.$luc." Nhiệm Vụ Comment ? (y/n):$vang ";
  221. $choncmt=trim(fgets(STDIN));
  222. if ($choncmt == 'y' ){$cmt=1;}
  223. if ($choncmt == 'Y' ){$cmt=1;}
  224.  
  225. echo $phongnen.$luc." Nhiệm Vụ Cảm Xúc ? (y/n):$vang ";
  226. $choncx=trim(fgets(STDIN));
  227. if ($choncx == 'y' ){$cx=1;}
  228. if ($choncx == 'Y' ){$cx=1;}
  229.  
  230.  
  231. echo $phongnen.$luc." Nhiệm Vụ Cảm Xúc Cmt ? (y/n):$vang ";
  232. $choncxc=trim(fgets(STDIN));
  233. if ($choncxc == 'y' ){$cxcmt=1;}
  234. if ($choncxc == 'Y' ){$cxcmt=1;}
  235.  
  236.  
  237.  
  238. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo "\n";
  239.  
  240.  
  241.  
  242.  
  243.  
  244. while(true){
  245.   foreach ($khocookie as $cookie){
  246. $access_token = laytoken($cookie);
  247. if (strpos($access_token, 'EAAAA') !== 0) {
  248.  
  249. echo $vang." WARING : ".$do."Tất Cả Cookie Thêm Vào Bị Vô Hiệu Lực !!!\n";
  250. die;
  251.  
  252. }
  253. $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
  254. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
  255. $urlcauhinh = "https://traodoisub.com/api/?fields=run&id=$idfb&access_token=$tokenacc";
  256. $cauhinh = api($urlcauhinh);
  257. if ($cauhinh["data"]["msg"] == "Cấu hình thành công!") {
  258.  
  259. if ($TKTK==1){for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo"\n";}
  260. echo $luc." ID Cấu Hình: ".$vang.$idfb." ".$luc."Tên Facebook: ".$vang.$tenfb."\n";
  261. for($v=0;$v<= 15;$v++){echo $trang."- ";usleep(3000);echo $trang."- ";usleep(3000);}echo"\n";
  262. $TKTK=1;
  263.  
  264. } else {
  265.     echo $do." CẤU HÌNH THẤT BẠI, VUI LÒNG THÊM TÀI KHOẢN VÀO CẤU HÌNH \n";
  266. }
  267. $spam = 0;
  268. while (true) {
  269.     if ($spam == 1) {
  270.         break;
  271.     }
  272.     //listlike
  273.      if ($like=="1"){
  274.       for ($i = 0; $i < 30; $i++) {
  275.        $listlike = api($urllike);
  276.         if (count($listlike) !== 0) {
  277.          break;
  278.                }
  279.             }
  280.          }
  281.      //listpage
  282.      if ($page=="1"){
  283.        for ($i = 1; $i < 30; $i++) {
  284.          $listpage = api($urlpage);
  285.           if (count($listpage) !== 0) {
  286.            break;
  287.                  }
  288.               }
  289.            }
  290.     //share
  291.      if ($share=="1"){
  292.         for ($i = 1; $i < 30; $i++) {
  293.          $listshare = api($urlshare);
  294.            if (count($listshare) > 0) {
  295.             break;
  296.                    }
  297.                }
  298.            }
  299.     //listfollow
  300.      if ($sub=="1"){
  301.          while (true) {
  302.           $listsub = api($urlsub);
  303.             if (count($listsub) !== 0) {
  304.              break;
  305.                     }
  306.                 }
  307.             }
  308.     //listcmt
  309.      if ($cmt=="1"){
  310.         for ($i = 1; $i < 30; $i++) {
  311.          $listcmt = api($urlcmt);
  312.           if (count($listcmt) !== 0) {
  313.            break;
  314.                   }
  315.               }
  316.           }
  317.     //listreaction
  318.      if ($cx=="1"){
  319.         for ($i = 1; $i < 30; $i++) {
  320.          $listcx = api($urlcx);
  321.           if (count($listcx) !== 0) {
  322.            break;
  323.                   }
  324.               }
  325.           }
  326.     //listlikecmt
  327.      if ($cxcmt=="1"){
  328.          for ($i = 1; $i < 30; $i++) {
  329.            $listlikecmt = api($urllikecmt);
  330.              if (count($listlikecmt) !== 0) {
  331.               break;
  332.                      }
  333.                 }
  334.            }
  335.  
  336.  
  337. //+×+×+×+×+××+×+×+×+××+×+×+×+××+×+×+×+××+×+×+×+××+×+×+×+××+×+×+×+××+×+×+×+××+×+×+×+×
  338.  
  339.     for ($lap = 0; $lap < 20; $lap++) {
  340.  
  341.         // like
  342.         if ($listlike !== NULL) {
  343.             $idlike = $listlike[$lap]["id"];
  344.             if ($idlike !== '') {
  345.                 $g = like($access_token, $idlike, $cookie);
  346.                 if ($g -> {'error'} -> {'code'} == 190) {
  347.                 echo $do." Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons\n";
  348.                  echo $do." Tài Khoản Bị Văng !!!\n";
  349.                     array_splice($khocookie,$xz,1);
  350.                     $spam = 1; break;
  351.                 }
  352.                 if ($g -> {'error'} -> {'code'} == 368) {
  353.                 echo $do." Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons\n";
  354.                  echo $do." Tài Khoản Bị Block !!!\n";
  355.                     $spam = 1; break;
  356.                 }
  357.                 $nhanlike = nhantien('LIKE', $idlike, $tokenacc);
  358.                 if ($nhanlike["success"] == 200) {
  359.                     $xu = $nhanlike["data"]["xu"];
  360.                     $xujob = $nhanlike["data"]["msg"];
  361.                     $dem++;
  362.                     $idG = substr("$idlike",0,15);
  363.                     $joblike=" LIKE ";
  364.                     $xujob="+200";
  365. hoanthanh($dem, $joblike, $idlike, $xujob, $xu);
  366. $nvdelay=$delaylike;
  367. delaytool($nvdelay);
  368. $delay1=$SBNNV;
  369. $delay2=$DLBNS;
  370. delayblock($delay1, $delay2, $max);
  371.                     if($dem % $doinick == 0){
  372.                       $spam = 1; break;
  373.                     }
  374.  
  375.                 }
  376.             }}
  377.         //page
  378.         if ($listpage !== NULL) {
  379.             $idpage = $listpage[$lap]["id"];
  380.             if ($idpage !== '') {
  381.                 page($idpage, $cookie);
  382.                 $nhanpage = nhantien('PAGE', $idpage, $tokenacc);
  383.                 if ($nhanpage["success"] == 200) {
  384.                     $xu = $nhanpage["data"]["xu"];
  385.                     $xujob = $nhanpage["data"]["msg"];
  386.                     $dem++;
  387.                     $idG = substr("$idpage",0,15);
  388.                     $jobpage=" PAGE ";
  389.                     $xujob="+600";
  390.                    
  391. hoanthanh($dem, $jobpage, $idpage, $xujob, $xu);
  392. $nvdelay=$delaypage;
  393. delaytool($nvdelay);
  394. $delay1=$SBNNV;
  395. $delay2=$DLBNS;
  396. delayblock($delay1, $delay2, $max);
  397.                     if($dem % $doinick == 0){
  398.                       $spam = 1; break;
  399.                     }
  400.  
  401.                 }
  402.             }
  403.         }
  404.             if ($listshare !== NULL) {
  405.                 $idshare = $listshare[$lap]["id"];
  406.                 if (isset($idshare)) {
  407.                     $r = share($access_token, $idshare);
  408.                     $g = json_decode($r);
  409.                     if ($g -> {'error'} -> {'code'} == 190) {
  410.                 echo $do." Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons\n";
  411.                  echo $do." Tài Khoản Bị Văng !!!\n";
  412.                        
  413.                         $spam = 1; break;
  414.                     }
  415.                     if ($g -> {'error'} -> {'code'} == 368) {
  416.                 echo $do." Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons\n";
  417.                  echo $do." Tài Khoản Bị Block !!!\n";
  418.                         $spam = 1; break;
  419.                     }
  420.  
  421.                     if (strpos($r, '"id"')){
  422.                         $nhanshare = nhantien('SHARE', $idshare, $tokenacc);
  423.                         if ($nhanshare["success"] == 200) {
  424.                             $xu = $nhanshare["data"]["xu"];
  425.                             $xujob = $nhanshare["data"]["msg"];
  426.                             $dem++;
  427.                             $idG = substr("$idshare",0,15);
  428.                             $jobshare="SHARE ";
  429.                             $xujob="+800";
  430. hoanthanh($dem, $jobshare, $idshare, $xujob, $xu);
  431. $nvdelay=$delayshare;
  432. delaytool($nvdelay);
  433. $delay1=$SBNNV;
  434. $delay2=$DLBNS;
  435. delayblock($delay1, $delay2, $max);
  436.                             if($dem % $doinick == 0){
  437.                               $spam = 1; break;
  438.                             }
  439.  
  440.                         }
  441.  
  442.                     }else{
  443.                         echo $r;
  444.                     }
  445.  
  446.                 }else{
  447.                     break;
  448.                 }
  449.             }
  450.         //follow
  451.         if ($listsub !== NULL) {
  452.             $idsub = $listsub[$lap]["id"];
  453.             if ($idsub !== '') {
  454.                 $g = follow($access_token, $idsub, $cookie);
  455.                 if ($g -> {'error'} -> {'code'} == 190) {
  456.                 echo $do." Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons\n";
  457.                  echo $do." Tài Khoản Bị Văng !!!\n";
  458.                     array_splice($khocookie,$xz,1);
  459.                     $spam = 1; break;
  460.                 }
  461.                 if ($g -> {'error'} -> {'code'} == 368) {
  462.                 echo $do." Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons\n";
  463.                  echo $do." Tài Khoản Bị Block !!!\n";
  464.                     $spam = 1; break;
  465.                 }
  466.  
  467.                 $nhansub = nhantien('FOLLOW', $idsub, $tokenacc);
  468.                 if ($nhansub["success"] == 200) {
  469.                     $xu = $nhansub["data"]["xu"];
  470.                     $xujob = $nhansub["data"]["msg"];
  471.                     $dem++;
  472.                     $jobfl="FOLLOW";
  473.                     $xujob="+600";
  474.                    
  475.                    
  476. hoanthanh($dem, $jobfl, $idsub, $xujob, $xu);
  477. $nvdelay=$delaysub;
  478. delaytool($nvdelay);
  479. $delay1=$SBNNV;
  480. $delay2=$DLBNS;
  481. delayblock($delay1, $delay2, $max);
  482.                     if($dem % $doinick == 0){
  483.                       $spam = 1; break;
  484.                     }
  485.  
  486.                 }
  487.             }}
  488.  
  489.         //cmt
  490.         if ($listcmt !== NULL) {
  491.             $idcmt = $listcmt[$lap]["id"];
  492.             $msg = $listcmt[$lap]["msg"];
  493.             if ($idcmt !== '') {
  494.                 cmt($access_token, $idcmt, $cookie, $msg);
  495.                 $nhancmt = nhantien('COMMENT', $idcmt, $tokenacc);
  496.                 if ($nhancmt["success"] == 200) {
  497.                     $xu = $nhancmt["data"]["xu"];
  498.                     $xujob = $nhancmt["data"]["msg"];
  499.                     $dem++;
  500.                     $idG = substr("$idcmt",0,15);
  501.                     $jobcmt=" CMT  ";
  502.                     $xujob="+600";
  503. hoanthanh($dem, $jobcmt, $idcmt, $xujob, $xu);
  504. $nvdelay=$delaycmt;
  505. delaytool($nvdelay);
  506. $delay1=$SBNNV;
  507. $delay2=$DLBNS;
  508. delayblock($delay1, $delay2, $max);
  509.                     if($dem % $doinick == 0){
  510.                       $spam = 1; break;
  511.                     }
  512.  
  513.                 }
  514.             }}
  515.         //cảm xúc
  516.         if ($listcx !== NULL) {
  517.             $idcx = $listcx[$lap]["id"];
  518.             $type = $listcx[$lap]["type"];
  519.             if ($idcx !== '') {
  520.                 camxuc($idcx, $type, $cookie);
  521.                 $nhancx = nhantien($type, $idcx, $tokenacc);
  522.                 if ($nhancx["success"] == 200) {
  523.                     $xu = $nhancx["data"]["xu"];
  524.                     $xujob = $nhancx["data"]["msg"];
  525.                     $dem++;
  526.  
  527.                     if ($type == 'WOW') {
  528.                         $type = ' WOW  ';
  529.                     } elseif ($type == 'SAD') {
  530.                         $type = ' SAD  ';
  531.                     } elseif ($type == 'ANGRY') {
  532.                         $type = 'ANGRY ';
  533.                     } elseif ($type == 'LOVE') {
  534.                         $type = ' LOVE ';
  535.                     } elseif ($type == 'HAHA') {
  536.                         $type = ' HAHA ';
  537.                     }
  538.                     $xujob="+400";
  539.                    
  540. hoanthanh($dem, $type, $idsub, $xujob, $xu);
  541. $nvdelay=$delaycx;
  542. delaytool($nvdelay);
  543. $delay1=$SBNNV;
  544. $delay2=$DLBNS;
  545. delayblock($delay1, $delay2, $max);
  546.                     if($dem % $doinick == 0){
  547.                       $spam = 1; break;
  548.                     }
  549.  
  550.                 }
  551.             }}
  552.  
  553.  
  554.              //likecmt
  555.         if ($listlikecmt !== NULL) {
  556.             $idlikecmt = $listlikecmt[$lap]["id"];
  557.             $type = $listlikecmt[$lap]["type"];
  558.             if ($idlikecmt !== '') {
  559.                 if ($type == 'LIKE'){
  560.                     like($access_token, $idlikecmt, $cookie);
  561.                 }else{
  562.                     camxuc($idlikecmt, $type, $cookie);
  563.                 }              
  564.                 $nhanpage = nhantien($type.'CMT', $idlikecmt, $tokenacc);
  565.                 if ($nhanpage["success"] == 200) {
  566.                     $xu = $nhanpage["data"]["xu"];
  567.                     $xujob = $nhanpage["data"]["msg"];
  568.                     $dem++;
  569.                     $xujob="+600";
  570.                    
  571.                     if ($type == 'WOW') {
  572.                         $type = 'WOW.C';
  573.                     } elseif ($type == 'SAD') {
  574.                         $type = 'SAD.C ';
  575.                     } elseif ($type == 'ANGRY') {
  576.                         $type = 'AGRY.C';
  577.                     } elseif ($type == 'LOVE') {
  578.                         $type = 'LOVE.C';
  579.                     } elseif ($type == 'HAHA') {
  580.                         $type = 'HAHA.C';
  581.                     } elseif ($type == 'LIKE') {
  582.                         $type = 'LIKE.C';
  583.                     }
  584.                    
  585. hoanthanh($dem, $type, $idlikecmt, $xujob, $xu);
  586. $nvdelay=$delaycxcmt;
  587. delaytool($nvdelay);
  588. $delay1=$SBNNV;
  589. $delay2=$DLBNS;
  590. delayblock($delay1, $delay2, $max);
  591.                     if($dem % $doinick == 0){
  592.                       $spam = 1; break;
  593.                     }
  594.  
  595.                 }
  596.             }
  597.         }
  598.  
  599.     }
  600. }
  601. }
  602. }
  603. function api($url) {
  604.     $head = array(
  605.         "Host: traodoisub.com",
  606.         "cache-control: max-age=0",
  607.         "upgrade-insecure-requests: 1",
  608.         "user-agent: Mozilla/5.0 (Linux; Android 9; Mi A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.110 Mobile Safari/537.36",
  609.         "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
  610.         "sec-fetch-site: none",
  611.         "sec-fetch-mode: navigate",
  612.         "sec-fetch-user: ?1",
  613.         "sec-fetch-dest: document",
  614.         //"accept-encoding: gzip, deflate, br",
  615.         "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
  616.     );
  617.     $ch = curl_init();
  618.     curl_setopt_array($ch, array(
  619.         CURLOPT_URL => $url,
  620.         CURLOPT_CUSTOMREQUEST => "GET",
  621.         CURLOPT_HTTPHEADER => $head,
  622.         CURLOPT_SSL_VERIFYPEER => FALSE,
  623.         CURLOPT_RETURNTRANSFER => 1
  624.     ));
  625.     $get = curl_exec($ch);
  626.     curl_close($ch);
  627.     return json_decode($get, true);
  628. }
  629. function nhantien($type, $id, $tokenacc) {
  630.     $nhan = file_get_contents("https://traodoisub.com/api/coin/?type=$type&id=$id&access_token=$tokenacc");
  631.     return json_decode($nhan, true);
  632. }
  633. function follow($access_token, $idtest, $cookie) {
  634.     $ch = curl_init();
  635.     curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idtest.'/subscribers');
  636.     $head[] = "Connection: keep-alive";
  637.     $head[] = "Keep-Alive: 300";
  638.     $head[] = "authority: m.facebook.com";
  639.     $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  640.     $head[] = "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5";
  641.     $head[] = "cache-control: max-age=0";
  642.     $head[] = "upgrade-insecure-requests: 1";
  643.     $head[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
  644.     $head[] = "sec-fetch-site: none";
  645.     $head[] = "sec-fetch-mode: navigate";
  646.     $head[] = "sec-fetch-user: ?1";
  647.     $head[] = "sec-fetch-dest: document";
  648.     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36');
  649.     curl_setopt($ch, CURLOPT_ENCODING, '');
  650.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  651.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  652.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  653.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  654.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  655.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  656.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  657.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  658.     $data = array('access_token' => $access_token);
  659.     curl_setopt($ch, CURLOPT_POST, count($data));
  660.     curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  661.     $access = curl_exec($ch);
  662.     curl_close($ch);
  663.     return json_decode($access);
  664. }
  665. function share($access_token,$id){
  666.     $ch = curl_init();
  667.     curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/feed?method=POST&link=https://www.facebook.com/'.$id.'&privacy={%27value%27:%20%27EVERYONE%27}&access_token='.$access_token);
  668.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  669.     curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
  670.     curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  671.     $headers = array();
  672.     $headers[] = 'Authority: graph.facebook.com';
  673.     $headers[] = 'Upgrade-Insecure-Requests: 1';
  674.     $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36';
  675.     $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9';
  676.     $headers[] = 'Sec-Fetch-Site: none';
  677.     $headers[] = 'Sec-Fetch-Mode: navigate';
  678.     $headers[] = 'Sec-Fetch-User: ?1';
  679.     $headers[] = 'Sec-Fetch-Dest: document';
  680.     $headers[] = 'Accept-Language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5';
  681.     curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  682.  
  683.     $result = curl_exec($ch);
  684.     if (curl_errno($ch)) {
  685.         echo 'Error:' . curl_error($ch);
  686.     }
  687.     curl_close($ch);
  688.     return $result;
  689. }
  690. function like($access_token, $id, $cookie) {
  691.     $ch = curl_init();
  692.     curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  693.     $head[] = "Connection: keep-alive";
  694.     $head[] = "Keep-Alive: 300";
  695.     $head[] = "authority: m.facebook.com";
  696.     $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  697.     $head[] = "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5";
  698.     $head[] = "cache-control: max-age=0";
  699.     $head[] = "upgrade-insecure-requests: 1";
  700.     $head[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
  701.     $head[] = "sec-fetch-site: none";
  702.     $head[] = "sec-fetch-mode: navigate";
  703.     $head[] = "sec-fetch-user: ?1";
  704.     $head[] = "sec-fetch-dest: document";
  705.     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36');
  706.     curl_setopt($ch, CURLOPT_ENCODING, '');
  707.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  708.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  709.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  710.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  711.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  712.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  713.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  714.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  715.     $data = array('access_token' => $access_token);
  716.     curl_setopt($ch, CURLOPT_POST, count($data));
  717.     curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  718.     $access = curl_exec($ch);
  719.     curl_close($ch);
  720.     return json_decode($access);
  721.  
  722. }
  723. function cmt($access_token, $idcmt, $cookie, $msg) {
  724.     $ch = curl_init();
  725.     curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/comments');
  726.     $head[] = "Connection: keep-alive";
  727.     $head[] = "Keep-Alive: 300";
  728.     $head[] = "authority: m.facebook.com";
  729.     $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  730.     $head[] = "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5";
  731.     $head[] = "cache-control: max-age=0";
  732.     $head[] = "upgrade-insecure-requests: 1";
  733.     $head[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
  734.     $head[] = "sec-fetch-site: none";
  735.     $head[] = "sec-fetch-mode: navigate";
  736.     $head[] = "sec-fetch-user: ?1";
  737.     $head[] = "sec-fetch-dest: document";
  738.     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36');
  739.     curl_setopt($ch, CURLOPT_ENCODING, '');
  740.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  741.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  742.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  743.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  744.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  745.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  746.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  747.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  748.     $data = array('message' => $msg, 'access_token' => $access_token);
  749.     curl_setopt($ch, CURLOPT_POST, count($data));
  750.     curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  751.     $access = curl_exec($ch);
  752.     curl_close($ch);
  753.     return json_decode($access);
  754. }
  755. function page($idpage, $cookie) {
  756.     $ch = curl_init();
  757.     curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$idpage);
  758.     $head[] = "Connection: keep-alive";
  759.     $head[] = "Keep-Alive: 300";
  760.     $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  761.     $head[] = "Accept-Language: en-us,en;q=0.5";
  762.     curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  763.     curl_setopt($ch, CURLOPT_ENCODING, '');
  764.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  765.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  766.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  767.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  768.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  769.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  770.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  771.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  772.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  773.    :'));
  774.     $page = curl_exec($ch);
  775.     if (explode('&amp;refid=', explode('pageSuggestionsOnLiking=1&amp;gfid=', $page)[1])[0]) {
  776.         $get = explode('&amp;refid=', explode('pageSuggestionsOnLiking=1&amp;gfid=', $page)[1])[0];
  777.         $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$idpage.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  778.         curl_setopt($ch, CURLOPT_URL, $link);
  779.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  780.         curl_exec($ch);
  781.     }
  782.     curl_close($ch);
  783.  
  784. }
  785. function camxuc($idcx, $type, $cookie) {
  786.     $ch = curl_init();
  787.     curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$idcx);
  788.     $head[] = "Connection: keep-alive";
  789.     $head[] = "Keep-Alive: 300";
  790.     $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  791.     $head[] = "Accept-Language: en-us,en;q=0.5";
  792.     curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  793.     curl_setopt($ch, CURLOPT_ENCODING, '');
  794.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  795.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  796.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  797.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  798.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  799.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  800.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  801.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  802.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  803.    :'));
  804.  
  805.     $cx = curl_exec($ch);
  806.     $haha = explode('<a href="', $cx);
  807.     if ($type == 'LOVE') {
  808.         $haha2 = explode('" style="display:block"', $haha[2])[0];
  809.     } else if ($type == 'WOW') {
  810.         $haha2 = explode('" style="display:block"', $haha[5])[0];
  811.     } else if ($type == 'HAHA') {
  812.         $haha2 = explode('" style="display:block"', $haha[4])[0];
  813.     } else if ($type == 'SAD') {
  814.         $haha2 = explode('" style="display:block"', $haha[6])[0];
  815.     } else {
  816.         $haha2 = explode('" style="display:block"', $haha[7])[0];
  817.     }
  818.     $link2 = html_entity_decode($haha2);
  819.  
  820.     curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  821.     print('https://mbasic.facebook.com'.$link2);
  822.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  823.     curl_exec($ch);    
  824.    
  825.     print( curl_exec($ch));
  826.     curl_close($ch);
  827. }
  828.  
  829. function laytoken($cookie) {
  830.     $ch = curl_init();
  831.     curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  832.     $head[] = "Connection: keep-alive";
  833.     $head[] = "Keep-Alive: 300";
  834.     $head[] = "authority: m.facebook.com";
  835.     $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  836.     $head[] = "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5";
  837.     $head[] = "cache-control: max-age=0";
  838.     $head[] = "upgrade-insecure-requests: 1";
  839.     $head[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
  840.     $head[] = "sec-fetch-site: none";
  841.     $head[] = "sec-fetch-mode: navigate";
  842.     $head[] = "sec-fetch-user: ?1";
  843.     $head[] = "sec-fetch-dest: document";
  844.     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36');
  845.     curl_setopt($ch, CURLOPT_ENCODING, '');
  846.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  847.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  848.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  849.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  850.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  851.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  852.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  853.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  854.     $access = curl_exec($ch);
  855.     curl_close($ch);
  856.     if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0]) {
  857.         $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0];
  858.     }
  859.     return $access_token;
  860. }
  861. function login($tokentds){
  862.   $login = file_get_contents("https://traodoisub.com/api/?fields=profile&access_token=".$tokentds);
  863.   return $login;
  864. }
  865. function hoanthanh($dem, $type, $id, $xujob, $xu) {
  866. $do = "\033[1;91m";
  867. $luc = "\033[1;92m";
  868. $vang = "\033[1;93m";
  869. $xduong = "\033[1;94m";
  870. $hong = "\033[1;95m";
  871. $trang = "\033[1;97m";
  872. $xnhac = "\033[1;96m";
  873. $idG = substr("$id",0,15);
  874. echo $vang."🌸[".$vang.$dem.$vang."]".$do." ● ".$xnhac.date("H:i")."".$do." ● ".$vang.$type.$do." ● ".$luc.$idG.$do." ● ".$luc.$xujob.$do." ● ".$vang.$xu." XU\e[0m\n";
  875. }
  876. function delaytool($nvdelay){
  877. $icon=70000;
  878. for($tt = $nvdelay ;$tt> 0;$tt--){
  879. echo "\r";
  880. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)\033[1;37m~\033[1;96m>           \033[1;92m😶đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  881. echo "\r";
  882. usleep(5000);
  883. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)\033[1;32m          \r";
  884. usleep($icon);
  885. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•) \033[1;37m~\033[1;96m>          \033[1;92m😶đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  886. echo "\r";
  887. usleep(50000);
  888. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)\033[1;32m          \r";
  889. usleep($icon);
  890. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)  \033[1;37m~\033[1;96m>         \033[1;92m😶đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  891. echo "\r";
  892. usleep(50000);
  893. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)\033[1;32m          \r";
  894. usleep($icon);
  895. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)   \033[1;37m~\033[1;96m>        \033[1;92m😶đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  896. echo "\r";
  897. usleep(50000);
  898. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)\033[1;32m          \r";
  899. usleep($icon);
  900. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)    \033[1;37m~\033[1;96m>       \033[1;92m😶đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  901. echo "\r";
  902. usleep(50000);
  903. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)\033[1;32m          \r";
  904. usleep($icon);
  905. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)      \033[1;37m~\033[1;96m>     \033[1;92m😶đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  906. echo "\r";
  907. usleep(50000);
  908. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)  \033[1;32m          \r";
  909. usleep($icon);
  910. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)       \033[1;37m~\033[1;96m>    \033[1;92m😶đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  911. echo "\r";
  912. usleep(50000);
  913. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)  \033[1;32m          \r";
  914. usleep($icon);
  915. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)        \033[1;37m~\033[1;96m>   \033[1;92m😉đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  916. echo "\r";
  917. usleep(50000);
  918. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)  \033[1;32m          \r";
  919. usleep($icon);
  920. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)         \033[1;37m~\033[1;96m>  \033[1;92m😉đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  921. echo "\r";
  922. usleep(50000);
  923. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)  \033[1;32m          \r";
  924. usleep($icon);
  925. echo "\r\033[1;97m   \033[1;96m┗(•ˇ_ˇ•)          \033[1;37m~\033[1;96m> \033[1;92m😛đợi\033[1;91m  |\033[1;93m ".$tt."\033[1;91m | ";
  926. echo "\r";
  927. usleep(50000);
  928. echo "\r";}
  929. }
  930. function delayblock($delay1, $delay2){
  931. $xduong = "\033[1;94m";
  932. $max=$max+1;
  933. if ($max==$delay1){
  934. for($x = 0;$x<($delay2+1);$x++){
  935. echo $xduong." Tính Năng Chống Block Hoạt Động, Nghỉ ".($delay2-$x)." Giây\r";
  936. sleep(1);
  937. echo $xduong."                                                       \r";
  938. }
  939. $max=0;
  940. echo "\r";}
  941. }
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement