Advertisement
danhcltx

Cookie ttc

Aug 15th, 2021
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.93 KB | None | 0 0
  1. error_reporting(0);
  2. session_start();
  3. $ress = "\033[0;32m";
  4. $res = "\033[0;33m";
  5. $red = "\033[0;31m";
  6. $green = "\033[0;37m";
  7. $yellow = "\033[0;33m";
  8. $white = "\033[0;33m";
  9. $xnhac = "\033[1;96m";
  10. $den = "\033[1;90m";
  11. $do = "\033[1;91m";
  12. $luc = "\033[1;92m";
  13. $vang = "\033[1;93m";
  14. $xduong = "\033[1;94m";
  15. $hong = "\033[1;95m";
  16. $trang = "\033[1;97m";
  17. $ress = "\033[0;32m";
  18. $res = "\033[0;33m";
  19. $end = "\033[0m";
  20. $whiteb = "\033[1;37m";
  21. $ress = "\033[0;32m";
  22. $res = "\033[0;33m";
  23. $red = "\033[0;31m";
  24. $blue = "\033[1;96m";
  25. $green = "\033[0;37m";
  26. $yellow = "\033[0;33m";
  27. $maul = rand(31, 37);
  28. $maui = "\033[1;".$maul."m";
  29. $white = "\033[0;33m";
  30. $xnhac = "\033[1;96m";
  31. $den = "\033[1;90m";
  32. $do = "\033[1;91m";
  33. $luc = "\033[1;92m";
  34. $vang = "\033[1;93m";
  35. $xduong = "\033[1;94m";
  36. $hong = "\033[1;95m";
  37. $trang = "\033[1;97m";
  38. $nenden = "\033[40m";
  39. $xanhd = "\033[0;36m";
  40. $nendo = "\033[41m";
  41. $nenxanh = "\033[42m";
  42. $nenvang = "\033[43m";
  43. $nenblue = "\033[44m";
  44. $nenPurpe = "\033[45m";
  45. $nenCyan = "\033[46m";
  46. $nentrang = "\033[47m";
  47. $UGreen = "\033[4;32m";
  48. $BGreen = "\033[1;32m"; $end = "\033[0m";
  49. $whiteb = "\033[1;37m";
  50. $ress = "\033[0;32m";
  51. $res = "\033[0;33m";
  52. $red = "\033[0;31m";
  53. $green = "\033[0;37m";
  54. $yellow = "\033[0;33m";
  55. $maul = rand(31, 37);
  56. $maui = "\033[1;".$maul."m";
  57. $white = "\033[0;33m";
  58. $xnhac = "\033[1;96m";
  59. $den = "\033[1;90m";
  60. $do = "\033[1;91m";
  61. $luc = "\033[1;92m";
  62. $vang = "\033[1;93m";
  63. $xduong = "\033[1;94m";
  64. $hong = "\033[1;95m";
  65. $trang = "\033[1;97m";
  66. $nenden = "\033[40m";
  67. $xanhd = "\033[0;36m";
  68. $nendo = "\033[41m";
  69. $nenxanh = "\033[42m";
  70. $nenvang = "\033[43m";
  71. $nenblue = "\033[44m";
  72. $nenPurpe = "\033[45m";
  73. $nenCyan = "\033[46m";
  74. $nentrang = "\033[47m";
  75. $UGreen = "\033[4;32m";
  76. $BGreen = "\033[1;32m";
  77. $red = "\033[0;31m";
  78. $green = "\033[0;37m";
  79. $yellow = "\033[0;33m";
  80. $white = "\033[0;33m";
  81. $banner = "\r";
  82. $xnhac = "\033[1;96m";
  83. $den = "\033[1;90m";
  84. $do = "\033[1;91m";
  85. $luc = "\033[1;92m";
  86. $vang = "\033[1;93m";
  87. $xduong = "\033[1;94m";
  88. $hong = "\033[1;95m";
  89. $trang = "\033[1;97m";
  90. $datdz = $do."[".$luc."●".$do."] ".$trang."=> ";
  91. date_default_timezone_set("Asia/Ho_Chi_Minh");
  92. system('clear');
  93. echo "\033[1;93m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n";
  94. echo "\033[1;93m┃ \033[1;93m┃\033[1;92m☞ YouTube: \033[0;34mDanh Võ \033[1;93m┃
  95. \033[1;93m┃ \033[1;31m█▀▄ ▄▀█ █▄ █ █▄█ \033[1;93m┃\033[1;92m☞ zalo:\033[1;36m 0929533616 \033[1;93m┃
  96. \033[0;93m┃ \033[1;97m█▄▀ █▀█ █ ▀█ █▀█ \033[1;93m|\033[1;92m☞ momo: \033[1;37m0336536030 \033[1;93m┃ \n\033[1;93m┃ ┃\033[1;92m☞ Facebook: \033[1;31m100069088879543 \033[1;93m┃ \n";
  97. echo "\033[1;93m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n";
  98. $_SESSION['fck'] = file_exists("TTC.txt");
  99. if ($_SESSION['fck'] == '1'){
  100. unlink("TTC.txt");
  101. }
  102. echo "LÊN TTC ĐẶT LÀM NIK CHẠY CHO ĐỠ LỖI\n";
  103. $_SESSION['check'] = file_exists("logttc.txt");
  104. if ($_SESSION['check'] =='1'){
  105. echo $white." ➻❥ ".$green."Bạn Đã Đăng Nhập$cyan Tương Tác Chéo$green Trước Đó. Bấm $yellow Enter $green Để Tiếp Tục, Bấm $red No $green Để Đăng Nhập Tài Khoản Mới ";
  106. $_SESSION['nhap'] = trim(fgets(STDIN));
  107. if ($_SESSION['nhap'] !='no' and $_SESSION['nhap'] != 'No' and $_SESSION['nhap'] !=''){
  108. echo $white." ➻❥ ".$red."Sai Định Dạng\n";
  109. exit;
  110. }
  111. if ($_SESSION['nhap'] =='no' or $_SESSION['nhap'] =='No'){
  112. $my = fopen("logttc.txt", "w+");
  113. echo "\e[1;95m┌─[\e[1;37m\e[1;42m Nhập Tài Khoản TTC\e[0m\e[1;95m]
  114. └──╼ \e[1;39mV\e[1;36mT\e[1;91mD : $vang ";
  115. $username =trim(fgets(STDIN));
  116. echo "\e[1;95m┌─[\e[1;37m\e[1;42m Nhập Mật Khẩu TTC\e[0m\e[1;95m]
  117. └──╼ \e[1;39mV\e[1;36mT\e[1;91mD : $vang ";
  118. $password =trim(fgets(STDIN));
  119. $arr = array("username"=> $username, "password"=> $password);
  120. fwrite($my,json_encode($arr));
  121. $my = file("logttc.txt");
  122. $bb = file_get_contents('logttc.txt');
  123. $cc =json_decode($bb);
  124. $_SESSION['username']= $cc->{"username"};
  125. $_SESSION['password']= $cc->{"password"};
  126. }
  127. if ($_SESSION['nhap'] == ''){
  128. $bb = file_get_contents("logttc.txt");
  129. $cc =json_decode($bb);
  130. $_SESSION['username']= $cc->{"username"};
  131. $_SESSION['password']= $cc->{"password"};
  132. }
  133. } else {
  134. $my = fopen("logttc.txt","w+");
  135. echo "\e[1;95m┌─[\e[1;37m\e[1;42m Nhập Tài Khoản TTC\e[0m\e[1;95m]
  136. └──╼ \e[1;39mV\e[1;36mT\e[1;91mF : $vang ";
  137. $_SESSION["username"]=trim(fgets(STDIN));
  138. echo "\e[1;95m┌─[\e[1;37m\e[1;42m Nhập Mật Khẩu TTC\e[0m\e[1;95m]
  139. └──╼ \e[1;39mV\e[1;36mT\e[1;91mD : $vang ";
  140. $_SESSION['password']=trim(fgets(STDIN));
  141. $arr = array("username"=> $_SESSION["username"], "password"=> $_SESSION['password']);
  142. fwrite($my,json_encode($arr));
  143. }
  144. $user = $_SESSION['username'];
  145. $pass = $_SESSION['password'];
  146. $source = getcookiettc($user,$pass,$useragent);
  147. $sou= strlen($source);
  148. if ($sou < 10 ){
  149. echo $white." ➻❥ ".$green."Đăng Nhập Thành Công\n";
  150. // get xu
  151. $url = "https://tuongtaccheo.com/home.php";
  152. $curl = curl_init();
  153. curl_setopt_array($curl, array(
  154. CURLOPT_PORT => "443",
  155. CURLOPT_URL => "$url",
  156. CURLOPT_RETURNTRANSFER => true,
  157. CURLOPT_ENCODING => "",
  158. CURLOPT_SSL_VERIFYPEER => true,
  159. CURLOPT_CUSTOMREQUEST => "GET",
  160. CURLOPT_COOKIEFILE => "TTC.txt"
  161. ));
  162. $data = curl_exec($curl);
  163. curl_close($curl);
  164. preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
  165. $xu = $sd["1"];
  166. }else{
  167. echo $white." ➻❥ ".$red."Sai Tài Khoản Hoặc Mật Khẩu TTC\n";
  168. exit;
  169. }
  170. @system('clear');
  171.  
  172. echo "\033[1;93m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n";
  173. echo "\033[1;93m┃ \033[1;93m┃\033[1;92m☞ YouTube: \033[0;34mDanh Võ \033[1;93m┃
  174. \033[1;93m┃ \033[1;31m█▀▄ ▄▀█ █▄ █ █▄█ \033[1;93m┃\033[1;92m☞ zalo:\033[1;36m 0929533616 \033[1;93m┃
  175. \033[0;93m┃ \033[1;97m█▄▀ █▀█ █ ▀█ █▀█ \033[1;93m|\033[1;92m☞ momo: \033[1;37m0336536030 \033[1;93m┃ \n\033[1;93m┃ ┃\033[1;92m☞ Facebook: \033[1;31m100069088879543 \033[1;93m┃ \n";
  176. echo "\033[1;93m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n";
  177. echo "LÊN TTC ĐẶT LÀM NIK CHẠY CHO ĐỠ LỖI\n";
  178. echo "\n";
  179. if ($chedo == 5 or $chedo == 7){
  180. $luong =1;
  181. }else {
  182. choose:
  183. echo "\n";
  184. echo "\e[1;95m┌─[\e[1;37m\e[1;42m Nhập Số Nick Muốn Chạy\e[0m\e[1;95m]
  185. └──╼ \e[1;39mV\e[1;36mT\e[1;91mD : $vang ";
  186. $luong=trim(fgets(STDIN));
  187. if ($luong<1 || $luong >20){
  188. echo $red."\033[1;37m~\033[1;31m Ít nhất là 1 và nhiều nhất là 20\n";
  189. GOTO choose;
  190. }
  191. }
  192. $c=1;$thu=1;
  193. $mangcookie =[];
  194. if ($chedo<7){
  195. for($b=1;$b<=$luong;$b++){
  196. echo "\e[1;95m┌─[\e[1;37m\e[1;42m Nhập Cookie Thứ $thu\e[0m\e[1;95m]
  197. └──╼ \e[1;39mV\e[1;36mT\e[1;91mD : $vang ";
  198. $cooki[$c]=trim(fgets(STDIN));
  199. $ch=curl_init();
  200. $cookie=$cooki[$c];
  201. $access = cookie($cookie,$useragent);
  202. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0])
  203. {
  204. array_push($mangcookie,$cookie);
  205. $c++;
  206. $thu++;
  207. }else{echo $white." ⛔ ".$red."Cookie die rồi, thử lại đi \n";$b--;}
  208. }
  209. }else{
  210. for($b=1;$b<=$luong;$b++){
  211. echo $white." + ".$green."Nhập Token FB Thứ".$thu.":$green ";
  212. $cooki[$c]=trim(fgets(STDIN));
  213. $ch=curl_init();
  214. $cookie=$cooki[$c];
  215. $access_token = $cookie;
  216. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  217. array_push($mangcookie,$cookie);
  218. $c++;
  219. $thu++;
  220. }else{
  221. echo $white." ⛔ ".$red."Token Die, Hãy Kiểm Tra Lại\n";$b--;}
  222. }
  223. }
  224. @system('clear');
  225. echo "\033[1;93m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n";
  226. echo "\033[1;93m┃ \033[1;93m┃\033[1;92m☞ YouTube: \033[0;34mDanh Võ \033[1;93m┃
  227. \033[1;93m┃ \033[1;31m█▀▄ ▄▀█ █▄ █ █▄█ \033[1;93m┃\033[1;92m☞ zalo:\033[1;36m 0929533616 \033[1;93m┃
  228. \033[0;93m┃ \033[1;97m█▄▀ █▀█ █ ▀█ █▀█ \033[1;93m|\033[1;92m☞ momo: \033[1;37m0336536030 \033[1;93m┃ \n\033[1;93m┃ ┃\033[1;92m☞ Facebook: \033[1;31m100069088879543 \033[1;93m┃ \n";
  229. echo "\033[1;93m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n";
  230. echo "\n";
  231. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản TTC: ".$vang.$user."\n";
  232. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Số Xu Hiện Tại: ".$vang.$xu."\n";
  233. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Đang Dùng: ".$vang.$luong."\033[1;32m Nick Chạy\n";
  234. $listnv = [];
  235. Job:
  236. echo $do."[".$luc."✔".$do."] ".$trang."=> ".$luc."Bật Chế Độ Follow$luc (y/n) : $vang";
  237. $chon1=trim(fgets(STDIN));
  238. if ($chon1 == 'y' or $chon1 == 'Y'){
  239. array_push($listnv,'sub');
  240. }
  241. echo $do."[".$luc."✔".$do."] ".$trang."=> ".$luc."Bật Chế Độ Like$luc (y/n) : $vang";
  242. $chon2=trim(fgets(STDIN));
  243. if ($chon2 == 'y' or $chon2 == 'Y'){
  244. array_push($listnv,'like');
  245. }
  246. echo $do."[".$luc."✔".$do."] ".$trang."=> ".$luc."Bật Chế Độ Comment$luc (y/n) : $vang";
  247. $chon3=trim(fgets(STDIN));
  248. if ($chon3 == 'y' or $chon3 == 'Y'){
  249. array_push($listnv,'cmt');
  250. }
  251. if ($chdo <7){
  252. echo $do."[".$luc."✔".$do."] ".$trang."=> ".$luc."Bật Chế Độ Page$luc (y/n) : $vang";
  253. $chon4=trim(fgets(STDIN));
  254. if ($chon4 == 'y' or $chon4 == 'Y'){
  255. array_push($listnv,'page');
  256. }
  257. echo $do."[".$luc."✔".$do."] ".$trang."=> ".$luc."Bật Chế Độ Cảm Xúc$luc (y/n) : $vang";
  258. $chon5=trim(fgets(STDIN));
  259. if ($chon5 == 'y' or $chon5 == 'Y'){
  260. array_push($listnv,'cx');
  261. }
  262. }
  263. if (count($listnv) == 0){exit($red."Bạn Chưa Chọn Nhiệm Vụ Nào\n");}
  264. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Thời Gian Làm Nhiệm Vụ (Ít Nhất 1 Giây) : $vang";
  265. $timedelay=trim(fgets(STDIN));
  266. if($timedelay < 1)
  267. {exit($red."Ít Nhất 1 Giây\n");}
  268. usleep(200000);
  269. if($luong==1){
  270. nhiemvu:
  271. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Chống Block Sau Mấy Nhiệm Vụ: $vang";
  272. } else{
  273. $dl = 150;
  274. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Đổi Cấu Hình Sau: $vang";
  275. }
  276. $doi=trim(fgets(STDIN));
  277. if ($doi<1){
  278. echo $red."\033[1;37m~\033[1;31m Lựa chọn không hợp lệ !\n";
  279. GOTO nhiemvu;
  280. }
  281. if($luong==1){
  282. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc." Dừng Thời Gian Bao Nhiêu Giây : $vang";
  283. $dl=trim(fgets(STDIN));
  284. }
  285. sleep(1);
  286. for($i=0; $i<=15; $i++){
  287. echo "\033[1;31m─ ";
  288. usleep(20000);
  289. echo "\033[1;37m─ ";
  290. usleep(20000);
  291. }
  292. echo "\n";
  293. $q=1;
  294. while ($o <= $_SESSION['i']){
  295. for($l=0;$l<count($mangcookie);$l++){
  296. $cookie = $mangcookie[$l];
  297. if ($chedo < 7){
  298. $access = cookie($cookie,$useragent);
  299. $access_token = explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
  300. }else{
  301. $access_token = $cookie;
  302. }
  303. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  304. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  305. $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'name'};
  306. }else{
  307. echo " \r";
  308. echo $white." ⛔ ".$red."Cookie Die\n";
  309. array_splice($mangcookie,$l,1);
  310. }
  311. $h = datnick($idfb,$useragent);
  312. if ($h == '1'){
  313. echo " \r";
  314. echo $white." ➻❥ ".$green."Cấu Hình $yellow".$tenfb."\n";
  315. $i=1;
  316. $max=0;
  317. while($i<10){
  318. $rand = $listnv[array_rand($listnv,1)];
  319. if ($rand == 'like'){
  320. $loai = 'like';
  321. $list = getlike($useragent);
  322. $check = count($list);
  323. if($check==0){
  324. echo " \r";
  325. echo $white." ➻❥ ".$red."Tạm Thời Hết Nhiệm Vụ Like\r";
  326. }
  327. foreach ($list as $id) {
  328. $id = $id[("idpost")];
  329. $g = like($access_token,$id,$cookie);
  330. if ($g->{'error'}->{'code'} == 368){
  331. echo " \r";
  332. echo $white." ➻❥ ".$red."Đã Bị Block\n";
  333. array_splice($mangcookie,$l,1);
  334. $m = 1;
  335. break;
  336. }
  337. if ($g->{'error'}->{'code'} == 190){
  338. echo " \r";
  339. echo $white." ➻❥ ".$red."Phiên Bản FB Hết Hạn\n";
  340. array_splice($mangcookie,$l,1);
  341. $m = 1;
  342. break;
  343. }
  344. $ck = nhantienlike($id,$useragent);
  345. $s= strlen($ck[("mess")]);
  346. if ($s > 2){
  347. $t = random_int(31,37);
  348. $mau = "\e[1;$t"."m";
  349. $max=$max+1;
  350. $stt=$stt+1;
  351. $xu = getxu();
  352. echo "\r";
  353. echo " \r";
  354. echo $yellow."[$stt]".$red." ● ".$cyan;
  355. echo date("H:i:s");
  356. echo $red." ●$mau LIKE$red ● $white";
  357. echo $id."$red ● $yellow";
  358. echo $xu." xu\n";
  359. loadtime($timedelay);
  360. if ($max==$doi){
  361. $max=0;
  362. break;
  363. }
  364. } // nhận tiền
  365. } // foreach
  366.  
  367. if($check!=0){
  368. if($max==0){
  369. if(count($mangcookie)==1){
  370. echo " \r";
  371. for($j = $dl;$j> 0;$j--){
  372. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  373. sleep(1);
  374. echo "\r";
  375. }
  376. }else{
  377. break;}
  378. }
  379. if($m==1){
  380. $m=0;
  381. break;
  382. }
  383. }
  384. }
  385. if ($rand == 'sub'){
  386. $loai = 'sub';
  387. $list = getnv($loai,$useragent);
  388. $check = count($list);
  389. if($check==0){
  390. echo " \r";
  391. echo $white." ➻❥ ".$red."Tạm Thời Hết Nhiệm Vụ Follow\r";
  392. }
  393. foreach ($list as $id) {
  394. $id = $id[("idpost")];
  395. $g = follow($access_token,$id,$cookie);
  396. if ($g->{'error'}->{'code'} == 368){
  397. echo " \r";
  398. echo $white." ➻❥ ".$red."Đã Bị Block\n";
  399. array_splice($mangcookie,$l,1);
  400. $m = 1;
  401. break;
  402. }
  403. if ($g->{'error'}->{'code'} == 190){
  404. echo " \r";
  405. echo $white." ➻❥ ".$red."Phiên Bản FB Hết Hạn\n";
  406. array_splice($mangcookie,$l,1);
  407. $m = 1;
  408. break;
  409. }
  410. $ck = hoanthanhsub($id);
  411. $s= strlen($ck[("mess")]);
  412. if ($s > 29){
  413. $t = random_int(31,37);
  414. $mau = "\e[1;$t"."m";
  415. $max=$max+1;
  416. $stt=$stt+1;
  417. $xu = getxu();
  418. echo "\r";
  419. echo " \r";
  420. echo $yellow."[$stt]".$red." ● ".$cyan;
  421. echo date("H:i:s");
  422. echo $red." ●$mau FOLLOW$red ● $white";
  423. echo $id."$red ● $yellow";
  424. echo $xu." xu\n";
  425. loadtime($timedelay);
  426. if ($max==$doi){
  427. $max=0;
  428. break;
  429. }
  430. } // nhận tiền
  431. } // foreach
  432.  
  433. if($check!=0){
  434. if($max==0){
  435. if(count($mangcookie)==1){
  436. echo " \r";
  437. for($j = $dl;$j> 0;$j--){
  438. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  439. sleep(1);
  440. echo "\r";
  441. }
  442. }else{
  443. break;}
  444. }
  445. if($m==1){
  446. $m=0;
  447. break;
  448. }
  449.  
  450. }
  451. }
  452. if ($rand == 'cmt'){
  453. $loai = 'cmt';
  454. $list = getnv($loai,$useragent);
  455. $check = count($list);
  456. if($check==0){
  457. echo " \r";
  458. echo $white." ➻❥ ".$red."Tạm Thời Hết Nhiệm Vụ Comment\r";
  459. }
  460. foreach ($list as $id => $key) {
  461. $uid = $key[("idpost")];
  462. $ms = json_decode($key[("nd")]);
  463. $msg = $ms[1];
  464. $g = cmt($access_token,$uid,$cookie,$msg);
  465. if ($g->{'error'}->{'code'} == 368){
  466. echo " \r";
  467. echo $white." ➻❥ ".$red."Đã Bị Block\n";
  468. array_splice($mangcookie,$l,1);
  469. $m = 1;
  470. break;
  471. }
  472. if ($g->{'error'}->{'code'} == 190){
  473. echo " \r";
  474. echo $white." ➻❥ ".$red."Phiên Bản FB Hết Hạn\n";
  475. array_splice($mangcookie,$l,1);
  476. $m = 1;
  477. break;
  478. }
  479. $ck = hoanthanhcmt($uid);
  480. $s= strlen($ck[("mess")]);
  481. if ($s > 29){
  482. $t = random_int(31,37);
  483. $mau = "\e[1;$t"."m";
  484. $max=$max+1;
  485. $stt=$stt+1;
  486. $xu = getxu();
  487. echo "\r";
  488. echo " \r";
  489. echo $yellow."[$stt]".$red." ● ".$cyan;
  490. echo date("H:i:s");
  491. echo $red." ●$mau CMT$red ● $white";
  492. echo $uid."$red ● $yellow";
  493. echo $xu." xu\n";
  494. loadtime($timedelay);
  495. if ($max==$doi){
  496. $max=0;
  497. break;
  498. }
  499. } // nhận tiền
  500. } // foreach
  501.  
  502. if($check!=0){
  503. if($max==0){
  504. if(count($mangcookie)==1){
  505. echo " \r";
  506. for($j = $dl;$j> 0;$j--){
  507. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  508. sleep(1);
  509. echo "\r";
  510. }
  511. }else{
  512. break;}
  513. }
  514. if($m==1){
  515. $m=0;
  516. break;
  517. }
  518. }
  519. }
  520. if ($rand == 'page'){
  521. $loai ='likepage';
  522. $list = getnv($loai,$useragent);
  523. $check = count($list);
  524. if($check==0){
  525. echo " \r";
  526. echo $white." ➻❥ ".$red."Tạm Thời Hết Nhiệm Vụ Like Page\r";
  527. }
  528. foreach ($list as $id) {
  529. $id = $id[("idpost")];
  530. $g = page($id,$cookie);
  531. if ($g->{'error'}->{'code'} == 190){
  532. echo " \r";
  533. echo $white." ➻❥ ".$red."Phiên Bản FB Hết Hạn\n";
  534. array_splice($mangcookie,$l,1);
  535. $m = 1;
  536. break;
  537. }
  538. $ck = nhantien($loai,$id,$useragent);
  539. $s= strlen($ck[("mess")]);
  540. if ($s > 2){
  541. $t = random_int(31,37);
  542. $mau = "\e[1;$t"."m";
  543. $max=$max+1;
  544. $stt=$stt+1;
  545. $xu = getxu();
  546. echo "\r";
  547. echo " \r";
  548. echo $yellow."[$stt]".$red." ● ".$cyan;
  549. echo date("H:i:s");
  550. echo $red." ●$mau PAGE$red ● $white";
  551. echo $id."$red ● $yellow";
  552. echo $xu." xu\n";
  553. loadtime($timedelay);
  554. if ($max==$doi){
  555. $max=0;
  556. break;
  557. }
  558. } // nhận tiền
  559. } // foreach
  560.  
  561. if($check!=0){
  562. if($max==0){
  563. if(count($mangcookie)==1){
  564. echo " \r";
  565. for($j = $dl;$j> 0;$j--){
  566. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  567. sleep(1);
  568. echo "\r";
  569. }
  570. }else{
  571. break;}
  572. }
  573. if($m==1){
  574. $m=0;
  575. break;
  576. }
  577. }
  578. }
  579. if ($rand == 'cx'){
  580. $loai = 'camxuc';
  581. $list = getnv($loai,$useragent);
  582. $check = count($list);
  583. if($check==0){
  584. echo " \r";
  585. echo $white." ➻❥ ".$red."Tạm Thời Hết Nhiệm Vụ Cảm Xúc\r";
  586. }
  587. foreach ($list as $id => $key) {
  588. $id = $key[("idpost")];
  589. $type = $key[("loaicx")];
  590. $g = camxuc($id,$type,$cookie);
  591. if ($g->{'error'}->{'code'} == 368){
  592. echo " \r";
  593. echo $white." ➻❥ ".$red."Đã Bị Block\n";
  594. array_splice($mangcookie,$l,1);
  595. $m = 1;
  596. break;
  597. }
  598. if ($g->{'error'}->{'code'} == 190){
  599. echo " \r";
  600. echo $white." ➻❥ ".$red."Phiên Bản FB Hết Hạn\n";
  601. array_splice($mangcookie,$l,1);
  602. $m = 1;
  603. break;
  604. }
  605. $ck = hoanthanh($type,$id);
  606. $xu2 = getxu();
  607.  
  608. if ($xu2 != $xu){
  609. $max=$max+1;
  610. $stt=$stt+1;
  611. $xu = $xu2;
  612. $t = random_int(31,37);
  613. $mau = "\e[1;$t"."m";
  614. echo "\r";
  615. echo " \r";
  616. echo $yellow."[$stt]".$red." ● ".$cyan;
  617. echo date("H:i:s");
  618. echo $red." ●$mau $type"."$red ● $white";
  619. echo $id."$red ● $yellow";
  620. echo $xu." xu\n";
  621. loadtime($timedelay);
  622. if ($max==$doi){
  623. $max=0;
  624. break;
  625. }
  626. } // nhận tiền
  627. } // foreach
  628.  
  629. if($check!=0){
  630. if($max==0){
  631. if(count($mangcookie)==1){
  632. echo " \r";
  633. for($j = $dl;$j> 0;$j--){
  634. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  635. sleep(1);
  636. echo "\r";
  637. }
  638. }else{
  639. break;}
  640. }
  641. if($m==1){
  642. $m=0;
  643. break;
  644. }
  645. }
  646. }
  647.  
  648. } //vòng while trong
  649.  
  650. } //vòng cấu hình
  651. } // vòng for
  652. if (count($mangcookie)==1 && empty($dl)){
  653. echo $white." ➻❥ ".$green."Dừng Nghỉ Ngơi Bao Nhiêu Giây: ";
  654. $dl=trim(fgets(STDIN));
  655. }
  656. if (count($mangcookie)==0){
  657. echo $white." ➻❥ ".$green."Tất Cả FB Đxa Hết Hạn\n";
  658. echo $white." ➻❥ ".$green."Nhập Số Acc Facebook: ";
  659. $luong=trim(fgets(STDIN));
  660. if ($luong<1){exit($red."Nhập Sai Định Dạng\n");}
  661. $c=1;$thu=1;
  662. if ($chdo<7){
  663. for($b=1;$b<=$luong;$b++){
  664. echo $white." ➻❥ ".$yellow."Nhập Cookie Thứ ".$thu.":$white ";
  665. $cooki[$c]=trim(fgets(STDIN));
  666. $ch=curl_init();
  667. $cookie=$cooki[$c];
  668. $access = cookie($cookie,$useragent);
  669. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0])
  670. {
  671. echo $white." ➻❥ ".$green."Cookie Hợp Lệ\n";
  672. array_push($mangcookie,$cookie);
  673. $c++;
  674. $thu++;
  675. }else{echo $white." ➻❥ ".$red."Cookie Không Hợp Lệ\n";$b--;}
  676. }
  677. }else{
  678. for($b=1;$b<=$luong;$b++){
  679. echo $white." ➻❥ ".$yellow."Nhập Token FB Thứ ".$thu.":$white ";
  680. $cooki[$c]=trim(fgets(STDIN));
  681. $ch=curl_init();
  682. $cookie=$cooki[$c];
  683. $access_token = $cookie;
  684. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  685. echo $white." ➻❥ ".$green."Token Hợp Lệ\n";
  686. array_push($mangcookie,$cookie);
  687. $c++;
  688. $thu++;
  689. }else{
  690. echo $white." ➻❥ ".$red."Token Không Hợp Lệ\n";$b--;
  691. }
  692. }
  693. }
  694. if (count($mangcookie)==1 && empty($dl)){
  695. echo $white." ➻❥ ".$green."Sau Bao Nhiêu Nhiệm Vụ Dừng Tránh Block ";
  696. $doi=trim(fgets(STDIN));
  697. echo $white." ➻❥ ".$green."Dừng Bao Nhiêu Giây: ";
  698. $dl=trim(fgets(STDIN));
  699. }
  700. } // die hết cookie
  701. } // vòng while
  702.  
  703.  
  704.  
  705. function cookie($cookie,$useragent){
  706. $ch = curl_init();
  707. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  708. $head[] = "Connection: keep-alive";
  709. $head[] = "Keep-Alive: 300";
  710. $head[] = "authority: m.facebook.com";
  711. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  712. $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";
  713. $head[] = "cache-control: max-age=0";
  714. $head[] = "upgrade-insecure-requests: 1";
  715. $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";
  716. $head[] = "sec-fetch-site: none";
  717. $head[] = "sec-fetch-mode: navigate";
  718. $head[] = "sec-fetch-user: ?1";
  719. $head[] = "sec-fetch-dest: document";
  720. curl_setopt($ch, CURLOPT_USERAGENT,$useragent );
  721. curl_setopt($ch, CURLOPT_ENCODING, '');
  722. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  723. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  724. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  725. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  726. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  727. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  728. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  729. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  730. $access = curl_exec($ch);
  731. curl_close($ch);
  732. return $access;
  733. }
  734. function follow($access_token,$id,$cookie){
  735. $ch=curl_init();
  736. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
  737. $head[] = "Connection: keep-alive";
  738. $head[] = "Keep-Alive: 300";
  739. $head[] = "authority: m.facebook.com";
  740. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  741. $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";
  742. $head[] = "cache-control: max-age=0";
  743. $head[] = "upgrade-insecure-requests: 1";
  744. $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";
  745. $head[] = "sec-fetch-site: none";
  746. $head[] = "sec-fetch-mode: navigate";
  747. $head[] = "sec-fetch-user: ?1";
  748. $head[] = "sec-fetch-dest: document";
  749. 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');
  750. curl_setopt($ch, CURLOPT_ENCODING, '');
  751. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  752. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  753. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  754. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  755. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  756. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  757. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  758. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  759. $data = array('access_token' => $access_token);
  760. curl_setopt($ch, CURLOPT_POST,count($data));
  761. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  762. $access = curl_exec($ch);
  763. curl_close($ch);
  764. return json_decode($access);
  765. }
  766. function like($access_token,$id,$cookie){
  767. $ch=curl_init();
  768. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  769. $head[] = "Connection: keep-alive";
  770. $head[] = "Keep-Alive: 300";
  771. $head[] = "authority: m.facebook.com";
  772. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  773. $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";
  774. $head[] = "cache-control: max-age=0";
  775. $head[] = "upgrade-insecure-requests: 1";
  776. $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";
  777. $head[] = "sec-fetch-site: none";
  778. $head[] = "sec-fetch-mode: navigate";
  779. $head[] = "sec-fetch-user: ?1";
  780. $head[] = "sec-fetch-dest: document";
  781. 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');
  782. curl_setopt($ch, CURLOPT_ENCODING, '');
  783. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  784. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  785. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  786. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  787. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  788. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  789. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  790. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  791. $data = array('access_token' => $access_token);
  792. curl_setopt($ch, CURLOPT_POST,count($data));
  793. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  794. $access = curl_exec($ch);
  795. curl_close($ch);
  796. return json_decode($access);
  797. }
  798. function cmt($access_token,$id,$cookie,$msg){
  799. $ch=curl_init();
  800. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
  801. $head[] = "Connection: keep-alive";
  802. $head[] = "Keep-Alive: 300";
  803. $head[] = "authority: m.facebook.com";
  804. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  805. $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";
  806. $head[] = "cache-control: max-age=0";
  807. $head[] = "upgrade-insecure-requests: 1";
  808. $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";
  809. $head[] = "sec-fetch-site:";
  810. $head[] = "sec-fetch-mode: navigate";
  811. $head[] = "sec-fetch-user: ?1";
  812. $head[] = "sec-fetch-dest: document";
  813. 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');
  814. curl_setopt($ch, CURLOPT_ENCODING, '');
  815. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  816. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  817. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  818. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  819. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  820. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  821. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  822. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  823. $data = array('message' => $msg,'access_token' => $access_token);
  824. curl_setopt($ch, CURLOPT_POST,count($data));
  825. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  826. $access = curl_exec($ch);
  827. curl_close($ch);
  828. return json_decode($access);
  829. }
  830. function page($id,$cookie){
  831. $ch = curl_init();
  832. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  833. $head[] = "Connection: keep-alive";
  834. $head[] = "Keep-Alive: 300";
  835. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  836. $head[] = "Accept-Language: en-us,en;q=0.5";
  837. curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  838. curl_setopt($ch, CURLOPT_ENCODING, '');
  839. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  840. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  841. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  842. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  843. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  844. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  845. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  846. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  847. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  848. :'));
  849. $page = curl_exec($ch);
  850. if (explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0]){
  851. $get = explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0];
  852. $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$id.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  853. curl_setopt($ch, CURLOPT_URL, $link);
  854. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  855. curl_exec($ch);
  856. }
  857. curl_close($ch);
  858.  
  859. }
  860. function camxuc($id,$type,$cookie){
  861. $ch = curl_init();
  862. if(strpos($id,'_')){
  863. $uid = explode('_',$id, 2);
  864. $id2 = 'story.php?story_fbid='.$uid[1].'&id='.$uid[0];
  865. }else{
  866. $id2 = $id;
  867. }
  868. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id2);
  869. $head[] = "Connection: keep-alive";
  870. $head[] = "Keep-Alive: 300";
  871. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  872. $head[] = "Accept-Language: en-us,en;q=0.5";
  873. curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  874. curl_setopt($ch, CURLOPT_ENCODING, '');
  875. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  876. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  877. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  878. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  879. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  880. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  881. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  882. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  883. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  884. :'));
  885. $page = curl_exec($ch);
  886. if ($id2 != $id && explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0]){
  887. $get = explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0];
  888. }else{
  889. $get = $id2;
  890. }
  891. $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$get;
  892. curl_setopt($ch, CURLOPT_URL, $link);
  893. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  894. $cx = curl_exec($ch);
  895. $haha = explode('<a href="',$cx);
  896. if ($type == 'LOVE'){
  897. $haha2 = explode('" style="display:block"',$haha[2])[0];
  898. }else if ($type == 'WOW'){
  899. $haha2 = explode('" style="display:block"',$haha[5])[0];
  900. }else if ($type == 'CARE'){
  901. $haha2 = explode('" style="display:block"',$haha[3])[0];
  902. }else if ($type == 'HAHA'){
  903. $haha2 = explode('" style="display:block"',$haha[4])[0];
  904. }else if ($type == 'SAD'){
  905. $haha2 = explode('" style="display:block"',$haha[6])[0];
  906. }else{
  907. $haha2 = explode('" style="display:block"',$haha[7])[0];
  908. }
  909. $link2 = html_entity_decode($haha2);
  910.  
  911. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  912. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  913. curl_exec($ch);
  914. curl_close($ch);
  915. }
  916. function loadtime($time){
  917. for ( $x = $time; $x--; $x ) {
  918. echo "\r\033[1;93m ┗(•°_°•)\033[1;91m ~> \033[1;92m L \033[1;91m |\033[1;93m $time\033[1;91m | ";
  919. usleep(150000);
  920.  
  921. echo "\r\033[1;91m ┗(•°_°•)\033[0;33m ~> \033[0;37m LO \033[0;31m |\033[0;33m $time\033[0;31m | ";
  922. usleep(150000);
  923. echo "\r\033[1;92m ┗(•°_°•)\033[0;33m ~> \033[0;37m LOA \033[0;31m |\033[0;33m $time\033[0;31m | ";
  924. usleep(150000);
  925. echo "\r\033[1;94m ┗(•°_°•)\033[0;33m ~> \033[0;37m LOAD \033[0;31m |\033[0;33m $time\033[0;31m | ";
  926. usleep(150000);
  927. echo "\r\033[1;95m ┗(•°_°•)\033[0;33m ~>\033[0;37m LOAD. \033[0;31m |\033[0;33m $time\033[0;31m | ";
  928. usleep(150000);
  929. echo "\r\033[1;95m ┗(•°_°•)\033[0;33m ~>\033[0;37m LOAD.. \033[0;31m |\033[0;33m $time\033[0;31m | ";
  930. usleep(150000);
  931. echo "\r\033[1;95m ┗(•°_°•)\033[0;33m ~>\033[0;37m LOAD...\033[0;31m |\033[0;33m $time\033[0;31m | ";
  932. usleep(100000);
  933. echo "\r \r";
  934. }}
  935.  
  936. function getcookiettc($user,$pass,$useragent){
  937. $ch=curl_init();
  938. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  939. curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/login.php');
  940. curl_setopt($ch, CURLOPT_COOKIEJAR, "TTC.txt");
  941. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  942. $login =array('username' => $user,'password' => $pass,'submit' => ' ĐĂNG NHẬP');
  943. curl_setopt($ch, CURLOPT_POST,count($login));
  944. curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
  945. curl_setopt($ch, CURLOPT_COOKIEFILE, "TTC.txt");
  946. $source=curl_exec($ch);
  947. curl_close($ch);
  948. if(strlen($source) < 10){
  949. $xu = file_get_contents("http://tttoriginal.tk/api/getxu.php?user=$user&pass=$pass");
  950. }
  951. return $source;
  952. }
  953. function datnick($idfb,$useragent){
  954. $dat=http_build_query(array('iddat[]'=> $idfb, 'loai'=>'fb'));
  955. $ch=curl_init();
  956. curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/cauhinh/datnick.php');
  957. $head[]='Host: tuongtaccheo.com';
  958. $head[]='content-length: '.strlen($dat);
  959. $head[]='accept: */*';
  960. $head[]='origin: https://tuongtaccheo.clm';
  961. $head[]='x-requested-with: XMLHttpRequest';
  962. $head[]='save-data: on';
  963. $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
  964. $head[]='referer: https://tuongtaccheo.com/cauhinh/index.php';
  965. $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,zh-CN;q=0.4.zh;q=0.3';
  966. $head[]='cookie: TawkConnectionTime=0';
  967. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  968. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  969. curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  970. curl_setopt($ch,CURLOPT_POST, 1);
  971. curl_setopt($ch,CURLOPT_POSTFIELDS,$dat);
  972. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
  973. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  974. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  975. curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
  976. $h = curl_exec($ch);
  977. curl_close($ch);
  978. return $h;
  979. }
  980. function getlike($useragent){
  981. $ch=curl_init();
  982. curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/getpost.php');
  983. $head[]='Host: tuongtaccheo.com';
  984. $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
  985. $head[]='x-requested-with: XMLHttpRequest';
  986. $head[]='referer: https://tuongtaccheo.com/kiemtien/';
  987. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  988. curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
  989. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  990. curl_setopt($ch,CURLOPT_POST,1);
  991. curl_setopt($ch,CURLOPT_HTTPGET, true);
  992. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
  993. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  994. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  995. curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
  996. return json_decode(curl_exec($ch),true);
  997. curl_close($ch);
  998. }
  999. function getnv($loai,$useragent){
  1000. $ch=curl_init();
  1001. curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/getpost.php');
  1002. $head[]='Host: tuongtaccheo.com';
  1003. $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
  1004. $head[]='x-requested-with: XMLHttpRequest';
  1005. $head[]='user-agent: Mozilla/5.0 (Linux; Android 5.1.1; SM-J320G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36';
  1006. $head[]='referer: https://tuongtaccheo.com/kiemtien/'.$loai.'cheo';
  1007. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  1008. curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
  1009. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  1010. curl_setopt($ch,CURLOPT_POST,1);
  1011. curl_setopt($ch,CURLOPT_HTTPGET, true);
  1012. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
  1013. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  1014. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  1015. curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
  1016. return json_decode(curl_exec($ch),true);
  1017. curl_close($ch);
  1018. }
  1019. function nhantienlike($id,$useragent){
  1020. $ch= curl_init();
  1021. $data= ('id=').$id;
  1022. curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/kiemtien/nhantien.php');
  1023. $head[]='Host: tuongtaccheo.com';
  1024. $head[]='content-length: '.strlen($data);
  1025. $head[]='x-requested-with: XMLHttpRequest';
  1026. $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
  1027. $head[]='origin: https://tuongtaccheo.com';
  1028. $head[]='referer: https://tuongtaccheo.com/kiemtien/';
  1029. $head[]='cookie: TawkConnectionTime=0';
  1030. curl_setopt($ch,CURLOPT_USERAGENT, $useragent);
  1031. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  1032. curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  1033. curl_setopt($ch,CURLOPT_POST, 1);
  1034. curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
  1035. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
  1036. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  1037. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  1038. curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
  1039. $xu= json_decode(curl_exec($ch), true);
  1040. curl_close($ch);
  1041. return $xu;
  1042. }
  1043. function nhantien($loai,$id,$useragent){
  1044. $ch= curl_init();
  1045. $data= ('id=').$id;
  1046. curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/nhantien.php');
  1047. $head[]='Host: tuongtaccheo.com';
  1048. $head[]='content-length: '.strlen($data);
  1049. $head[]='x-requested-with: XMLHttpRequest';
  1050. $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
  1051. $head[]='origin: https://tuongtaccheo.com';
  1052. $head[]='referer: https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/';
  1053. $head[]='cookie: TawkConnectionTime=0';
  1054. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  1055. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  1056. curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  1057. curl_setopt($ch,CURLOPT_POST, 1);
  1058. curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
  1059. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
  1060. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  1061. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  1062. curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
  1063. $xu= json_decode(curl_exec($ch), true);
  1064. curl_close($ch);
  1065. return $xu;
  1066. }
  1067. function hoanthanh($type,$id)
  1068. {
  1069. $url = "https://tuongtaccheo.com/kiemtien/camxuccheo/nhantien.php";
  1070. $data= 'id='.$id.'&loaicx='.$type;
  1071. $head = array(
  1072. "Host: tuongtaccheo.com",
  1073. "content-length: " . strlen($data),
  1074. "x-requested-with: XMLHttpRequest",
  1075. "user-agent: Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36",
  1076. "content-type: application/x-www-form-urlencoded; charset=UTF-8",
  1077. "origin: https://tuongtaccheo.com",
  1078. "referer: https://tuongtaccheo.com/kiemtien/camxuccheo/"
  1079. );
  1080. $ch = curl_init();
  1081. curl_setopt_array($ch, array(
  1082. CURLOPT_URL => $url,
  1083. CURLOPT_FOLLOWLOCATION => TRUE,
  1084. CURLOPT_RETURNTRANSFER => 1,
  1085. CURLOPT_POST => 1,
  1086. CURLOPT_POSTFIELDS => $data,
  1087. CURLOPT_SSL_VERIFYPEER => 0,
  1088. CURLOPT_CUSTOMREQUEST => "POST",
  1089. CURLOPT_COOKIEFILE => "TTC.txt",
  1090. CURLOPT_HTTPHEADER => $head,
  1091. CURLOPT_ENCODING => TRUE
  1092. ));
  1093. $a = json_decode(curl_exec($ch), true);
  1094. return $a;
  1095. }
  1096. function getxu(){
  1097. $url = "https://tuongtaccheo.com/home.php";
  1098. $curl = curl_init();
  1099. curl_setopt_array($curl, array(
  1100. CURLOPT_PORT => "443",
  1101. CURLOPT_URL => "$url",
  1102. CURLOPT_RETURNTRANSFER => true,
  1103. CURLOPT_ENCODING => "",
  1104. CURLOPT_SSL_VERIFYPEER => true,
  1105. CURLOPT_CUSTOMREQUEST => "GET",
  1106. CURLOPT_COOKIEFILE => "TTC.txt"
  1107. ));
  1108. $data = curl_exec($curl);
  1109. curl_close($curl);
  1110. preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
  1111. $xu = $sd["1"];
  1112. return $xu;
  1113. }
  1114. function hoanthanhcmt($id)
  1115. {
  1116. $url = "https://tuongtaccheo.com/kiemtien/cmtcheo/nhantien.php";
  1117. $data= ('id=').$id;
  1118. $head = array(
  1119. "Host: tuongtaccheo.com",
  1120. "content-length: " . strlen($data),
  1121. "x-requested-with: XMLHttpRequest",
  1122. "user-agent: Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36",
  1123. "content-type: application/x-www-form-urlencoded; charset=UTF-8",
  1124. "origin: https://tuongtaccheo.com",
  1125. "referer: https://tuongtaccheo.com/kiemtien/cmtcheo/"
  1126. );
  1127. $ch = curl_init();
  1128. curl_setopt_array($ch, array(
  1129. CURLOPT_URL => $url,
  1130. CURLOPT_FOLLOWLOCATION => TRUE,
  1131. CURLOPT_RETURNTRANSFER => 1,
  1132. CURLOPT_POST => 1,
  1133. CURLOPT_POSTFIELDS => $data,
  1134. CURLOPT_SSL_VERIFYPEER => 0,
  1135. CURLOPT_COOKIEFILE => "TTC.txt",
  1136. CURLOPT_HTTPHEADER => $head,
  1137. CURLOPT_ENCODING => TRUE
  1138. ));
  1139. $a = json_decode(curl_exec($ch), true);
  1140. return $a;
  1141. }
  1142. function hoanthanhsub($id)
  1143. {
  1144. $url = "https://tuongtaccheo.com/kiemtien/subcheo/nhantien.php";
  1145. $data= ('id=').$id;
  1146. $head = array(
  1147. "Host: tuongtaccheo.com",
  1148. "content-length: " . strlen($data),
  1149. "x-requested-with: XMLHttpRequest",
  1150. "user-agent: Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36",
  1151. "content-type: application/x-www-form-urlencoded; charset=UTF-8",
  1152. "origin: https://tuongtaccheo.com",
  1153. "referer: https://tuongtaccheo.com/kiemtien/cmtcheo/"
  1154. );
  1155. $ch = curl_init();
  1156. curl_setopt_array($ch, array(
  1157. CURLOPT_URL => $url,
  1158. CURLOPT_FOLLOWLOCATION => TRUE,
  1159. CURLOPT_RETURNTRANSFER => 1,
  1160. CURLOPT_POST => 1,
  1161. CURLOPT_POSTFIELDS => $data,
  1162. CURLOPT_SSL_VERIFYPEER => 0,
  1163. CURLOPT_COOKIEFILE => "TTC.txt",
  1164. CURLOPT_HTTPHEADER => $head,
  1165. CURLOPT_ENCODING => TRUE
  1166. ));
  1167. $a = json_decode(curl_exec($ch), true);
  1168. return $a;
  1169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement