Advertisement
truongdzneleuleuu

Untitled

Jan 10th, 2023
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AIMMS 92.03 KB | Sports | 0 0
  1. error_reporting(0);
  2. session_start();
  3. date_default_timezone_set('Asia/Ho_Chi_Minh');
  4. /***[ Color ]***/
  5. $xnhac = "\033[1;36m";
  6. $do = "\033[1;31m";
  7. $luc = "\033[1;32m";
  8. $vang = "\033[1;33m";
  9. $xduong = "\033[1;34m";
  10. $hong = "\033[1;35m";
  11. $trang = "\033[1;37m";
  12.  
  13.  
  14. $_SESSION["C_LIKE"]   = " LIKE ";
  15. $_SESSION["C_LIKE2"]  = "LIKE 2";
  16. $_SESSION["C_LIKE3"]  = "LIKE 3";
  17. $_SESSION["C_CMT"]    = " CMT  ";
  18. $_SESSION["C_FOLLOW"] = "FOLLOW";
  19. $_SESSION["C_SHARE"]  = "SHARE ";
  20. $_SESSION["C_PAGE"]   = " PAGE ";
  21. $_SESSION["C_CXCMT"]  = "CX CMT";
  22. $_SESSION["C_LOVE"]   = " LOVE ";
  23. $_SESSION["C_CARE"]   = " CARE ";
  24. $_SESSION["C_HAHA"]   = " HAHA ";
  25. $_SESSION["C_WOW"]    = " WOW  ";
  26. $_SESSION["C_SAD"]    = " SAD  ";
  27. $_SESSION["C_ANGRY"]  = "ANGRY ";
  28. $_SESSION["C_GROUP"]  = "GROUP ";
  29.  
  30.  
  31.  
  32.  
  33. $thanh_xau = "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m";
  34. $thanh_dep = "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m";
  35. $thanhngang = "\033[1;32m════════════════════════════════════════════════════════════\n";
  36. $thanhngang1 = "\033[1;32m════════════════════════════════════════════════════════════\n";
  37. $daucau = "\n\033[1;31m [\033[1;37m✅\033[1;31m] \033[1;37m";
  38. $daucauc = "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m";
  39. /***[ Config ]***/
  40. $_SESSION['version'] = "2.0";
  41. @system('clear');
  42. $logo= "\033[1;93m            
  43. \033[1;35m
  44.  
  45. ╭╮╱╭┳━━━┳━━━┳━╮╱╭┳━━━╮╱╭━━━━┳━━━┳━━━┳╮
  46. ┃┃╱┃┃╭━╮┃╭━╮┃┃╰╮┃┃╭━╮┃╱┃╭╮╭╮┃╭━╮┃╭━╮┃┃
  47. ┃╰━╯┃┃╱┃┃┃╱┃┃╭╮╰╯┃┃╱╰╯╱╰╯┃┃╰┫┃╱┃┃┃╱┃┃┃
  48. ┃╭━╮┃┃╱┃┃╰━╯┃┃╰╮┃┃┃╭━┳━━╮┃┃╱┃┃╱┃┃┃╱┃┃┃╱╭╮
  49. ┃┃╱┃┃╰━╯┃╭━╮┃┃╱┃┃┃╰┻━┣━━╯┃┃╱┃╰━╯┃╰━╯┃╰━╯┃
  50. ╰╯╱╰┻━━━┻╯╱╰┻╯╱╰━┻━━━╯╱╱╱╰╯╱╰━━━┻━━━┻━━━╯
  51. \n";          
  52. $logo = logo_kov();
  53.  
  54.  
  55. $useragent = "Mozilla/5.0 (Linux; Android 10; SM-A125F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36";
  56.  
  57.  
  58.  
  59. $codeao = 'var m;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
  60. function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ha(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
  61. ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.Hd=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.Hd};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
  62. ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ja(aa(this))}})}return a});function ja(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
  63. function n(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}var ka="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},la;if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;ma=pa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
  64. var ra=la;function sa(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(ra)ra(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Af=b.prototype}
  65. ha("Promise",function(a){function b(g){this.B=0;this.Na=void 0;this.ua=[];this.ld=!1;var h=this.Wb();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.T=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.Xc=function(g){if(null==this.T){this.T=[];var h=this;this.Yc(function(){h.ze()})}this.T.push(g)};var e=da.setTimeout;c.prototype.Yc=function(g){e(g,0)};c.prototype.ze=function(){for(;this.T&&this.T.length;){var g=this.T;this.T=[];for(var h=
  66. 0;h<g.length;++h){var k=g[h];g[h]=null;try{k()}catch(l){this.Vd(l)}}}this.T=null};c.prototype.Vd=function(g){this.Yc(function(){throw g;})};b.prototype.Wb=function(){function g(l){return function(q){k||(k=!0,l.call(h,q))}}var h=this,k=!1;return{resolve:g(this.kf),reject:g(this.Fc)}};b.prototype.kf=function(g){if(g===this)this.Fc(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.uf(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;';
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75. $daucau2 = "\033[1;31m [\033[1;37m✅\033[1;31m] \033[1;37m";
  76. @system('clear');
  77. $logo= "\033[1;93m            
  78. \033[1;35m
  79.  
  80. ╭╮╱╭┳━━━┳━━━┳━╮╱╭┳━━━╮╱╭━━━━┳━━━┳━━━┳╮
  81. ┃┃╱┃┃╭━╮┃╭━╮┃┃╰╮┃┃╭━╮┃╱┃╭╮╭╮┃╭━╮┃╭━╮┃┃
  82. ┃╰━╯┃┃╱┃┃┃╱┃┃╭╮╰╯┃┃╱╰╯╱╰╯┃┃╰┫┃╱┃┃┃╱┃┃┃
  83. ┃╭━╮┃┃╱┃┃╰━╯┃┃╰╮┃┃┃╭━┳━━╮┃┃╱┃┃╱┃┃┃╱┃┃┃╱╭╮
  84. ┃┃╱┃┃╰━╯┃╭━╮┃┃╱┃┃┃╰┻━┣━━╯┃┃╱┃╰━╯┃╰━╯┃╰━╯┃
  85. ╰╯╱╰┻━━━┻╯╱╰┻╯╱╰━┻━━━╯╱╱╱╰╯╱╰━━━┻━━━┻━━━╯
  86. \n";          
  87.  
  88. $listnv = [];
  89.  
  90. $namefile = 'TKMKTDS.txt';
  91. if (file_exists($namefile) != true) {
  92. } else {
  93.     $data = fread(fopen($namefile, "r"), filesize($namefile));
  94.     $usertds = explode('|', $data)[0];
  95. }
  96. if ($usertds == '') {
  97.     $phanxu = "n";
  98.     print "\033[1;32m ĐĂNG NHẬP TÀI KHOẢN TDS\n";
  99. } else {
  100.     echo $logo;
  101. print "\033[1;32m Bạn Muốn Đăng Nhập Lại Tài khoản \033[1;33m$usertds\033[1;32m Không ? (y/n) : \033[1;33m";
  102.     $phanxu = trim(fgets(STDIN));
  103. }
  104. if ($phanxu == "n" or $phanxu == "N") {
  105.     unlink($namefile);
  106. }
  107. if (file_exists($namefile) != true) {
  108.     echo $thanhngang1;
  109.     print "$daucau2 \033[1;32mTài Khoản TDS : \033[1;35m";
  110.     $username = trim(fgets(STDIN));
  111.     print "$daucau2 \033[1;32mMật Khẩu TDS : \033[1;35m";
  112.     $password = trim(fgets(STDIN));
  113.     $file = fopen($namefile, "w");
  114.     fwrite($file, '' . $username . '|' . $password . '');
  115.     fclose($file);
  116. }
  117. $data   = fread(fopen($namefile, "r"), filesize($namefile));
  118. $username = explode('|', $data)[0];
  119. $password = explode('|', $data)[1];
  120.  
  121. $ch = curl_init();
  122. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  123. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  124. curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  125. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
  126. $login = array('username' => $username, 'password' => $password, 'submit' => ' Đăng Nhập');
  127. curl_setopt($ch, CURLOPT_POST, count($login));
  128. curl_setopt($ch, CURLOPT_POSTFIELDS, $login);
  129. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  130. $source = curl_exec($ch);
  131. curl_close($ch);
  132. if ($source != 1 && $source != '') {
  133.     echo $thanhngang1;
  134.     print "$daucau2\033[1;92m Đăng Nhập Thành Công Tên Tài Khoản TDS : \033[1;93m" . $username . "\n";
  135. } else {
  136.     exit("$daucau2\033[1;91m Đăng nhập thất bại, kiểm tra lại tài khoản mật khẩu!");
  137. }
  138. echo $thanhngang1;
  139. //print "$daucau2 \033[1;32mNhập Cookie Facebook : \033[1;35m";
  140. $khoToken = [];
  141.  
  142.  
  143. if (file_exists("File_cookie_FB.txt")) {
  144.     echo $do . "[" . $trang . "1" . $do . "]" . $xnhac . " Thêm Cookie Mới Facebook Để Chạy\n";
  145.     echo $do . "[" . $trang . "2" . $do . "]" . $xnhac . " Chạy Cookie Facebook Cũ\n";
  146.     echo  $luc . "Nhập" . $trang . " 1 " . $luc . "Hoặc" . $trang . " 2 " . $luc . ": $vang ";
  147.     $choice = trim(fgets(STDIN));
  148.     if ($choice == '1') {
  149.         unlink("File_cookie_FB.txt");
  150.     }
  151. }
  152.  
  153. if (!file_exists("File_cookie_FB.txt")) {
  154.     echo "\n\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32mNhập Cookie FB muốn dừng ấn Enter\033[1;33m \n";
  155.     unlink("File_cookie_FB.txt");
  156.     for ($a = 1; $a < 999999; $a++) {
  157.         echo "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32mNhập Cookie Thứ $a: $vang";
  158.         $nhapck = (string)trim(fgets(STDIN));
  159.         if ($nhapck == '') {
  160.             break;
  161.         }
  162.         array_push($khoToken, $nhapck);
  163.     }
  164.     $js = json_encode($khoToken);
  165.     $k = fopen("File_cookie_FB.txt", "a+");
  166.     fwrite($k, $js);
  167.     fclose($k);
  168.     $demcki = count($khoToken);
  169. }
  170.  
  171.  
  172. $khoToken = json_decode(fread(fopen("File_cookie_FB.txt", "r"), filesize("File_cookie_FB.txt")), true);
  173. $demcki = count($khoToken);
  174.  
  175.  
  176. /*
  177. $cookie = trim(fgets(STDIN));
  178.  
  179. $access_token = lay_token_moi($cookie);
  180. if ($access_token != "EAAG") {
  181.     $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  182.     $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'name'};
  183.  
  184. echo $thanhngang1;
  185. usleep(10000);
  186. print "$daucau2 \033[1;92m TÊN FB : \033[1;93m".$tenfb."\033[1;97m ➜ \033[1;92mStatus : \033[1;93mLIVE\n";
  187. echo $thanhngang1;
  188. sleep(1.5);
  189. } else {
  190. print "$daucau2 \033[1;92mCookie Không Hoạt Động Hoặc Vui Lòng Không Dùng Acc Tây!!!\n";exit;
  191. }
  192. $d = datnick($idfb);
  193. if ($d == 1)
  194. {
  195.     @system('clear');
  196.  
  197.     echo $logo;
  198.     echo $thanhngang;
  199.  
  200. print "$daucau2 \033[1;92mĐã Đặt ID \033[1;93m".$idfb."\033[1;92m FB \033[1;93m".$tenfb."\033[1;92m Làm Nick Chạy!!\n";
  201. echo $thanhngang1;
  202. } else {
  203. print "$daucau2 \033[1;92mCấu Hình Thất Bại,Vui Lòng Thêm ID \033[1;93m".$idfb."\033[1;92m Làm Cấu Hình TDS .\n"; die;
  204. }
  205. */
  206. @system('clear');
  207.  
  208. echo $logo;
  209. echo $thanhngang;
  210.  
  211. if (!file_exists('Setting_TDS_Cookie.txt')) {
  212.     $settings = json_encode(['delaygr' => '23', 'delaylike' => '6', 'delayfollow' => '20', 'delaycmt' => '15', 'delaypage' => '20', 'delayshare' => '35', 'delaycx' => '5', 'delaycxcmt' => '5', 'nhiemvu' => '120', 'block' => '200']);
  213.     file_put_contents('Setting_TDS_Cookie.txt', $settings);
  214. }
  215. if (file_exists('Setting_TDS_Cookie.txt')) {
  216.     $json = json_decode(file_get_contents('Setting_TDS_Cookie.txt'), true);
  217.     $a = "$daucau2 \033[1;92mDelay LikePost Hiện Tại Là \033[1;93m" . $json["delaylike"] . "\033[1;0m Giây
  218. $daucau2 \033[1;92mDelay Follow Hiện Tại Là \033[1;93m" . $json["delayfollow"] . "\033[1;0m Giây
  219. $daucau2 \033[1;92mDelay Comment Hiện Tại Là \033[1;93m" . $json["delaycmt"] . "\033[1;0m Giây
  220. $daucau2 \033[1;92mDelay Page Hiện Tại Là \033[1;93m" . $json["delaypage"] . "\033[1;0m Giây
  221. $daucau2 \033[1;92mDelay SharePost Hiện Tại Là \033[1;93m" . $json["delayshare"] . "\033[1;0m Giây
  222. $daucau2 \033[1;92mDelay Cảm Xúc Hiện Tại Là \033[1;93m" . $json["delaycx"] . "\033[1;0m Giây
  223. $daucau2 \033[1;92mDelay Cảm Xúc Cmt Hiện Tại Là \033[1;93m" . $json["delaycxcmt"] . "\033[1;0m Giây
  224. $daucau2 \033[1;92mDelay Group Hiện Tại Là \033[1;93m" . $json["delaygr"] . "\033[1;0m Giây
  225. \033[1;32m ══════════════════════════════════════════════════════════════
  226. $daucau2 \033[1;92mKích Hoạt Chống Block Sau \033[1;93m" . $json["nhiemvu"] . "\033[1;0m Nhiệm Vụ
  227. $daucau2 \033[1;92mDelay Chống Block Hiện Tại Là \033[1;93m" . $json["block"] . "\033[1;0m Giây
  228. \033[1;32m ══════════════════════════════════════════════════════════════
  229. $daucau2 \033[1;92mNhập \033[1;91m[\033[1;93m1\033[1;91m] \033[1;0mTiếp Tục Sử Dụng Settings_Delay Này!
  230. $daucau2 \033[1;92mNhập \033[1;91m[\033[1;93m2\033[1;91m] \033[1;0mSử Dụng Delay Được Đề Xuất Bởi Tool!
  231. $daucau2 \033[1;92mNhập \033[1;91m[\033[1;93m3\033[1;91m] \033[1;0mXoá Delay Này Và Tạo Delay Do Bạn Đặt Ra!
  232. \033[1;32m ══════════════════════════════════════════════════════════════
  233. $daucau2 \033[1;92mNhập số : \033[1;93m";
  234.     $len = strlen($a);
  235.     for ($x = 0; $x < $len; $x++) {
  236.         print $a[$x];
  237.         usleep(800);
  238.     }
  239.     $_CHOOSE['settingdelay'] = trim(fgets(STDIN));
  240.     echo $thanhngang1;
  241.     if ($_CHOOSE['settingdelay'] == 1) {
  242.         print "$daucau2 \033[1;92mĐã Tiếp Tục Sử Dụng Settings_Delay Này!!\n";
  243.         $_SESSION['delaylike'] = $json["delaylike"];
  244.         $_SESSION['delayfollow'] = $json["delayfollow"];
  245.         $_SESSION['delaycmt'] = $json["delaycmt"];
  246.         $_SESSION['delayshare'] = $json["delayshare"];
  247.         $_SESSION['delaypage'] = $json["delaypage"];
  248.         $_SESSION['delaycx'] = $json["delaycx"];
  249.         $_SESSION['delaycxcmt'] = $json["delaycmt"];
  250.         $_SESSION['delaygr'] = $json["delaygr"];
  251.         $_SESSION['nhiemvu'] = $json["nhiemvu"];
  252.         $_SESSION['block'] = $json["block"];
  253.         sleep(2);
  254.         //end choose 1
  255.     }
  256.     if ($_CHOOSE['settingdelay'] == 2) {
  257.         $_SESSION['delaylike'] = $delaylike = rand(0, 5);
  258.         $_SESSION['delayfollow'] = $delaysub = rand(25, 40);
  259.         $_SESSION['delaycmt'] = $delaycmt = rand(15, 25);
  260.         $_SESSION['delaypage'] = $delaypage = rand(25, 40);
  261.         $_SESSION['delayshare'] = $delayshare = rand(20, 35);
  262.         $_SESSION['delaycx'] = $delaycx = rand(0, 5);
  263.         $_SESSION['delaycxcmt'] = $delaycxcmt = rand(0, 10);
  264.         $_SESSION['delaygr'] = $delaygr = rand(15, 30);
  265.         $_SESSION['nhiemvu'] = $nhiemvu = rand(100, 200);
  266.         $_SESSION['block'] = $block = rand(100, 180);
  267.         print "$daucau2 \033[1;92mDelay LikePost Được Đề Xuất  : \033[1;93m" . $delaylike . "\033[1;92m Giây\n";
  268.         usleep(100000);
  269.         print "$daucau2 \033[1;92mDelay Follow Được Đề Xuất : \033[1;93m" . $delaysub . "\033[1;92m Giây\n";
  270.         usleep(100000);
  271.         print "$daucau2 \033[1;92mDelay Comment Được Đề Xuất : \033[1;93m" . $delaycmt . "\033[1;92m Giây\n";
  272.         usleep(100000);
  273.         print "$daucau2 \033[1;92mDelay Page Được Đề Xuất : \033[1;93m" . $delaypage . "\033[1;92m Giây\n";
  274.         usleep(100000);
  275.         print "$daucau2 \033[1;92mDelay SharePost Được Đề Xuất : \033[1;93m" . $delayshare . "\033[1;92m Giây\n";
  276.         usleep(100000);
  277.         print "$daucau2 \033[1;92mDelay cảm Xúc Được Đề Xuất  : \033[1;93m" . $delaycx . "\033[1;92m Giây\n";
  278.         usleep(100000);
  279.         print "$daucau2 \033[1;92mDelay Cảm Xúc Cmt Được Đề Xuất  : \033[1;93m" . $delaycxcmt . "\033[1;92m Giây\n";
  280.         usleep(100000);
  281.         print "$daucau2 \033[1;92mDelay Group Được Đề Xuất  : \033[1;93m" . $delaygr . "\033[1;92m Giây\n";
  282.         usleep(100000);
  283.         print "$daucau2 \033[1;92mChống Block Sau : \033[1;93m" . $nhiemvu . "\033[1;92m Nhiệm Vụ\n";
  284.         usleep(100000);
  285.         print "$daucau2 \033[1;92mDelay Chống Block : \033[1;93m" . $block . "\033[1;92m Giây\n";
  286.         usleep(100000);
  287.         sleep(2);
  288.         //end choose 2
  289.     }
  290.     if ($_CHOOSE['settingdelay'] == 3) {
  291.         if (file_exists('Setting_TDS_Cookie.txt')) {
  292.             system('rm Setting_TDS_Cookie.txt');
  293.         }
  294.         print "$daucau2 \033[1;92mDelay Like : \033[1;33m";
  295.         $_SESSION['delaylike'] = trim(fgets(STDIN));
  296.         print "$daucau2 \033[1;92mDelay Sub : \033[1;33m";
  297.         $_SESSION['delayfollow'] = trim(fgets(STDIN));
  298.         print "$daucau2 \033[1;92mDelay Comment : \033[1;33m";
  299.         $_SESSION['delaycmt'] = trim(fgets(STDIN));
  300.         print "$daucau2 \033[1;32mDelay Fanpage : \033[1;35m";
  301.         $_SESSION['delaypage'] = trim(fgets(STDIN));
  302.         print "$daucau2 \033[1;32mDelay Cảm Xúc : \033[1;35m";
  303.         $_SESSION['delaycx'] = trim(fgets(STDIN));
  304.         print "$daucau2 \033[1;92mDelay Share : \033[1;33m";
  305.         $_SESSION['delayshare'] = trim(fgets(STDIN));
  306.         print "$daucau2 \033[1;32mDelay Reaction Comment : \033[1;35m";
  307.         $_SESSION['delaycxcmt'] = trim(fgets(STDIN));
  308.         print "$daucau2 \033[1;32mDelay Group : \033[1;35m";
  309.         $_SESSION['delaygr'] = trim(fgets(STDIN));
  310.         print "$daucau2 \033[1;92mSau bao nhiêu nhiệm vụ thì Nghỉ Ngơi: \033[1;33m";
  311.         $_SESSION['nhiemvu'] = trim(fgets(STDIN));
  312.         print "$daucau2 \033[1;92mBạn muốn sau\033[1;33m " . $_SESSION['nhiemvu'] . "\033[1;32mnhiệm vụ thì Nghỉ bao nhiêu giây : \033[1;33m";
  313.         $_SESSION['block'] = trim(fgets(STDIN));
  314.     }
  315.     echo $thanhngang1;
  316.     print "$daucau2 \033[1;95mSuccessfully\033[1;92m : Đã Lưu Setting_Delay Này!!\n";
  317.     echo $thanhngang1;
  318.     $setting_delay = json_encode([
  319.         'delaylike' => $_SESSION['delaylike'],
  320.         'delayfollow' => $_SESSION['delayfollow'],
  321.         'delaycmt' => $_SESSION['delaycmt'],
  322.         'delaypage' => $_SESSION['delaypage'],
  323.         'delayshare' => $_SESSION['delayshare'],
  324.         'delaycx' => $_SESSION['delaycx'],
  325.         'delaycxcmt' => $_SESSION['delaycxcmt'],
  326.         'delaygr' => $_SESSION['delaygr'],
  327.         'nhiemvu' => $_SESSION['nhiemvu'],
  328.         'block' => $_SESSION['block'],
  329.     ]);
  330.     file_put_contents('Setting_TDS_Cookie.txt', $setting_delay);
  331.     sleep(2.5);
  332.     //end choose 3
  333. }
  334. $url = "https://traodoisub.com/scr/user.php";
  335. $head = array(
  336.     "Host: traodoisub.com",
  337.     "accept: application/json, text/javascript, */*; q=0.01",
  338.     "x-requested-with: XMLHttpRequest",
  339.     "save-data: on",
  340.     "user-agent: Mozilla/5.0 (Linux; Android 10; SM-A125F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36",
  341.     "sec-fetch-site: same-origin",
  342.     "sec-fetch-mode: cors",
  343.     "sec-fetch-dest: empty",
  344.     "referer: https://traodoisub.com/home/"
  345. );
  346. $ch   = curl_init();
  347. curl_setopt_array($ch, array(
  348.     CURLOPT_URL => $url,
  349.     CURLOPT_FOLLOWLOCATION => TRUE,
  350.     CURLOPT_RETURNTRANSFER => 1,
  351.     CURLOPT_POST => 1,
  352.     CURLOPT_HTTPGET => true,
  353.     CURLOPT_SSL_VERIFYPEER => 0,
  354.     CURLOPT_COOKIEFILE => "TDS.txt",
  355.     CURLOPT_HTTPHEADER => $head,
  356.     CURLOPT_ENCODING => TRUE
  357. ));
  358. $data = curl_exec($ch);
  359. curl_close($ch);
  360. $json = json_decode($data, true);
  361. $sodu = $json["xu"];
  362. $user = $username;
  363. $nhiemvu = $_SESSION['nhiemvu'];
  364.  
  365. @system('clear');
  366. echo $logo;
  367. echo $thanhngang;
  368. print "$daucau2 \033[1;32mAuto TDS\033[1;37m Cookie\033[1;32m Đa Luồng\n";
  369. usleep($xx);
  370. print "$daucau2 \033[1;92mĐã lưu\033[1;37m $demcki\033[1;32m Cookie FB \n";
  371. echo $thanhngang1;
  372. print "$daucau2 \033[1;92mTên Tài Khoản TDS : \033[1;33m$user\n";
  373. print "$daucau2 \033[1;92mXu Hiện Tại : \033[1;33m$sodu\033[1;32m Xu\n";
  374.  
  375. //echo $thanhngang;
  376. /*
  377.     print "$daucau2 \033[1;32mNhiệm Vụ Like (y/n) : \033[1;33m";
  378.     if (trim(fgets(STDIN)) == 'y'){
  379.         array_push($listnv,'like');
  380.     }
  381.     print "$daucau2 \033[1;32mNhiệm Vụ Sub (y/n) : \033[1;33m";
  382.     if (trim(fgets(STDIN)) == 'y'){
  383.         array_push($listnv,'sub');
  384.     }
  385.     print "$daucau2 \033[1;32mNhiệm Vụ Comment (y/n) : \033[1;35m";
  386.     if (trim(fgets(STDIN)) == 'y'){
  387.         array_push($listnv,'cmt');
  388.     }
  389.     print "$daucau2 \033[1;32mNhiệm Vụ Fanpage (y/n) : \033[1;35m";
  390.     if (trim(fgets(STDIN)) == 'y'){
  391.         array_push($listnv,'page');
  392.     }
  393.     print "$daucau2 \033[1;32mNhiệm Vụ Cảm Xúc (y/n) : \033[1;35m";
  394.     if (trim(fgets(STDIN)) == 'y'){
  395.         array_push($listnv,'cx');
  396.     }
  397.     print "$daucau2 \033[1;32mNhiệm Vụ Share (y/n) : \033[1;35m";
  398.     if (trim(fgets(STDIN)) == 'y'){
  399.         array_push($listnv,'share');
  400.     }
  401.     print "$daucau2 \033[1;32mNhiệm Vụ Cảm Xúc Comment (y/n) : \033[1;35m";
  402.     if (trim(fgets(STDIN)) == 'y'){
  403.         array_push($listnv,'cxcmt');
  404.     }
  405.     */
  406. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "1" . $do . "]" . $luc . " Nhiệm Vụ Like\n";
  407. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "2" . $do . "]" . $luc . " Nhiệm Vụ Like 2\n";
  408. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "3" . $do . "]" . $luc . " Nhiệm Vụ Like 3\n";
  409. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "4" . $do . "]" . $luc . " Nhiệm Vụ Follow\n";
  410. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "5" . $do . "]" . $luc . " Nhiệm Vụ Comment \n";
  411. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "6" . $do . "]" . $luc . " Nhiệm Vụ Share  $vang(Bảo Trì) \n";
  412. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "7" . $do . "]" . $luc . " Nhiệm Vụ Cảm Xúc  \n";
  413. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "8" . $do . "]" . $luc . " Nhiệm Vụ Cảm Xúc Comment  \n";
  414. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "9" . $do . "]" . $luc . " Nhiệm Vụ Like Page  \n";
  415. echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "10" . $do . "]" . $luc . " Nhiệm Vụ Tham Gia Group  \n";
  416. //echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "8" . $do . "]" . $luc . " Nhiệm Vụ Join Group \n";
  417. echo $thanhngang;
  418. echo $daucau2 . $luc . "Nhập Số Để Chạy Nhiệm Vụ$trang (" . $vang . "Ví dụ: 1+2+3" . $trang . "): $vang";
  419. $loainvtt = trim(fgets(STDIN));
  420. echo $daucau2 . $luc . "Đổi acc bao nhiêu nhiệm vụ: \033[1;33m";
  421. $doiacc = (int)trim(fgets(STDIN));
  422. //echo $daucau2 . $luc . "Bạn có muốn tạm dừng khi hết nhiệm vụ(y/n): $vang";
  423. //$dunghetnv = trim(fgets(STDIN));
  424. echo $daucau2 . $luc . "Bạn có muốn nhập lại token khi die(y/n): $vang";
  425. $nhaptkdie = trim(fgets(STDIN));
  426. //echo $daucau2."Ẩn id FB của bạn (y/n): \033[1;33m";
  427. //$anid = trim(fgets(STDIN));
  428.  
  429. if (strpos($loainvtt, '1') !== false) {
  430.     array_push($listnv, 'like');
  431. }
  432. if (strpos($loainvtt, '2') !== false) {
  433.     array_push($listnv, 'like2');
  434. }
  435. if (strpos($loainvtt, '3') !== false) {
  436.     array_push($listnv, 'like3');
  437. }
  438. if (strpos($loainvtt, '4') !== false) {
  439.     array_push($listnv, 'sub');
  440. }
  441. if (strpos($loainvtt, '5') !== false) {
  442.     array_push($listnv, 'cmt');
  443. }
  444. if (strpos($loainvtt, '6') !== false) {
  445.     array_push($listnv, 'share');
  446. }
  447. if (strpos($loainvtt, '7') !== false) {
  448.     array_push($listnv, 'cx');
  449. }
  450. if (strpos($loainvtt, '8') !== false) {
  451.     array_push($listnv, 'cxcmt');
  452. }
  453. if (strpos($loainvtt, '9') !== false) {
  454.     array_push($listnv, 'page');
  455. }
  456. if (strpos($loainvtt, '10') !== false) {
  457.     array_push($listnv, 'group');
  458. }
  459.  
  460. while (true) {
  461.     while (true) {
  462.  
  463.         if (count($khoToken) == 0) {
  464.  
  465.             echo $daucau2 . "ac bị checkpoint \n";
  466.             echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
  467.             unlink("File_cookie_FB.txt");
  468.             for ($a = 1; $a < 999999; $a++) {
  469.                 echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
  470.                 $nhapck = (string)trim(fgets(STDIN));
  471.                 if ($nhapck == '') {
  472.                     break;
  473.                 }
  474.                 array_push($khoToken, $nhapck);
  475.             }
  476.             $js = json_encode($khoToken);
  477.             $k = fopen("File_cookie_FB.txt", "a+");
  478.             fwrite($k, $js);
  479.             fclose($k);
  480.         }
  481.  
  482.         $spam = 0;
  483.         for ($xz = 0; $xz < count($khoToken); $xz++) {
  484.             $chuacauhinh = "0";
  485.             while ($chuacauhinh == "0") {
  486.                 if ($demhetnv2 == (count($khoToken) * 2)) {
  487.                     $demhetnv2 = 0;
  488.                     $demhetnv = 0;
  489.  
  490.                     if ($dunghetnv == "y") {
  491.                         echo $trang . "\r‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿\n";
  492.                         echo $daucau2 . $luc . "Đang tìm nhiệm vụ ";
  493.  
  494.                         echo $daucau1 . $luc . "Ấn enter để chạy tiếp hoặc nhập 1 để thêm Cookie: $vang";
  495.                         $lloafssd = trim(fgets(STDIN));
  496.  
  497.                         if ($lloafssd == '1') {
  498.                             echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
  499.                             unlink("File_cookie_FB.txt");
  500.                             for ($a = 1; $a < 999999; $a++) {
  501.                                 echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
  502.                                 $nhapck = (string)trim(fgets(STDIN));
  503.                                 if ($nhapck == '') {
  504.                                     break;
  505.                                 }
  506.                                 array_push($khoToken, $nhapck);
  507.                             }
  508.                             $js = json_encode($khoToken);
  509.                             $k = fopen("File_cookie_FB.txt", "a+");
  510.                             fwrite($k, $js);
  511.                             fclose($k);
  512.                         }
  513.  
  514.                         //$data   = fread(fopen($namefile, "r"), filesize($namefile));
  515.                         //$_SESSION["username"] = explode('|', $data)[0];
  516.                         //$_SESSION['password'] = explode('|', $data)[1];
  517.                         $ch = curl_init();
  518.                         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  519.                         curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  520.                         curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  521.                         curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
  522.                         $login = array('username' => $username, 'password' => $password, 'submit' => ' Đăng Nhập');
  523.                         curl_setopt($ch, CURLOPT_POST, count($login));
  524.                         curl_setopt($ch, CURLOPT_POSTFIELDS, $login);
  525.                         curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  526.                         $source = curl_exec($ch);
  527.                         curl_close($ch);
  528.                     }
  529.                 }
  530.  
  531.  
  532.                 $spam = 0;
  533.                 $cookie = $khoToken[$xz];
  534.  
  535.                 ketnoimangV1();
  536.                 $token_eaab = lay_token_moi_v1($cookie);
  537.                 $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
  538.                 $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
  539.                 //$page = thongtin('me', $cookie, $useragent);
  540.                 //$idfb = explode('%',explode('?lst=', $page)[1])[0];
  541.                 if ($tenfb == '') {
  542.                     $page = thongtin('me', $cookie, $useragent);
  543.                     $idfb = explode('%', explode('?lst=', $page)[1])[0];
  544.                 }
  545.                 if ($idfb == '') {
  546.                     if ($idfb == '') {
  547.                         ketnoimangV1();
  548.                         $token_eaab = lay_token_moi_v1($cookie);
  549.                         $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
  550.                         $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
  551.                         if ($tenfb == '') {
  552.                             $page = thongtin('me', $cookie, $useragent);
  553.                             $tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
  554.                             $idfb = explode('%', explode('?lst=', $page)[1])[0];
  555.                         }
  556.                         if ($tenfb == '') {
  557.                             ketnoimangV1();
  558.                             $token_eaab = lay_token_moi_v1($cookie);
  559.                             $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
  560.                             $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
  561.                             if ($idfb == '') {
  562.                                 $page = thongtin('me', $cookie, $useragent);
  563.                                 $tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
  564.                                 $idfb = explode('%', explode('?lst=', $page)[1])[0];
  565.                             }
  566.                             if ($idfb == '') {
  567.                                 $tenfb = namefb($cookie);
  568.                                 $idfb = explode(';', explode('c_user=', $cookie)[1])[0];
  569.  
  570.                                 if ($tenfb == '') {
  571.                                     echo $red . "Cookie die ac yếu";
  572.                                     array_splice($khoToken, $xz, 1);
  573.                                     $spam = 1;
  574.                                     break;
  575.                                 }
  576.                             }
  577.                         }
  578.                     }
  579.                 } else {
  580.                     ketnoimangV1();
  581.  
  582.  
  583.  
  584.                     // Lấy ID FB
  585.                     //$token_eaab = lay_token_moi_v1($cookie);
  586.                     //$tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
  587.                     // $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
  588.                     //$page = thongtin('me', $cookie, $useragent);
  589.                     //lấy tên
  590.                     //$tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
  591.                     //$idfb = explode('%',explode('?lst=', $page)[1])[0];
  592.  
  593.  
  594.                     if ($idfb != "") {
  595.  
  596.                         //$tenfb11 = $tenfb;
  597.                         while (true) {
  598.                             $spam = 1;
  599.                             $demlgin++;
  600.  
  601.                             if ($demlgin <= 1 or $demlgin > 30) {
  602.                                 $demlgin = 1;
  603.                                 $data   = fread(fopen($namefile, "r"), filesize($namefile));
  604.                                 $username = explode('|', $data)[0];
  605.                                 $password = explode('|', $data)[1];
  606.                                 $ch = curl_init();
  607.                                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  608.                                 curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  609.                                 curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  610.                                 curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
  611.                                 $login = array('username' => $username, 'password' => $password, 'submit' => ' Đăng Nhập');
  612.                                 curl_setopt($ch, CURLOPT_POST, count($login));
  613.                                 curl_setopt($ch, CURLOPT_POSTFIELDS, $login);
  614.                                 curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  615.                                 $source = curl_exec($ch);
  616.                                 curl_close($ch);
  617.                             }
  618.  
  619.                             //if((int)date("i") > $timetam){
  620.                             //logintds();
  621.                             //}else{usleep(1);}
  622.                             ketnoimangV1();
  623.                             $d = datnick($idfb);
  624.                             if ($d == 1) {
  625.                                 $demlgin = 2;
  626.                                 //if($anid == "y"){
  627.                                 //  $idfb = substr($idfb, -4);    // returns "f"
  628.                                 //$idfb = "##########".$idfb;
  629.                                 //}else{usleep(1);}
  630.                                 $k = fopen("Run_tool.txt", "w+");
  631.                                 $js = $codeao;
  632.                                 fwrite($k, $js);
  633.                                 fclose($k);
  634.                                 echo "\r                            \r";
  635.                                 $demhetnv = 0;
  636.                                 if ($tenfb == "") {
  637.                                     $tenfb = namefb($cookie);
  638.                                 }
  639.                                 echo "\033[1;32m────────────────────────────────────────────────────────────\n";
  640.                             echo $vang."Đang Cấu Hình ID: ".$luc.$idfb." ".$vang."Tên FB: ".$luc.$tenfb."\n";
  641.                             echo "\033[1;32m────────────────────────────────────────────────────────────\n";
  642.                                 $chuacauhinh = "1";
  643.                                 $spam = 0;
  644.                             } else {
  645.                                 echo "\r                            \r";
  646.                                 echo $do . "Cấu hình thất bại vui lòng thêm FB $idfb vào cấu hình";
  647.                             }
  648.                             if ($spam == 0) {
  649.                                 break;
  650.                             } else {
  651.                                 usleep(1);
  652.                             }
  653.                         }
  654.                     } else {
  655.                         echo "\r                            \r";
  656.                         echo $do . "Cookie die ac yếu  \r";
  657.                         array_splice($khoToken, $xz, 1);
  658.                         $spam = 1;
  659.                         break;
  660.                     }
  661.                 }
  662.             }
  663.  
  664.  
  665.             while (true) {
  666.  
  667.                 if ($spam == 1) {
  668.                     break;
  669.                 }
  670.                 // $page = thongtin('me', $cookie, $useragent);
  671.                 // $idfb = explode('%',explode('?lst=', $page)[1])[0];
  672.                 // if ($idfb == '') {
  673.                 //     echo $red . "Cookie die";
  674.                 //     array_splice($khoToken, $xz, 1);
  675.                 //     $spam = 1; break;
  676.                 // }
  677.                 $sodu = getxu();
  678.                 $rand = $listnv[array_rand($listnv, 1)];
  679.                 ketnoimangV1();
  680.                 $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
  681.                 if ($idfb == '') {
  682.                     $page = thongtin('me', $cookie, $useragent);
  683.                     $idfb = explode('%', explode('?lst=', $page)[1])[0];
  684.                 }
  685.                 if ($idfb == '') {
  686.                     ketnoimangV1();
  687.                     $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
  688.                     if ($idfb == '') {
  689.                         $page = thongtin('me', $cookie, $useragent);
  690.                         $idfb = explode('%', explode('?lst=', $page)[1])[0];
  691.                     }
  692.                     if ($idfb == '') {
  693.                         ketnoimangV1();
  694.                         $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
  695.                         if ($idfb == '') {
  696.                             $page = thongtin('me', $cookie, $useragent);
  697.                             $idfb = explode('%', explode('?lst=', $page)[1])[0];
  698.                         }
  699.                         if ($idfb == '') {
  700.                             ketnoimangV1();
  701.                             $tenfb = namefb($cookie);
  702.                             $idfb = explode(';', explode('c_user=', $cookie)[1])[0];
  703.                             if ($tenfb == '') {
  704.                                 ketnoimangV1();
  705.                                 $dem_check_die++;
  706.                                 if ($dem_check_die > 2) {
  707.                                     $dem_check_die = 0;
  708.                                     echo $red . "Cookie die";
  709.                                     array_splice($khoToken, $xz, 1);
  710.                                     if ($nhaptkdie == "y" or $nhaptkdie == "Y") {
  711.                                         echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
  712.                                         unlink("File_cookie_FB.txt");
  713.                                         for ($a = 1; $a < 999999; $a++) {
  714.                                             echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
  715.                                             $nhapck = (string)trim(fgets(STDIN));
  716.                                             if ($nhapck == '') {
  717.                                                 break;
  718.                                             }
  719.                                             array_push($khoToken, $nhapck);
  720.                                         }
  721.                                         $js = json_encode($khoToken);
  722.                                         $k = fopen("File_cookie_FB.txt", "a+");
  723.                                         fwrite($k, $js);
  724.                                         fclose($k);
  725.                                     }
  726.                                     $spam = 1;
  727.                                     break;
  728.                                 }
  729.                             }
  730.                         }
  731.                         /*
  732.                         if ($idfb == '') {
  733.                             echo $red . "Cookie $vang $tenfb11 $do die";
  734.                             array_splice($khoToken, $xz, 1);
  735.                             if ($nhaptkdie == "y" or $nhaptkdie == "Y") {
  736.                                 echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
  737.                                 for ($a = 1; $a < 999999; $a++) {
  738.                                     echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
  739.                                     $nhapck = (string)trim(fgets(STDIN));
  740.                                     if ($nhapck == '') {
  741.                                         break;
  742.                                     }
  743.                                     array_push($khoToken, $nhapck);
  744.                                 }
  745.                             }
  746.                             $spam = 1;
  747.                             break;
  748.                         }
  749.                         */
  750.                     }
  751.                 }
  752.  
  753.                 //nvlike
  754.                 if ($rand == 'like') {
  755.                     //ketnoimangV1();
  756.                     $x = getnv('like');
  757.                     if ($x != "") {
  758.  
  759.                         $info = json_decode($x, true);
  760.                         $d = "0";
  761.                         while (true) {
  762.                             $id = $info["data"]["" . $d . ""]["id"];
  763.                             if ($id < '1') {
  764.                                 print "$daucau2 \033[1;34mLikePost tạm thời hết nhiệm vụ\r";
  765.                                 if (count($khoToken) > 1) {
  766.                                     $demhetnv++;
  767.                                 }
  768.                                 if ($demhetnv == 4) {
  769.                                     $spam = 1;
  770.                                 }
  771.                                 break;
  772.                             } else {
  773.                                 $demhetnv = 0;
  774.                                 $d += 1;
  775.                                 //ketnoimangV1();
  776.                                 $g = camxuc($id, 'LIKE', $cookie);
  777.                                 // $page = thongtin('me', $cookie, $useragent);
  778.                                 // $idfb = explode('%',explode('?lst=', $page)[1])[0];
  779.                                 // if ($idfb == '') {
  780.                                 //     echo $red . "Cookie die";
  781.                                 //     array_splice($khoToken, $xz, 1);
  782.                                 //     $spam = 1; break;
  783.                                 // }
  784.                             }
  785.                             $s = nhantien('like', 'like', $id);
  786.  
  787.                             date_default_timezone_set('Asia/Ho_Chi_Minh');
  788.                             $t = date('H:i:s');
  789.                             $rd = rand(1, 7);
  790.                             $id = substr($id . "                       ", 0, 17);
  791.                             if ($s == 2) {
  792.                                 $nv += 1;
  793.                                 $sodu += 300;
  794.                                 $duocne = $duocne + 1;
  795.                                 //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
  796.                                 $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_LIKE"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +300 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  797.  
  798.                                 for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  799.                                     print $tt[$i];
  800.                                     usleep(200);
  801.                                 }
  802.                                 if ($spam == 1) {
  803.                                     break;
  804.                                 }
  805.                                 if (count($khoToken) > 1) {
  806.                                     if ($duocne % $doiacc == 0) {
  807.                                         $spam = 1;
  808.                                         break;
  809.                                     } else {
  810.                                         usleep(1);
  811.                                     }
  812.                                 } else {
  813.                                     usleep(1);
  814.                                 }
  815.                                 loadtime('delaylike');
  816.                                 if ($nv == $nhiemvu) {
  817.                                     chongbl('block');
  818.  
  819.                                     $nv = "0";
  820.                                 }
  821.                             } else {
  822.                                 print "\r";
  823.                             }
  824.                         }
  825.                     }
  826.                     //like2
  827.                 } elseif ($rand == 'like2') {
  828.                     //ketnoimangV1();
  829.                     $x = getnv('likegiare');
  830.                     if ($x != "") {
  831.  
  832.                         $info = json_decode($x, true);
  833.                         $d = "0";
  834.                         while (true) {
  835.                             $id = $info["data"]["" . $d . ""]["id"];
  836.                             if ($id < '1') {
  837.                                 print "$daucau2 \033[1;34mLike 2 tạm thời hết nhiệm vụ\r";
  838.                                 if (count($khoToken) > 1) {
  839.                                     $demhetnv++;
  840.                                 }
  841.                                 if ($demhetnv == 4) {
  842.                                     $spam = 1;
  843.                                 }
  844.                                 break;
  845.                             } else {
  846.                                 $demhetnv = 0;
  847.                                 $d += 1;
  848.                                 //ketnoimangV1();
  849.                                 $g = camxuc($id, 'LIKE', $cookie);
  850.                             }
  851.                             $s = nhantien('likegiare', 'likegiare', $id);
  852.  
  853.                             date_default_timezone_set('Asia/Ho_Chi_Minh');
  854.                             $t = date('H:i:s');
  855.                             $rd = rand(1, 7);
  856.                             $id = substr($id . "                       ", 0, 17);
  857.                             if ($s == 2) {
  858.                                 $nv += 1;
  859.                                 $sodu += 150;
  860.                                 $duocne = $duocne + 1;
  861.                                 //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
  862.                                 $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_LIKE2"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +150 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  863.  
  864.                                 for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  865.                                     print $tt[$i];
  866.                                     usleep(200);
  867.                                 }
  868.                                 if ($spam == 1) {
  869.                                     break;
  870.                                 }
  871.                                 if (count($khoToken) > 1) {
  872.                                     if ($duocne % $doiacc == 0) {
  873.                                         $spam = 1;
  874.                                         break;
  875.                                     } else {
  876.                                         usleep(1);
  877.                                     }
  878.                                 } else {
  879.                                     usleep(1);
  880.                                 }
  881.                                 loadtime('delaylike');
  882.                                 if ($nv == $nhiemvu) {
  883.                                     chongbl('block');
  884.  
  885.                                     $nv = "0";
  886.                                 }
  887.                             } else {
  888.                                 print "\r";
  889.                             }
  890.                         }
  891.                     }
  892.                     //nvsub
  893.                 } elseif ($rand == 'like3') {
  894.                     //ketnoimangV1();
  895.                     $x = getnv('likesieure');
  896.                     if ($x != "") {
  897.  
  898.                         $info = json_decode($x, true);
  899.                         $d = "0";
  900.                         while (true) {
  901.                             $id = $info["data"]["" . $d . ""]["id"];
  902.                             if ($id < '1') {
  903.                                 print "$daucau2 \033[1;34mLike 2 tạm thời hết nhiệm vụ\r";
  904.                                 if (count($khoToken) > 1) {
  905.                                     $demhetnv++;
  906.                                 }
  907.                                 if ($demhetnv == 4) {
  908.                                     $spam = 1;
  909.                                 }
  910.                                 break;
  911.                             } else {
  912.                                 $demhetnv = 0;
  913.                                 $d += 1;
  914.                                 //ketnoimangV1();
  915.                                 $g = camxuc($id, 'LIKE', $cookie);
  916.                             }
  917.                             $s = nhantien('likesieure', 'likesieure', $id);
  918.  
  919.                             date_default_timezone_set('Asia/Ho_Chi_Minh');
  920.                             $t = date('H:i:s');
  921.                             $rd = rand(1, 7);
  922.                             $id = substr($id . "                       ", 0, 17);
  923.                             if ($s == 2) {
  924.                                 $nv += 1;
  925.                                 $sodu += 99;
  926.                                 $duocne = $duocne + 1;
  927.                                 //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
  928.                                 $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_LIKE3"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +99 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  929.  
  930.                                 for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  931.                                     print $tt[$i];
  932.                                     usleep(200);
  933.                                 }
  934.                                 if ($spam == 1) {
  935.                                     break;
  936.                                 }
  937.                                 if (count($khoToken) > 1) {
  938.                                     if ($duocne % $doiacc == 0) {
  939.                                         $spam = 1;
  940.                                         break;
  941.                                     } else {
  942.                                         usleep(1);
  943.                                     }
  944.                                 } else {
  945.                                     usleep(1);
  946.                                 }
  947.                                 loadtime('delaylike');
  948.                                 if ($nv == $nhiemvu) {
  949.                                     chongbl('block');
  950.  
  951.                                     $nv = "0";
  952.                                 }
  953.                             } else {
  954.                                 print "\r";
  955.                             }
  956.                         }
  957.                     }
  958.                     //nvsub
  959.                 } else if ($rand == 'sub') {
  960.                     //ketnoimangV1();
  961.                     $x = getnv('follow');
  962.                     if ($x != "") {
  963.                         $info = json_decode($x, true);
  964.                         $d = "0";
  965.                         while (true) {
  966.                             $id = $info["data"]["" . $d . ""]["id"];
  967.                             if ($id < '1') {
  968.                                 print "$daucau2 \033[1;34mSub tạm thời hết nhiệm vụ\r";
  969.                                 if (count($khoToken) > 1) {
  970.                                     $demhetnv++;
  971.                                 }
  972.                                 if ($demhetnv == 4) {
  973.                                     $spam = 1;
  974.                                 }
  975.                                 break;
  976.                             } else {
  977.                                 $demhetnv = 0;
  978.                                 $d += 1;
  979.                                 //ketnoimangV1();
  980.                                 $g = follow($id, $cookie);
  981.  
  982.                                 if (strpos($g[0], 'Đăng nhập') !== false) {
  983.                                     // $page = thongtin('me', $cookie, $useragent);
  984.                                     // //lấy tên
  985.                                     // $tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
  986.                                     // $idfb = explode('%',explode('?lst=', $page)[1])[0];
  987.                                     // if ($idfb != '') {
  988.                                     // } else {
  989.                                     //     echo "\r";
  990.                                     //     echo "                                                      \r";
  991.                                     //     echo "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m" . $red . "Cookie Die\n";
  992.                                     //     array_splice($khocookie, $xz, 1);
  993.                                     //     $spam = 1;
  994.                                     //     break;
  995.                                     // }
  996.                                 } elseif (strpos($g[1], 'Tài khoản của bạn hiện bị hạn chế') !== false) {
  997.                                     echo "                                                      \r";
  998.                                     echo "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m" . $red . "Đã Bị Block Follow\n";
  999.                                     array_splice($khocookie, $xz, 1);
  1000.                                     $spam = 1;
  1001.                                     break;
  1002.                                 } elseif (strpos($g[1], 'loi') !== false) {
  1003.                                 } else {
  1004.                                     $s = nhantien('follow', 'follow', $id);
  1005.                                     if ($idfb == "100011081416081") {
  1006.                                         huyfollow($id, $useragent, $cookie);
  1007.                                     }
  1008.                                     date_default_timezone_set('Asia/Ho_Chi_Minh');
  1009.                                     $t = date('H:i:s');
  1010.                                     $rd = rand(1, 7);
  1011.                                     if ($s == 2) {
  1012.                                         $nv += 1;
  1013.                                         $sodu += 600;
  1014.                                         $d += 1;
  1015.                                         $duocne = $duocne + 1;
  1016.                                         //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m FOLLOW  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
  1017.                                         $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_FOLLOW"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  1018.  
  1019.                                         for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  1020.                                             print $tt[$i];
  1021.                                             usleep(200);
  1022.                                         }
  1023.                                         if ($spam == 1) {
  1024.                                             break;
  1025.                                         }
  1026.                                         if ($spam == 1) {
  1027.                                             break;
  1028.                                         }
  1029.                                         if (count($khoToken) > 1) {
  1030.                                             if ($duocne % $doiacc == 0) {
  1031.                                                 $spam = 1;
  1032.                                                 break;
  1033.                                             } else {
  1034.                                                 usleep(1);
  1035.                                             }
  1036.                                         } else {
  1037.                                             usleep(1);
  1038.                                         }
  1039.                                         loadtime('delayfollow');
  1040.  
  1041.                                         if ($nv == $nhiemvu) {
  1042.                                             chongbl('block');
  1043.  
  1044.                                             $nv = "0";
  1045.                                         }
  1046.                                     } else {
  1047.                                         print "\r";
  1048.                                     }
  1049.                                 }
  1050.                             }
  1051.                         }
  1052.                     }
  1053.                 } else if ($rand == 'cxcmt') {
  1054.                     //ketnoimangV1();
  1055.                     $x = getnv('reactioncmt');
  1056.                     if ($x != "") {
  1057.                         $info = json_decode($x, true);
  1058.                         $d = "0";
  1059.                         while (true) {
  1060.                             $id = $info["data"]["" . $d . ""]["id"];
  1061.                             $type = $info["data"]["" . $d . ""]["type"];
  1062.                             if ($id < '1') {
  1063.                                 print "$daucau2 \033[1;34mReactionCMT tạm thời hết nhiệm vụ\r";
  1064.                                 if (count($khoToken) > 1) {
  1065.                                     $demhetnv++;
  1066.                                 }
  1067.                                 if ($demhetnv == 4) {
  1068.                                     $spam = 1;
  1069.                                 }
  1070.                                 break;
  1071.                             } else {
  1072.                                 $demhetnv = 0;
  1073.                                 $d += 1;
  1074.                                 //ketnoimangV1();
  1075.                                 $g = reaction_cmt($id, $idfb, $type, $cookie);
  1076.                                 // $page = thongtin('me', $cookie, $useragent);
  1077.                                 // $idfb = explode('%',explode('?lst=', $page)[1])[0];
  1078.                                 // if ($idfb == '') {
  1079.                                 //     echo $red . "Cookie die";
  1080.                                 //     array_splice($khoToken, $xz, 1);
  1081.                                 //     $spam = 1; break;
  1082.                                 // }
  1083.                             }
  1084.                             $s = nhantien($type, 'reactioncmt', $id);
  1085.                             date_default_timezone_set('Asia/Ho_Chi_Minh');
  1086.                             $t = date('H:i:s');
  1087.                             $rd = rand(1, 7);
  1088.                             $id = explode('_', $id)[1];
  1089.                             $id = substr($id . "                       ", 0, 17);
  1090.                             if ($s == 2) {
  1091.                                 $nv += 1;
  1092.                                 $sodu += 600;
  1093.                                 $duocne = $duocne + 1;
  1094.                                 //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m".$type."|CMT \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
  1095.  
  1096.                                 if (strpos($type, 'LIKE')) {
  1097.                                     $type = ' LIKE CMT ';
  1098.                                 }
  1099.                                 if (strpos($type, 'LOVE')) {
  1100.                                     $type = ' LOVE CMT ';
  1101.                                 }
  1102.                                 if (strpos($type, 'CARE')) {
  1103.                                     $type = ' CARE CMT ';
  1104.                                 }
  1105.                                 if (strpos($type, 'HAHA')) {
  1106.                                     $type = ' HAHA CMT ';
  1107.                                 }
  1108.                                 if (strpos($type, 'WOW')) {
  1109.                                     $type = '  WOW CMT ';
  1110.                                 }
  1111.                                 if (strpos($type, 'SAD')) {
  1112.                                     $type = '  SAD CMT ';
  1113.                                 }
  1114.                                 if (strpos($type, 'ANGRY')) {
  1115.                                     $type = ' ANGRY CMT';
  1116.                                 }
  1117.                                 $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m | \033[1;93m" . $type . "\033[1;91m | \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  1118.  
  1119.                                 for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  1120.                                     print $tt[$i];
  1121.                                     usleep(200);
  1122.                                 }
  1123.                                 if ($spam == 1) {
  1124.                                     break;
  1125.                                 }
  1126.                                 if (count($khoToken) > 1) {
  1127.                                     if ($duocne % $doiacc == 0) {
  1128.                                         $spam = 1;
  1129.                                         break;
  1130.                                     } else {
  1131.                                         usleep(1);
  1132.                                     }
  1133.                                 } else {
  1134.                                     usleep(1);
  1135.                                 }
  1136.                                 loadtime('delaycxcmt');
  1137.  
  1138.                                 if ($nv == $nhiemvu) {
  1139.                                     chongbl('block');
  1140.  
  1141.                                     $nv = "0";
  1142.                                 }
  1143.                             } else {
  1144.                                 print "\r";
  1145.                             }
  1146.                         }
  1147.                     }
  1148.                 } else if ($rand == 'page') {
  1149.                     //ketnoimangV1();
  1150.                     $x = getnv('fanpage');
  1151.                     if ($x != "") {
  1152.                         $info = json_decode($x, true);
  1153.                         $d = "0";
  1154.                         while (true) {
  1155.                             $id = $info["data"]["" . $d . ""]["id"];
  1156.                             if ($id < '1') {
  1157.                                 print "$daucau2 \033[1;34mPAGE tạm thời hết nhiệm vụ\r";
  1158.                                 if (count($khoToken) > 1) {
  1159.                                     $demhetnv++;
  1160.                                 }
  1161.                                 if ($demhetnv == 4) {
  1162.                                     $spam = 1;
  1163.                                 }
  1164.                                 break;
  1165.                             } else {
  1166.                                 $demhetnv = 0;
  1167.                                 $d += 1;
  1168.                                 //ketnoimangV1();
  1169.                                 $g = page($id, $cookie);
  1170.                                 $s = nhantien('fanpage', 'fanpage', $id);
  1171.                                 date_default_timezone_set('Asia/Ho_Chi_Minh');
  1172.                                 $t = date('H:i:s');
  1173.                                 $rd = rand(1, 7);
  1174.                                 $id = substr($id . "                       ", 0, 17);
  1175.                                 if ($s == 2) {
  1176.                                     $nv += 1;
  1177.                                     $sodu += 600;
  1178.                                     $duocne = $duocne + 1;
  1179.                                     //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m PAGE  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
  1180.                                     $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_PAGE"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  1181.                                     for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  1182.                                         print $tt[$i];
  1183.                                         usleep(200);
  1184.                                     }
  1185.                                     if ($spam == 1) {
  1186.                                         break;
  1187.                                     }
  1188.                                     if (count($khoToken) > 1) {
  1189.                                         if ($duocne % $doiacc == 0) {
  1190.                                             $spam = 1;
  1191.                                             break;
  1192.                                         } else {
  1193.                                             usleep(1);
  1194.                                         }
  1195.                                     } else {
  1196.                                         usleep(1);
  1197.                                     }
  1198.                                     loadtime('delaypage');
  1199.  
  1200.                                     if ($nv == $nhiemvu) {
  1201.                                         chongbl('block');
  1202.  
  1203.                                         $nv = "0";
  1204.                                     }
  1205.                                 } else {
  1206.                                     print "\r";
  1207.                                 }
  1208.                             }
  1209.                         }
  1210.                     }
  1211.                 } else if ($rand == 'share') {
  1212.                     //ketnoimangV1();
  1213.                     $x = getnv('share');
  1214.                     if ($x != "") {
  1215.                         $info = json_decode($x, true);
  1216.                         $d = "0";
  1217.                         while (true) {
  1218.                             $id = $info["data"]["" . $d . ""]["id"];
  1219.                             if ($id < '1') {
  1220.                                 print "$daucau2 \033[1;34mShare tạm thời hết nhiệm vụ\r";
  1221.                                 if (count($khoToken) > 1) {
  1222.                                     $demhetnv++;
  1223.                                 }
  1224.                                 if ($demhetnv == 4) {
  1225.                                     $spam = 1;
  1226.                                 }
  1227.                                 break;
  1228.                             } else {
  1229.                                 $demhetnv = 0;
  1230.                                 $d += 1;
  1231.                                 //ketnoimangV1();
  1232.                                 share($id, $cookie);
  1233.                                 $s = nhantien('share', 'share', $id);
  1234.                                 date_default_timezone_set('Asia/Ho_Chi_Minh');
  1235.                                 $t = date('H:i:s');
  1236.                                 $rd = rand(1, 7);
  1237.                                 $id = substr($id . "                       ", 0, 17);
  1238.                                 if ($s == 2) {
  1239.                                     $nv += 1;
  1240.                                     $sodu += 800;
  1241.                                     $duocne = $duocne + 1;
  1242.                                     // $tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m SHARE  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+800 \033[1;31m| \033[1;33m".$sodu."\n";
  1243.                                     $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_SHARE"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +800 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  1244.  
  1245.                                     for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  1246.                                         print $tt[$i];
  1247.                                         usleep(1500);
  1248.                                     }
  1249.                                     if ($spam == 1) {
  1250.                                         break;
  1251.                                     }
  1252.                                     if (count($khoToken) > 1) {
  1253.                                         if ($duocne % $doiacc == 0) {
  1254.                                             $spam = 1;
  1255.                                             break;
  1256.                                         } else {
  1257.                                             usleep(1);
  1258.                                         }
  1259.                                     } else {
  1260.                                         usleep(1);
  1261.                                     }
  1262.                                     loadtime('delayshare');
  1263.  
  1264.                                     if ($nv == $nhiemvu) {
  1265.                                         chongbl('block');
  1266.  
  1267.                                         $nv = "0";
  1268.                                     }
  1269.                                 } else {
  1270.                                     print "\r";
  1271.                                 }
  1272.                             }
  1273.                         }
  1274.                     }
  1275.                 } else if ($rand == 'cx') {
  1276.                     //ketnoimangV1();
  1277.                     $x = getnv('reaction');
  1278.                     if ($x != "") {
  1279.                         $info = json_decode($x, true);
  1280.                         $d = "0";
  1281.                         while (true) {
  1282.                             $id = $info["data"]["" . $d . ""]["id"];
  1283.                             $type = $info["data"]["" . $d . ""]["type"];
  1284.                             if ($id < '1') {
  1285.                                 print "$daucau2 \033[1;34mReaction tạm thời hết nhiệm vụ\r";
  1286.                                 if (count($khoToken) > 1) {
  1287.                                     $demhetnv++;
  1288.                                 }
  1289.                                 if ($demhetnv == 4) {
  1290.                                     $spam = 1;
  1291.                                 }
  1292.                                 break;
  1293.                             } else {
  1294.                                 $demhetnv = 0;
  1295.                                 $d += 1;
  1296.                                 //ketnoimangV1();
  1297.                                 camxuc($id, $type, $cookie);
  1298.                                 $tp = $type;
  1299.                                 $s = nhantien($tp, 'reaction', $id);
  1300.  
  1301.                                 date_default_timezone_set('Asia/Ho_Chi_Minh');
  1302.                                 $t = date('H:i:s');
  1303.                                 $rd = rand(1, 7);
  1304.                                 $id = substr($id . "                       ", 0, 17);
  1305.                                 if ($s == 2) {
  1306.                                     $nv += 1;
  1307.                                     $sodu += 400;
  1308.                                     $duocne = $duocne + 1;
  1309.                                     //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m".$type." \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+400 \033[1;31m| \033[1;33m".$sodu."\n";
  1310.  
  1311.                                     if (strpos($type, 'LIKE')) {
  1312.                                         $type = $_SESSION["C_LIKE"];
  1313.                                     }
  1314.                                     if (strpos($type, 'LOVE')) {
  1315.                                         $type = $_SESSION["C_LOVE"];
  1316.                                     }
  1317.                                     if (strpos($type, 'CARE')) {
  1318.                                         $type = $_SESSION["C_CARE"];
  1319.                                     }
  1320.                                     if (strpos($type, 'HAHA')) {
  1321.                                         $type = $_SESSION["C_HAHA"];
  1322.                                     }
  1323.                                     if (strpos($type, 'WOW')) {
  1324.                                         $type = $_SESSION["C_WOW"];
  1325.                                     }
  1326.                                     if (strpos($type, 'SAD')) {
  1327.                                         $type = $_SESSION["C_SAD"];
  1328.                                     }
  1329.                                     if (strpos($type, 'ANGRY')) {
  1330.                                         $type = $_SESSION["C_ANGRY"];
  1331.                                     }
  1332.                                     $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m | \033[1;93m" . $type . "\033[1;91m | \033[1;97m" . $id . "\033[1;91m |\033[1;92m +400 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  1333.  
  1334.                                     for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  1335.                                         print $tt[$i];
  1336.                                         usleep(1500);
  1337.                                     }
  1338.                                     if ($spam == 1) {
  1339.                                         break;
  1340.                                     }
  1341.                                     if (count($khoToken) > 1) {
  1342.                                         if ($duocne % $doiacc == 0) {
  1343.                                             $spam = 1;
  1344.                                             break;
  1345.                                         } else {
  1346.                                             usleep(1);
  1347.                                         }
  1348.                                     } else {
  1349.                                         usleep(1);
  1350.                                     }
  1351.                                     loadtime('delaycx');
  1352.  
  1353.                                     if ($nv == $nhiemvu) {
  1354.                                         chongbl('block');
  1355.  
  1356.                                         $nv = "0";
  1357.                                     }
  1358.                                 } else {
  1359.                                     print "\r";
  1360.                                 }
  1361.                             }
  1362.                         }
  1363.                     }
  1364.                 } elseif ($rand == 'cmt') {
  1365.                     //ketnoimangV1();
  1366.                     $x = getnv('comment');
  1367.                     if ($x != "") {
  1368.                         $info = json_decode($x, true);
  1369.                         $d = "0";
  1370.                         while (true) {
  1371.                             $id = $info["data"]["" . $d . ""]["id"];
  1372.                             $msg = $info["data"]["" . $d . ""]["msg"];
  1373.                             if ($id < '1') {
  1374.                                 print "$daucau2 \033[1;34mCMT tạm thời hết nhiệm vụ\r";
  1375.                                 if (count($khoToken) > 1) {
  1376.                                     $demhetnv++;
  1377.                                 }
  1378.                                 if ($demhetnv == 4) {
  1379.                                     $spam = 1;
  1380.                                 }
  1381.                                 break;
  1382.                             } else {
  1383.                                 $demhetnv = 0;
  1384.                                 $d += 1;
  1385.                                 //ketnoimangV1();
  1386.                                 //$g = cmt($access_token, $id, $cookie, $msg);
  1387.                                 $g = cmt_fb_cookie_new($id, $cookie, $msg);
  1388.                                 // $page = thongtin('me', $cookie, $useragent);
  1389.                                 // $idfb = explode('%',explode('?lst=', $page)[1])[0];
  1390.                                 // if ($idfb == '') {
  1391.                                 //     echo $red . "Cookie die";
  1392.                                 //     array_splice($khoToken, $xz, 1);
  1393.                                 //     $spam = 1; break;
  1394.                                 // } else {
  1395.                                 $s = nhantien('like', 'comment', $id);
  1396.                                 date_default_timezone_set('Asia/Ho_Chi_Minh');
  1397.                                 $t = date('H:i:s');
  1398.                                 $rd = rand(1, 7);
  1399.                                 $id = substr($id . "                       ", 0, 17);
  1400.                                 if ($s == 2) {
  1401.                                     $nv += 1;
  1402.                                     $sodu += 600;
  1403.                                     $duocne = $duocne + 1;
  1404.                                     //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m CMT  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
  1405.                                     $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_CMT"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\033[1;96m $msg\n";
  1406.  
  1407.                                     for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  1408.                                         print $tt[$i];
  1409.                                         usleep(200);
  1410.                                     }
  1411.                                     if ($spam == 1) {
  1412.                                         break;
  1413.                                     }
  1414.                                     if (count($khoToken) > 1) {
  1415.                                         if ($duocne % $doiacc == 0) {
  1416.                                             $spam = 1;
  1417.                                             break;
  1418.                                         } else {
  1419.                                             usleep(1);
  1420.                                         }
  1421.                                     } else {
  1422.                                         usleep(1);
  1423.                                     }
  1424.                                     loadtime('delaycmt');
  1425.  
  1426.                                     if ($nv == $nhiemvu) {
  1427.                                         chongbl('block');
  1428.  
  1429.                                         $nv = "0";
  1430.                                     }
  1431.                                 } else {
  1432.                                     print "\r";
  1433.                                 }
  1434.                                 //}
  1435.                             }
  1436.                         }
  1437.                     }
  1438.                 } elseif ($rand == 'group') {
  1439.                     //ketnoimangV1();
  1440.                     $x = getnv('group');
  1441.                     if ($x != "") {
  1442.                         $info = json_decode($x, true);
  1443.                         $d = "0";
  1444.                         while (true) {
  1445.                             $id = $info["data"]["" . $d . ""]["id"];
  1446.                             if ($id < '1') {
  1447.                                 print "$daucau2 \033[1;34mGroup tạm thời hết nhiệm vụ\r";
  1448.                                 if (count($khoToken) > 1) {
  1449.                                     $demhetnv++;
  1450.                                 }
  1451.                                 if ($demhetnv == 4) {
  1452.                                     $spam = 1;
  1453.                                 }
  1454.                                 break;
  1455.                             } else {
  1456.                                 $demhetnv = 0;
  1457.                                 $d += 1;
  1458.                                 //ketnoimangV1();
  1459.                                 $g = group_fb($id, $useragent, $cookie);
  1460.                                 $s = nhantien('group', 'group', $id);
  1461.  
  1462.                                 date_default_timezone_set('Asia/Ho_Chi_Minh');
  1463.                                 $t = date('H:i:s');
  1464.                                 $rd = rand(1, 7);
  1465.                                 $id = substr($id . "                       ", 0, 17);
  1466.                                 if ($s == 2) {
  1467.                                     $nv += 1;
  1468.                                     $sodu += 1400;
  1469.                                     $duocne = $duocne + 1;
  1470.                                     //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE  \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
  1471.                                     $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_GROUP"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +1400 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
  1472.  
  1473.                                     for ($i = 1; $i < (strlen($tt) + 1); $i++) {
  1474.                                         print $tt[$i];
  1475.                                         usleep(200);
  1476.                                     }
  1477.                                     if ($spam == 1) {
  1478.                                         break;
  1479.                                     }
  1480.                                     if (count($khoToken) > 1) {
  1481.                                         if ($duocne % $doiacc == 0) {
  1482.                                             $spam = 1;
  1483.                                             break;
  1484.                                         } else {
  1485.                                             usleep(1);
  1486.                                         }
  1487.                                     } else {
  1488.                                         usleep(1);
  1489.                                     }
  1490.                                     loadtime('delaygr');
  1491.                                     if ($nv == $nhiemvu) {
  1492.                                         chongbl('block');
  1493.  
  1494.                                         $nv = "0";
  1495.                                     }
  1496.                                 } else {
  1497.                                     print "\r";
  1498.                                 }
  1499.                             }
  1500.                         }
  1501.                         //nvsub
  1502.                     }
  1503.                 }
  1504.             }
  1505.         }
  1506.     }
  1507. }
  1508.  
  1509. function thongtin($id, $cookie, $useragent)
  1510. {
  1511.  
  1512.     $ch = curl_init();
  1513.     $header = array(
  1514.         "Host:m.facebook.com",
  1515.         "user-agent:$useragent",
  1516.         "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",
  1517.         "cookie:$cookie",
  1518.     );
  1519.     $linkbv = 'https://m.facebook.com/' . $id . '/about';
  1520.     curl_setopt($ch, CURLOPT_URL, $linkbv);
  1521.     $head[] = "Connection: keep-alive";
  1522.     $head[] = "Keep-Alive: 300";
  1523.     $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1524.     $head[] = "Accept-Language: en-us,en;q=0.5";
  1525.     curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  1526.     curl_setopt($ch, CURLOPT_ENCODING, '');
  1527.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1528.     curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  1529.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1530.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1531.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1532.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1533.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1534.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1535.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  1536.    :'));
  1537.     $page = curl_exec($ch);
  1538.     $page1 = json_decode($page);
  1539.     //echo "\n".$page."\n\n\n\n";
  1540.  
  1541.     // $code_post = explode('<span>', $page)[2];
  1542.     // $code_post = explode('</span>', $code_post)[0];
  1543.     //   echo "\n\n".$code_post;
  1544.     // $id_post = explode('mf_story_key":"', $code_post)[1];
  1545.     // $id_post = explode('"', $id_post)[0];
  1546.  
  1547.  
  1548.     // //tennguoidung
  1549.     return $page;
  1550. }
  1551.  
  1552. function logintds()
  1553. {
  1554.     $data   = fread(fopen("TKMKTDS.txt", "r"), filesize("TKMKTDS.txt"));
  1555.     $username = explode('|', $data)[0];
  1556.     $password = explode('|', $data)[1];
  1557.     $ch = curl_init();
  1558.     //ketnoimangV1();
  1559.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1560.     curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  1561.     curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  1562.     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
  1563.     //ketnoimangV1();
  1564.     $login = array('username' => $username, 'password' => $password, 'submit' => ' Đăng Nhập');
  1565.     curl_setopt($ch, CURLOPT_POST, count($login));
  1566.     curl_setopt($ch, CURLOPT_POSTFIELDS, $login);
  1567.     curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  1568.     $source = curl_exec($ch);
  1569.     curl_close($ch);
  1570. }
  1571. function group_fb($id, $useragent, $cookie)
  1572. {
  1573.     $ch = curl_init();
  1574.     if (strpos($id, '_')) {
  1575.         $uid = explode('_', $id, 2);
  1576.         $id2 = 'story.php?story_fbid=' . $uid[1] . '&id=' . $uid[0];
  1577.     } else {
  1578.         $id2 = $id;
  1579.     }
  1580.  
  1581.     $header = array(
  1582.         "Host:mbasic.facebook.com",
  1583.         "user-agent:$useragent",
  1584.         "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",
  1585.         "cookie:$cookie",
  1586.     );
  1587.     //ketnoimangV1();
  1588.     $linkbv = 'https://mbasic.facebook.com/groups/' . $id2;
  1589.     curl_setopt($ch, CURLOPT_URL, $linkbv);
  1590.     $head[] = "Connection: keep-alive";
  1591.     $head[] = "Keep-Alive: 300";
  1592.     $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1593.     $head[] = "Accept-Language: en-us,en;q=0.5";
  1594.     curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  1595.     curl_setopt($ch, CURLOPT_ENCODING, '');
  1596.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1597.     curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  1598.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1599.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1600.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1601.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1602.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1603.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1604.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  1605.                    :'));
  1606.     // json_decode(curl_exec($ch), true);
  1607.     $post = curl_exec($ch);
  1608.  
  1609.  
  1610.     $link = explode('<form method="post" action="/a/group/join/?group_id=', $post)[1];
  1611.     $link = explode('"', $link)[0];
  1612.     $link = html_entity_decode($link);
  1613.     $link = "https://mbasic.facebook.com/a/group/join/?group_id=" . $link;
  1614.     // echo $link;
  1615.     // die();
  1616.     $linkreac1 = $link;
  1617.     $header = array(
  1618.         "Host:mbasic.facebook.com",
  1619.         "user-agent:$useragent",
  1620.         "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",
  1621.         "referer:$linkbv",
  1622.         "cookie:$cookie",
  1623.     );
  1624.     //ketnoimangV1();
  1625.     $ch = curl_init();
  1626.     curl_setopt($ch, CURLOPT_URL, $linkreac1);
  1627.     $head[] = "Connection: keep-alive";
  1628.     $head[] = "Keep-Alive: 300";
  1629.     $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1630.     $head[] = "Accept-Language: en-us,en;q=0.5";
  1631.     curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  1632.     curl_setopt($ch, CURLOPT_ENCODING, '');
  1633.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1634.     curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  1635.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1636.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1637.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1638.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1639.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1640.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1641.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  1642.     $page = curl_exec($ch);
  1643.     $aa = $page;
  1644.  
  1645.     return $aa;
  1646. }
  1647.  
  1648.  
  1649. function follow($idtest, $cookie)
  1650. {
  1651.     $ch = curl_init();
  1652.     curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $idtest . '?_rdr');
  1653.     $head[] = "Connection: keep-alive";
  1654.     $head[] = "Keep-Alive: 300";
  1655.     $head[] = "upgrade-insecure-requests: 1";
  1656.     // $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1657.     // $head[] = "Accept-Language: en-us,en;q=0.5";
  1658.     // $head[] = "Accept-encoding: gzip, deflate, br";
  1659.     // $head[] = "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";
  1660.     $head[] = "sec-ch-ua-mobile: ?0";
  1661.     $head[] = "sec-fetch-user: ?1";
  1662.     $head[] = "sec-fetch-site: none";
  1663.     $head[] = "sec-fetch-dest: document";
  1664.     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36');
  1665.     //curl_setopt($ch, CURLOPT_ENCODING, '');
  1666.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1667.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1668.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1669.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  1670.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  1671.     curl_setopt($ch, CURLOPT_REFERER, true);
  1672.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1673.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1674.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1675.     //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  1676.     $access = curl_exec($ch);
  1677.     //return $access;
  1678.     $url1 = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
  1679.     if (strpos($access, '/a/subscribe.php?') !== false) {
  1680.         $haha = explode('<a href="', $access);
  1681.         $haha2 = "";
  1682.         //echo 1;
  1683.         for ($v = 0; $v < count($haha); $v++) {
  1684.             if (strpos($haha[$v], '/a/subscribe.php?') !== false) {
  1685.                 $haha2 = explode('" class=', $haha[$v])[0];
  1686.                 break;
  1687.             }
  1688.         }
  1689.         //if()
  1690.         $link2 = html_entity_decode($haha2);
  1691.         // echo $url1;
  1692.         curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com' . $link2 . '&_rdr');
  1693.         curl_setopt($ch, CURLOPT_REFERER, $url1);
  1694.         curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1695.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1696.         $fl = curl_exec($ch);
  1697.         //echo curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
  1698.         curl_close($ch);
  1699.         //return $fl;
  1700.     } else {
  1701.         curl_close($ch);
  1702.         return 'id ' . $idtest . ' loi';
  1703.         //return $access;
  1704.     }
  1705. }
  1706.  
  1707. function like($access_token, $id, $cookie)
  1708. {
  1709.     $ch = curl_init();
  1710.     curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . $id . '/likes');
  1711.     $head[] = "Connection: keep-alive";
  1712.     $head[] = "Keep-Alive: 300";
  1713.     $head[] = "authority: m.facebook.com";
  1714.     $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1715.     $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";
  1716.     $head[] = "cache-control: max-age=0";
  1717.     $head[] = "upgrade-insecure-requests: 1";
  1718.     $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";
  1719.     $head[] = "sec-fetch-site: none";
  1720.     $head[] = "sec-fetch-mode: navigate";
  1721.     $head[] = "sec-fetch-user: ?1";
  1722.     $head[] = "sec-fetch-dest: document";
  1723.     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');
  1724.     curl_setopt($ch, CURLOPT_ENCODING, '');
  1725.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1726.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1727.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1728.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1729.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1730.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1731.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1732.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  1733.     $data = array('access_token' => $access_token);
  1734.     curl_setopt($ch, CURLOPT_POST, count($data));
  1735.     curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  1736.     $access = curl_exec($ch);
  1737.     curl_close($ch);
  1738.     return json_decode($access);
  1739. }
  1740. function cmt($access_token, $id, $cookie, $msg)
  1741. {
  1742.     $ch = curl_init();
  1743.     curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . $id . '/comments');
  1744.     $head[] = "Connection: keep-alive";
  1745.     $head[] = "Keep-Alive: 300";
  1746.     $head[] = "authority: m.facebook.com";
  1747.     $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1748.     $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";
  1749.     $head[] = "cache-control: max-age=0";
  1750.     $head[] = "upgrade-insecure-requests: 1";
  1751.     $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";
  1752.     $head[] = "sec-fetch-site: none";
  1753.     $head[] = "sec-fetch-mode: navigate";
  1754.     $head[] = "sec-fetch-user: ?1";
  1755.     $head[] = "sec-fetch-dest: document";
  1756.     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');
  1757.     curl_setopt($ch, CURLOPT_ENCODING, '');
  1758.     curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1759.     curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1760.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1761.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1762.     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1763.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1764.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1765.     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  1766.     $data = array('message' => $msg, 'access_token' => $access_token);
  1767.     curl_setopt($ch, CURLOPT_POST, count($data));
  1768.     curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  1769.     $access = curl_exec($ch);
  1770.     curl_close($ch);
  1771.     return json_decode($access);
  1772. }
  1773. function camxuc($id, $type, $cookie)
  1774. {
  1775.     $ch = curl_init();
  1776.     if (strpos($id, '_')) {
  1777.         $uid = explode('_', $id, 2);
  1778.         $id2 = 'story.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement