· 4 years ago · Aug 03, 2021, 09:28 AM
1error_reporting(0);
2session_start();
3$ktfile = file_exists("TTC.txt");
4if ($ktfile == 1){
5 unlink('TTC.txt');
6}
7$ress = "\033[0;32m";
8$res = "\033[0;33m";
9$red = "\033[0;31m";
10$green = "\033[0;37m";
11$yellow = "\033[0;33m";
12$white = "\033[0;33m";
13$xnhac = "\033[1;96m";
14$den = "\033[1;90m";
15$do = "\033[1;91m";
16$luc = "\033[1;92m";
17$vang = "\033[1;93m";
18$xduong = "\033[1;94m";
19$hong = "\033[1;95m";
20$trang = "\033[1;97m";
21$do="\033[1;91m";
22$maufulldo= "\e[1;47;31m";
23$res="\033[0m";
24$red="\e[1;31m";
25$pink="\e[1;35m";
26$green="\e[1;32m";
27$yellow="\e[1;33m";
28$y2="\033[0;33m";
29$white= "\033[0;37m";
30$cyan= "\e[1;36m";
31$blue="\e[1;34m";
32$ngreen="\033[42m";
33$ngblack="\033[40m";
34$nen="\033[1;47;1;34m";
35date_default_timezone_set("Asia/Ho_Chi_Minh");
36$useragent="Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36";
37$key = [];
38$x = date("d");
39$y = date("m");
40$gt = 2;
41$key=($x+$y)*($x+$y)+3940*$x*$gt+$x*$y;
42//info
43$info = [];
44$info='TTT Original';
45//day
46$day = [];
47$day= date('d-m-y');
48//config
49$today = date("d-m-Y");
50$d = date("d-m");
51$_check = file_exists("keyttcck1$d.txt");
52$checkvip = file_exists("keyvip.txt");
53@system('clear');
54banner();
55echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
56echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
57echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
58for($v=0;$v<= 26;$v++){
59 echo "\033[1;37m▂";
60 echo "\033[1;36m▂";
61}
62echo "\033[1;37m▂";
63echo"\n\n";
64echo $white." ➻❥ ".$red."Có Thể Bạn Chưa Biết:$trang Không Cần Phải Xóa File Key Hôm Qua, Tool Sẽ Tự Động Xóa Nếu Bạn Sử Dụng Liên Tục\n";
65echo $white." ➻❥ ".$green."API Free 1:$pink http://olalink.io/key-ttcck1\n";
66echo $white." ➻❥ ".$green."API 2:$yellow http://olalink.co/key-dp-ttcck1$green (Dự Phòng)\n";
67if ($checkvip !='1'){
68
69
70if ($_check !='1'){
71$gh = date("d-m", strtotime("yesterday"));
72$yt = "keyttcck1$gh.txt";
73$_check2 = file_exists("$yt");
74if($_check2==1){
75 unlink("$yt");
76}
77echo $white." ➻❥ ".$green."Nhập API Key: $white";
78$keyy=trim(fgets(STDIN));
79}
80if ($_check =='1'){
81 $keyy = file_get_contents("keyttcck1$d.txt");
82 $vt = 1;
83 echo $white." ➻❥ ".$green."Đang Lấy Key...";
84 sleep(2);
85 echo "\r \r";
86}
87if($keyy == ''){
88 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
89 exit;
90}
91 if($keyy == $key)
92 {
93 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
94 $mf = fopen("keyttcck1$d.txt", "w");
95 fwrite($mf, $keyy);
96 fclose($mf);
97 }
98 else
99 {
100 $in = file_get_contents("http://keytoolvip.ml/check_info.php?key=$keyy");
101 if ($in==''){
102 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
103 exit;
104 }else{
105 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
106 $day = explode("|", $in)[2];
107 $today = date("d-m-Y");
108 if (strtotime($today) > strtotime($day)){
109 echo $white." ➻❥ ".$red."Key Đã Hết Hạn\n";
110 exit;
111 }
112 $inn = explode("|", $in)[0];
113 $info = explode("|", $in)[1];
114 $mf = fopen("keyvip.txt", "w");
115 fwrite($mf, $inn);
116 fclose($mf);
117 }
118 }
119}else{
120 $keyy = file_get_contents("keyvip.txt");
121 echo $white." ➻❥ ".$green."Đang Lấy Key...";
122 sleep(2);
123 echo "\r \r";
124 $in = file_get_contents("http://keytoolvip.ml/check_info.php?key=$keyy");
125 if ($in==''){
126 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
127 exit;
128 }else{
129 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
130 $day = explode("|", $in)[2];
131 $today = date("d-m-Y");
132 if (strtotime($today) > strtotime($day)){
133 echo $white." ➻❥ ".$red."Key Đã Hết Hạn\n";
134 exit;
135 }
136 $inn = explode("|", $in)[0];
137 $info = explode("|", $in)[1];
138 }
139}
140usleep(500000);
141@system('clear');
142banner();
143$dem = 0;
144echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
145echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
146echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
147for($v=0;$v<= 26;$v++){
148 echo "\033[1;37m▂";
149 echo "\033[1;36m▂";
150}
151echo "\033[1;37m▂";
152echo"\n\n";
153echo $white." ➻❥ ".$green."Tài khoản: $yellow".$info."$green - Hạn Sử Dụng: $yellow ".$day."\n\n";
154for($v=0;$v<= 26;$v++){
155 echo "\033[1;37m▂";
156 echo "\033[1;36m▂";
157}
158echo "\033[1;37m▂";
159echo"\n\n";
160$_SESSION['fck'] = file_exists("TTC.txt");
161if ($_SESSION['fck'] == '1'){
162 unlink("TTC.txt");
163}
164$_SESSION['check'] = file_exists("logttc.txt");
165if ($_SESSION['check'] =='1'){
166echo $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 ";
167$_SESSION['nhap'] = trim(fgets(STDIN));
168if ($_SESSION['nhap'] !='no' and $_SESSION['nhap'] != 'No' and $_SESSION['nhap'] !=''){
169echo $white." ➻❥ ".$red."Sai Định Dạng\n";
170exit;
171}
172if ($_SESSION['nhap'] =='no' or $_SESSION['nhap'] =='No'){
173$my = fopen("logttc.txt", "w+");
174echo $white." ➻❥ ".$green."Nhập Tài Khoản TTC ";
175$username =trim(fgets(STDIN));
176echo $white." ➻❥ ".$green."Nhập Mật Khẩu TTC ";
177$password =trim(fgets(STDIN));
178$arr = array("username"=> $username, "password"=> $password);
179fwrite($my,json_encode($arr));
180 $my = file("logttc.txt");
181$bb = file_get_contents('logttc.txt');
182$cc =json_decode($bb);
183$_SESSION['username']= $cc->{"username"};
184$_SESSION['password']= $cc->{"password"};
185}
186if ($_SESSION['nhap'] == ''){
187$bb = file_get_contents("logttc.txt");
188$cc =json_decode($bb);
189$_SESSION['username']= $cc->{"username"};
190$_SESSION['password']= $cc->{"password"};
191}
192} else {
193$my = fopen("logttc.txt","w+");
194echo $white." ➻❥ ".$green."Nhập Tài Khoản TTC ";
195$_SESSION["username"]=trim(fgets(STDIN));
196echo $white." ➻❥ ".$green."Nhập Mật Khẩu TTC ";
197$_SESSION['password']=trim(fgets(STDIN));
198$arr = array("username"=> $_SESSION["username"], "password"=> $_SESSION['password']);
199fwrite($my,json_encode($arr));
200}
201$user = $_SESSION['username'];
202$pass = $_SESSION['password'];
203$source = getcookiettc($user,$pass,$useragent);
204$sou= strlen($source);
205if ($sou < 10 ){
206 echo $white." ➻❥ ".$green."Đăng Nhập Thành Công\n";
207 // get xu
208 $url = "https://tuongtaccheo.com/home.php";
209 $curl = curl_init();
210 curl_setopt_array($curl, array(
211 CURLOPT_PORT => "443",
212 CURLOPT_URL => "$url",
213 CURLOPT_RETURNTRANSFER => true,
214 CURLOPT_ENCODING => "",
215 CURLOPT_SSL_VERIFYPEER => true,
216 CURLOPT_CUSTOMREQUEST => "GET",
217 CURLOPT_COOKIEFILE => "TTC.txt"
218 ));
219 $data = curl_exec($curl);
220 curl_close($curl);
221 preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
222 $xuhientai = $sd["1"];
223}else{
224 echo $white." ➻❥ ".$red."Sai Tài Khoản Hoặc Mật Khẩu TTC\n";
225 exit;
226}
227usleep(100000);
228do {
229@system('clear');
230banner();
231echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
232echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
233echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
234for($v=0;$v<= 26;$v++){
235 echo "\033[1;37m▂";
236 echo "\033[1;36m▂";
237}
238echo "\033[1;37m▂";
239echo"\n\n";
240//cookie
241$khocookie = [];
242
243echo $white." ➻❥ ".$green."Nhập Cookie Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
244for($a = 1; $a < 999999;$a++){
245echo $white." ➻❥ ".$green."Nhập Cookie Thứ $a: $vang";
246$nhapck = (string)trim(fgets(STDIN));
247if($nhapck == ''){break;}
248
249array_push($khocookie,$nhapck);
250}
251
252$demcki=count($khocookie);
253
254echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Cookie Facebook\n";
255sleep(1);
256} while (count($khocookie)==0);
257
258//$thongtin
259
260system('clear');
261banner();
262echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
263echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
264echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
265for($v=0;$v<= 26;$v++){
266 echo "\033[1;37m▂";
267 echo "\033[1;36m▂";
268}
269echo "\033[1;37m▂";
270echo"\n\n";
271echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."1".$do."]".$luc." Để Chọn Nhiệm Vụ Like\n";
272echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."2".$do."]".$luc." Để Chọn Nhiệm Vụ Follow\n";
273
274echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."3".$do."]".$luc." Để Chọn Nhiệm Vụ Comment\n";
275
276echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."4".$do."]".$luc." Để Chọn Nhiệm Vụ Share\n";
277echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."5".$do."]".$luc." Để Chọn Nhiệm Vụ Cảm Xúc\n";
278echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."6".$do."]".$luc." Để Chọn Nhiệm Vụ Cảm Xúc CMT\n";
279echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."7".$do."]".$luc." Để Chọn Nhiệm Vụ Like Page\n";
280echo $white." ➻❥ ".$green."Muốn Chọn Random Thì Ghép Số Lại (Ex: 1+2)\n";
281echo $white." ➻❥ ".$green."Vui Lòng Chọn Nhiệm Vụ: $vang";
282$nhiemvu = trim(fgets(STDIN));
283echo $white." ➻❥ ".$green."Nhập Thời Gian Min: $vang";
284$thoigianmin = trim(fgets(STDIN));
285echo $white." ➻❥ ".$green."Nhập Thời Gian Max: $vang";
286$thoigianmax = trim(fgets(STDIN));
287echo $white." ➻❥ ".$green."Sau Bao Nhiêu Nhiệm Vụ Thì Dừng Chống Block: $vang";
288$xxxxx = trim(fgets(STDIN));
289echo $white." ➻❥ ".$green."Sau ".$vang.$xxxxx.$luc." Nhiệm Vụ Nghỉ Ngơi Bao Nhiêu Giây: $vang";
290$delaybl = trim(fgets(STDIN));
291echo $white." ➻❥ ".$green."Chuyển Nick Sau Bao Nhiêu Nhiệm Vụ: $vang";
292$doinick = trim(fgets(STDIN));
293echo $white." ➻❥ ".$green."Chạy Bao Nhiêu Nhiệm Vụ Rồi Dừng Tool: $vang";
294$dungtool = trim(fgets(STDIN));
295sleep(1);
296system('clear');
297banner();
298echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
299echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
300echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
301for($v=0;$v<= 26;$v++){
302 echo "\033[1;37m▂";
303 echo "\033[1;36m▂";
304}
305echo "\033[1;37m▂";
306echo"\n\n";
307echo $white." ➻❥ ".$green."Tài Khoản: ".$vang.$user."\n";
308echo $white." ➻❥ ".$green."Xu Hiện Tại: ".$pink.$xuhientai."\n";
309for($v=0;$v<= 26;$v++){
310 echo "\033[1;37m▂";
311 echo "\033[1;36m▂";
312}
313echo "\033[1;37m▂";
314echo"\n\n";
315while(true){
316 if(count($khocookie) == 0){
317
318 echo $white." ➻❥ ".$green."Nhập Cookie Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
319for($a = 1; $a < 999999;$a++){
320echo $white." ➻❥ ".$green."Nhập Cookie Thứ $a: $vang";
321$nhapck = (string)trim(fgets(STDIN));
322if($nhapck == ''){break;}
323array_push($khocookie,$nhapck);
324 }
325$demcki=count($khocookie);
326echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Cookie Facebook\n";
327 }
328 $themtk = 0;
329 for($xz=0;$xz<count($khocookie);$xz++){
330 if ( $themck == 1){ break; }
331 $cookie = $khocookie[$xz];
332 $access_token = gettoken($cookie,$useragent);
333if (strpos($access_token, 'EAAAA') !== 0) {
334 echo "\r";
335 echo " \r";
336 echo $white." ➻❥ ".$red."Cookie Die\n";
337 array_splice($khocookie,$xz,1);
338 continue;
339}
340$tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
341$idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
342$h = datnick($idfb,$useragent);
343if ($h == '1'){
344 echo $white." ➻❥ ".$green."Đang Cấu Hình $vang".$tenfb."".$res."\n";
345} else {
346 echo $white." ➻❥ ".$red."Cấu Hình Thất Bại Có Thể Do Bạn Chưa Thêm $tenfb Vào Cấu Hình\n";
347 exit;
348}
349$spam = 0;
350$xu = $xuhientai;
351while (true) {
352 if ($spam == 1) {
353 break;
354 }
355 //listlike
356 if (strpos($nhiemvu, '1') !== false) {
357 for ($i = 0; $i < 5; $i++) {
358 $listlike = getlike($useragent);
359 if (count($listlike) > 0) {
360 break;
361 }}
362 if (count($listlike) == 0) {
363 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like\r";
364 }
365
366 }
367 //listfollow
368 if (strpos($nhiemvu, '2') !== false) {
369 for ($i = 1; $i < 5; $i++) {
370 $listsub = getnv('sub',$useragent);
371 if (count($listsub) > 0) {
372 break;
373 }
374 }
375 if (count($listsub) == 0) {
376 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Follow\r";
377 }
378 }
379
380 //listcmt
381 if (strpos($nhiemvu, '3') !== false) {
382 for ($i = 1; $i < 5; $i++) {
383 $listcmt = getnv('cmt',$useragent);
384 if (count($listcmt) > 0) {
385 break;
386 }}
387 if (count($listcmt) == 0) {
388 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Comment\r";
389 }
390 }
391 //share
392 if (strpos($nhiemvu, '4') !== false) {
393 for ($i = 1; $i < 5; $i++) {
394 $listshare = getnv('share',$useragent);
395 if (count($listshare) > 0) {
396 break;
397 }}
398 if (count($listshare) == 0) {
399 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Share\r";
400 }
401 }
402 //cx
403 if (strpos($nhiemvu, '5') !== false) {
404 for ($i = 1; $i < 5; $i++) {
405 $listcx = getnv('camxuc',$useragent);
406 if (count($listcx) > 0) {
407 break;
408 }}
409 if (count($listcx) == 0) {
410 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Cảm Xúc\r";
411 }
412 }
413 //cxcmt
414 if (strpos($nhiemvu, '6') !== false) {
415 for ($i = 1; $i < 5; $i++) {
416 $listlikecmt = getnvcxcmt($useragent);
417 if (count($listlikecmt) > 0) {
418 break;
419 }}
420 if (count($listlikecmt) == 0) {
421 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like Cmt\r";
422 }
423 }
424 //page
425 if (strpos($nhiemvu, '7') !== false) {
426 for ($i = 1; $i < 5; $i++) {
427 $listpage = getnv('likepage',$useragent);
428 if (count($listpage) > 0) {
429 break;
430 }}
431 if (count($listpage) == 0) {
432 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like Page\r";
433 }
434
435 }
436 for ($lap = 0; $lap < 20; $lap++) {
437 // like
438
439 if ($listlike != NULL) {
440 $idlike = $listlike[$lap]["idpost"];
441 if ($idlike != '') {
442 $g = like($access_token, $idlike, $cookie);
443if ($dem % 25 == 0){
444 $xu = getxu();
445}
446 if ($g -> {'error'} -> {'code'} == 190) {
447 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
448 echo "\r";
449 echo " \r";
450 echo $white." ➻❥ ".$red."Cookie Die\n";
451 array_splice($khocookie,$xz,1);
452 $spam = 1; break;
453 }
454 }
455 if ($g -> {'error'} -> {'code'} == 368) {
456echo "\r";
457echo " \r";
458echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
459sleep(15);
460 $tai = like($access_token,'10103832396388711', $cookie);
461 if ($tai -> {'error'} -> {'code'} == 368) {
462 echo "\r";
463 echo " \r";
464 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
465 echo "\n";
466 array_splice($khocookie,$xz,1);
467 $spam = 1;
468 break;
469 }}
470 $nhanlike = nhantienlike($idlike,$useragent);
471 $s= $nhanlike[("mess")];
472 if (strpos($s, 'Thành công') !== false) {
473 $xu = $xu+300;
474 $xujob = 300;
475 $dem++;
476
477 hoanthanh($dem, ' LIKE ', $idlike, $xujob, $xu);
478 if ( $dem >= $dungtool ){
479 $dungtool = 999999;
480 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
481 exit;
482 }
483 if($dem % $doinick == 0){
484 if (count($khocookie)>1){
485 $spam = 1; break;
486 }
487 }
488 if($dem % $xxxxx == 0){
489 delay2($delaybl);
490 }
491
492 $delay = rand($thoigianmin, $thoigianmax);
493 delay($delay);
494 }
495 }}
496 //follow
497 if ($listsub != NULL) {
498 $idsub = $listsub[$lap]["idpost"];
499 if ($idsub != '') {
500 $g = follow($access_token, $idsub, $cookie);
501if ($dem % 25 == 0){
502 $xu = getxu();
503}
504if ($g -> {'error'} -> {'code'} == 190) {
505 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
506 echo "\r";
507 echo " \r";
508 echo $white." ➻❥ ".$red."Cookie Die\n";
509 array_splice($khocookie,$xz,1);
510 $spam = 1; break;
511 }
512 }
513 if ($g -> {'error'} -> {'code'} == 368) {
514echo "\r";
515echo " \r";
516echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
517sleep(15);
518 $tai = follow($access_token,'4', $cookie);
519 if ($tai -> {'error'} -> {'code'} == 368) {
520 echo "\r";
521 echo " \r";
522 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
523 echo "\n";
524 array_splice($khocookie,$xz,1);
525 $spam = 1;
526 break;
527 }}
528 $nhansub = traluong('sub',$idsub);
529 $s= $nhansub[("mess")];
530 if (strpos($s, 'Thành công') !== false) {
531 $xu = $xu+600;
532 $xujob = 600;
533 $dem++;
534 hoanthanh($dem, 'FOLLOW', $idsub, $xujob, $xu);
535 if ( $dem >= $dungtool ){
536
537 $dungtool = 999999;
538 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
539 exit;
540 }
541 if($dem % $doinick == 0){
542 if (count($khocookie)>1){
543 $spam = 1; break;
544 }
545 }
546 if($dem % $xxxxx == 0){
547 delay2($delaybl);
548 }
549
550 $delay = rand($thoigianmin, $thoigianmax);
551 delay($delay);
552 }
553 }}
554
555 //share
556 if ($listshare != NULL) {
557 $id = $listshare[$lap]["idpost"];
558 if ($id != '') {
559 $g = share($access_token, $id);
560if ($dem % 25 == 0){
561 $xu = getxu();
562}
563 if ($g -> {'error'} -> {'code'} == 190) {
564 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
565 echo "\r";
566 echo " \r";
567 echo $white." ➻❥ ".$red."Token Die\n";
568 array_splice($khocookie,$xz,1);
569 $spam = 1; break;
570 }
571 }
572 if ($g -> {'error'} -> {'code'} == 368) {
573echo "\r";
574echo " \r";
575echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
576sleep(15);
577 $tai = share($access_token,'10103832396388711');
578 if ($tai -> {'error'} -> {'code'} == 368) {
579 echo "\r";
580 echo " \r";
581 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
582 echo "\n";
583 array_splice($khocookie,$xz,1);
584 $spam = 1;
585 break;
586 }}
587 $nhanshare = traluong('share',$id);
588 $s= $nhanshare[("mess")];
589 if (strpos($s, 'Thành công') !== false) {
590 $xu = $xu+600;
591 $xujob = 600;
592 $dem++;
593 hoanthanh($dem, 'SHARE', $id, $xujob, $xu);
594 if ( $dem >= $dungtool ){
595 $dungtool = 999999;
596 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
597 exit;
598 }
599 if($dem % $doinick == 0){
600 if (count($khocookie)>1){
601 $spam = 1; break;
602 }
603 }
604 if($dem % $xxxxx == 0){
605 delay2($delaybl);
606 }
607 $delay = rand($thoigianmin, $thoigianmax);
608 delay($delay);
609 }
610 }}
611 //cảm xúc
612 if ($listcx != NULL) {
613 $idcx = $listcx[$lap]["idpost"];
614 $type = $listcx[$lap]["loaicx"];
615 if ($idcx != '') {
616 $g = camxuc($idcx, $type, $cookie);
617 if ($dem % 25 == 0){
618 $xu = getxu();
619}
620 if ($g -> {'error'} -> {'code'} == 190) {
621 echo "\r";
622 echo " \r";
623 echo $white." ➻❥ ".$red."Cookie Die\n";
624 array_splice($khocookie,$xz,1);
625 $spam = 1; break;
626 }
627 if ($g -> {'error'} -> {'code'} == 368) {
628 echo "\r";
629 echo " \r";
630 echo $white." ➻❥ ".$red."\033[1;91m".$g-> {'error'}-> {'message'};
631 echo "\n";
632 array_splice($khocookie,$xz,1);
633 $spam = 1; break;
634 }
635
636 $nhancx = traluongcx($type,$idcx);
637 $s= $nhancx[("mess")];
638 if (strpos($s, 'Thành công') !== false) {
639 $xu = $xu+400;
640 $xujob = 400;
641 $dem++;
642
643 hoanthanh($dem, $type, $idcx, $xujob, $xu);
644 if ( $dem >= $dungtool ){
645 $dungtool = 999999;
646 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
647 exit;
648 }
649 if($dem % $doinick == 0){
650 if (count($khocookie)>1){
651 $spam = 1; break;
652 }
653 }
654 if($dem % $xxxxx == 0){
655 delay($delaybl);
656 }
657
658 $delay = rand($thoigianmin, $thoigianmax);
659 delay($delay);
660 }
661 }}
662
663 //likecmt
664 if ($listlikecmt != NULL) {
665 $idlikecmt = $listlikecmt[$lap]["idpost"];
666 $type = $listlikecmt[$lap]["loaicx"];
667 if ($idlikecmt != '') {
668 if ($type == 'LIKE'){
669 like($access_token, $idlikecmt, $cookie);
670 }else{
671 camxuc($idlikecmt, $type, $cookie);
672 }
673if ($dem % 25 == 0){
674 $xu = getxu();
675}
676 $nhanlcmt = traluonglikecmt($type, $idlikecmt);
677 $s= $nhanlcmt[("mess")];
678 if (strpos($s, 'Thành công') !== false) {
679 $xu = $xu+600;
680 $xujob = 600;
681 $dem++;
682 hoanthanh($dem, $type.'CMT', $idlikecmt, $xujob, $xu);
683 if ( $dem >= $dungtool ){
684 $dungtool = 999999;
685 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
686 exit;
687 }
688 if($dem % $doinick == 0){
689 if (count($khocookie)>1){
690 $spam = 1; break;
691 }
692 }
693 if($dem % $xxxxx == 0){
694 delay($delaybl);
695 }
696
697 $delay = rand($thoigianmin, $thoigianmax);
698 delay($delay);
699 }
700 }
701 }
702
703 //page
704 if ($listpage != NULL) {
705 $idpage = $listpage[$lap]["idpost"];
706 if ($idpage != '') {
707 $g = page($idpage, $cookie);
708if ($dem % 25 == 0){
709 $xu = getxu();
710}
711 if ($g -> {'error'} -> {'code'} == 190) {
712 echo "\r";
713 echo " \r";
714 echo $white." ➻❥ ".$red."Cookie Die\n";
715 array_splice($khocookie,$xz,1);
716 $spam = 1; break;
717 }
718 if ($g -> {'error'} -> {'code'} == 368) {
719 echo "\r";
720 echo " \r";
721 echo $white." ➻❥ ".$red."\033[1;91m".$g-> {'error'}-> {'message'};
722 echo "\n";
723 array_splice($khocookie,$xz,1);
724 $spam = 1; break;
725 }
726
727 $nhanpage = traluong('likepage',$idpage);
728 $s= $nhanpage[("mess")];
729 if (strpos($s, 'Thành công') !== false) {
730 $xu = $xu+700;
731 $xujob = 700;
732 $dem++;
733 hoanthanh($dem, ' PAGE ', $idpage, $xujob, $xu);
734 if ( $dem >= $dungtool ){
735 $dungtool = 999999;
736 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
737 exit;
738 }
739 if($dem % $doinick == 0){
740 if (count($khocookie)>1){
741 $spam = 1; break;
742 }
743 }
744 if($dem % $xxxxx == 0){
745 delay($delaybl);
746 }
747
748 $delay = rand($thoigianmin, $thoigianmax);
749 delay($delay);
750 }
751 }
752 }
753 //cmt
754 if ($listcmt != NULL) {
755 $idcmt = $listcmt[$lap]["idpost"];
756 $ms = json_decode($listcmt[$lap]["nd"]);
757 $msg = $ms[0];
758 if ($idcmt != '') {
759 $g = cmt($access_token, $idcmt, $cookie, $msg);
760if ($dem % 25 == 0){
761 $xu = getxu();
762}
763 if ($g -> {'error'} -> {'code'} == 190) {
764 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
765 echo "\r";
766 echo " \r";
767 echo $white." ➻❥ ".$red."Token Die\n";
768 array_splice($khocookie,$xz,1);
769 $spam = 1; break;
770 }
771 }
772 if ($g -> {'error'} -> {'code'} == 368) {
773echo "\r";
774echo " \r";
775echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
776sleep(15);
777 $tai = cmt($access_token,'10103832396388711', $cookie,'ttt original');
778 if ($tai -> {'error'} -> {'code'} == 368) {
779 echo "\r";
780 echo " \r";
781 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
782 echo "\n";
783 array_splice($khocookie,$xz,1);
784 $spam = 1;
785 break;
786 }}
787 $nhancmt = traluong('cmt',$idcmt);
788 $s= $nhancmt[("mess")];
789 if (strpos($s, 'Thành công') !== false) {
790 $xu = $xu+600;
791 $xujob = 600;
792 $dem++;
793 hoanthanh($dem, ' CMT ', $idcmt, $xujob, $xu);
794 if ( $dem >= $dungtool ){
795 $dungtool = 999999;
796 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
797 exit;
798 }
799 if($dem % $doinick == 0){
800 if (count($khocookie)>1){
801 $spam = 1; break;
802 }
803 }
804 if($dem % $xxxxx == 0){
805 delay2($delaybl);
806 }
807
808 $delay = rand($thoigianmin, $thoigianmax);
809 delay($delay);
810 }
811 }}
812
813
814
815 }
816}}}
817
818function follow($access_token, $idtest, $cookie) {
819 $ch = curl_init();
820 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idtest.'/subscribers');
821 $head[] = "Connection: keep-alive";
822 $head[] = "Keep-Alive: 300";
823 $head[] = "authority: m.facebook.com";
824 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
825 $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";
826 $head[] = "cache-control: max-age=0";
827 $head[] = "upgrade-insecure-requests: 1";
828 $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";
829 $head[] = "sec-fetch-site: none";
830 $head[] = "sec-fetch-mode: navigate";
831 $head[] = "sec-fetch-user: ?1";
832 $head[] = "sec-fetch-dest: document";
833 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');
834 curl_setopt($ch, CURLOPT_ENCODING, '');
835 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
836 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
837 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
838 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
839 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
840 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
841 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
842 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
843 $data = array('access_token' => $access_token);
844 curl_setopt($ch, CURLOPT_POST, count($data));
845 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
846 $access = curl_exec($ch);
847 curl_close($ch);
848 return json_decode($access);
849}
850
851
852function share($access_token,$id) {
853 $ch=curl_init();
854curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
855curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v2.0/me/feed');
856curl_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');
857$data = array(
858'privacy' => '{"value":"EVERYONE"}',
859'message' => '',
860'link' => 'https://mbasic.facebook.com/'.$id.'',
861'access_token' => $access_token
862);
863curl_setopt($ch, CURLOPT_POST,count($data));
864curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
865$a = json_decode(curl_exec($ch), true);
866curl_close($ch);
867 return $a;
868}
869function like($access_token, $id, $cookie) {
870 $ch = curl_init();
871 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
872 $head[] = "Connection: keep-alive";
873 $head[] = "Keep-Alive: 300";
874 $head[] = "authority: m.facebook.com";
875 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
876 $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";
877 $head[] = "cache-control: max-age=0";
878 $head[] = "upgrade-insecure-requests: 1";
879 $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";
880 $head[] = "sec-fetch-site: none";
881 $head[] = "sec-fetch-mode: navigate";
882 $head[] = "sec-fetch-user: ?1";
883 $head[] = "sec-fetch-dest: document";
884 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');
885 curl_setopt($ch, CURLOPT_ENCODING, '');
886 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
887 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
888 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
889 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
890 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
891 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
892 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
893 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
894 $data = array('access_token' => $access_token);
895 curl_setopt($ch, CURLOPT_POST, count($data));
896 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
897 $access = curl_exec($ch);
898 curl_close($ch);
899 return json_decode($access);
900
901}
902function cmt($access_token, $idcmt, $cookie, $msg) {
903 $ch = curl_init();
904 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/comments');
905 $head[] = "Connection: keep-alive";
906 $head[] = "Keep-Alive: 300";
907 $head[] = "authority: m.facebook.com";
908 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
909 $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";
910 $head[] = "cache-control: max-age=0";
911 $head[] = "upgrade-insecure-requests: 1";
912 $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";
913 $head[] = "sec-fetch-site: none";
914 $head[] = "sec-fetch-mode: navigate";
915 $head[] = "sec-fetch-user: ?1";
916 $head[] = "sec-fetch-dest: document";
917 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');
918 curl_setopt($ch, CURLOPT_ENCODING, '');
919 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
920 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
921 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
922 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
923 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
924 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
925 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
926 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
927 $data = array('message' => $msg, 'access_token' => $access_token);
928 curl_setopt($ch, CURLOPT_POST, count($data));
929 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
930 $access = curl_exec($ch);
931 curl_close($ch);
932 return json_decode($access);
933}
934function hoanthanh($dem, $type, $id, $xujob, $xu) {
935 echo "\r";
936 echo " \r";
937 $t = random_int(31,37);
938 $mau = "\e[1;$t"."m";
939 $a = "\033[1;93m[\033[1;93m".$dem."\033[1;93m]\033[1;91m ● \033[1;96m".date("H:i")."\033[1;91m ●$mau $type\033[1;91m ● \033[1;97m".$id." \033[1;91m● \033[1;93m".$xu." xu\e[0m\n";
940 $len = strlen($a);
941 for ($x = 0; $x < $len; $x++) {
942 echo $a[$x];
943 usleep(5000);
944 }
945}
946function delay($delay) {
947 $time = $delay;
948 for ( $x = $time; $x--; $x ) {
949 echo " \r";
950 echo "\e[1;32m● Vui lòng chờ <~> TTT Original\e[1;37m〘\e[1;31m▉\e[1;32m■\e[1;33m■\e[1;34m■\e[1;35m■\e[1;37m〙".$x." \e[1;33mgiây";
951 usleep(185000);
952 echo "\r";
953 echo " \r";
954 echo "\e[1;36m● Vui lòng chờ <~> TTT Original\e[1;37m〘\e[1;33m■\e[1;34m▉\e[1;35m■\e[1;36m■\e[1;31m■\e[1;37m〙".$x."\e[1;34m giây";
955 usleep(185000);
956 echo "\r";
957 echo " \r";
958 echo "\e[1;34m● Vui lòng chờ <~> TTT Original\e[1;37m〘\e[1;34m■\e[1;35m■\e[1;36m▉\e[1;31m■\e[1;33m■\e[1;37m〙".$x."\e[1;31m giây";
959 usleep(185000);
960 echo "\r";
961 echo " \r";
962 echo "\e[1;33m● Vui lòng chờ <~> TTT Original\e[1;37m〘\e[1;35m■\e[1;36m■\e[1;31m■\e[1;33m▉\e[1;34m■\e[1;37m〙".$x."\e[1;32m giây";
963 usleep(185000);
964 echo "\r";
965 echo " \r";
966 echo "\e[1;31m● Vui lòng chờ <~> TTT Original\e[1;37m〘\e[1;33m■\e[1;32m■\e[1;31m■\e[1;35m■\e[1;36m▉\e[1;37m〙".$x."\e[1;36m giây";
967 usleep(185000);
968 echo "\r";
969
970}}
971function banner(){
972$t = "
973║ \033[1;92m____ __ __ \033[1;91mBản Quyền: Tài Handsome \e[1;33m║
974\e[1;33m║ \033[1;92m(_ _)/ _\ ( ) \033[1;96mYouTube: TTT Original ♪ \e[1;33m║
975\e[1;33m║ \033[1;92m)( / \ )( \033[1;97mWebsite: https://keytoolvip.ml/ \e[1;33m║
976\e[1;33m║ \033[1;92m(__)\_/\_/(__) \033[1;94mVersion:\033[1;97m Cookie V1 \e[1;33m║
977";
978echo "\e[1;33m╔═════════════════════════════════════════════════════╗\n";
979echo "║ ║";
980echo $t;
981echo "║ ║\n";
982echo "\e[1;33m╚═════════════════════════════════════════════════════╝\n";
983}
984function getcookiettc($user,$pass,$useragent){
985 $ch=curl_init();
986curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
987curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/login.php');
988curl_setopt($ch, CURLOPT_COOKIEJAR, "TTC.txt");
989curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
990$login =array('username' => $user,'password' => $pass,'submit' => ' ĐĂNG NHẬP');
991curl_setopt($ch, CURLOPT_POST,count($login));
992curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
993curl_setopt($ch, CURLOPT_COOKIEFILE, "TTC.txt");
994$source=curl_exec($ch);
995curl_close($ch);
996return $source;
997}
998function datnick($idfb,$useragent){
999$url = 'https://tuongtaccheo.com/cauhinh/datnick.php';
1000$header = array(
1001 "Host: tuongtaccheo.com",
1002 "accept: */*",
1003 "x-requested-with: XMLHttpRequest",
1004 "user-agent: Mozilla/5.0 (Linux; Android 9; Mi A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.110 Mobile Safari/537.36",
1005 "content-type: application/x-www-form-urlencoded; charset=UTF-8",
1006 "origin: https://tuongtaccheo.com",
1007 "sec-fetch-site: same-origin",
1008 "sec-fetch-mode: cors",
1009 "sec-fetch-dest: empty",
1010 "referer: https://tuongtaccheo.com/cauhinh/",
1011);
1012 $data = 'iddat%5B%5D='.$idfb."&loai=fb";
1013 $ch = curl_init();
1014 curl_setopt($ch, CURLOPT_PORT, "443");
1015 curl_setopt($ch, CURLOPT_URL, $url);
1016 curl_setopt($ch, CURLOPT_ENCODING, "");
1017 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
1018 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
1019 curl_setopt($ch, CURLOPT_TIMEOUT, 30);
1020 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
1021 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
1022 curl_setopt($ch, CURLOPT_COOKIEFILE, "TTC.txt");
1023 curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
1024 $h = curl_exec($ch);
1025 curl_close($ch);
1026 return $h;
1027}
1028function getlike($useragent){
1029 $ch=curl_init();
1030 curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/getpost.php');
1031 $head[]='Host: tuongtaccheo.com';
1032 $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
1033 $head[]='x-requested-with: XMLHttpRequest';
1034 $head[]='referer: https://tuongtaccheo.com/kiemtien/';
1035 curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
1036 curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
1037 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
1038 curl_setopt($ch,CURLOPT_POST,1);
1039 curl_setopt($ch,CURLOPT_HTTPGET, true);
1040 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
1041 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
1042 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
1043 curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
1044 return json_decode(curl_exec($ch),true);
1045 curl_close($ch);
1046}
1047function nhantienlike($id,$useragent){
1048 $ch= curl_init();
1049 $data= ('id=').$id;
1050 curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/kiemtien/nhantien.php');
1051 $head[]='Host: tuongtaccheo.com';
1052 $head[]='content-length: '.strlen($data);
1053 $head[]='x-requested-with: XMLHttpRequest';
1054 $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
1055 $head[]='origin: https://tuongtaccheo.com';
1056 $head[]='referer: https://tuongtaccheo.com/kiemtien/';
1057 $head[]='cookie: TawkConnectionTime=0';
1058 curl_setopt($ch,CURLOPT_USERAGENT, $useragent);
1059 curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
1060 curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
1061 curl_setopt($ch,CURLOPT_POST, 1);
1062 curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
1063 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
1064 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
1065 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
1066 curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
1067 $xu= json_decode(curl_exec($ch), true);
1068 curl_close($ch);
1069 return $xu;
1070}
1071function getxu(){
1072 $url = "https://tuongtaccheo.com/home.php";
1073 $curl = curl_init();
1074 curl_setopt_array($curl, array(
1075 CURLOPT_PORT => "443",
1076 CURLOPT_URL => "$url",
1077 CURLOPT_RETURNTRANSFER => true,
1078 CURLOPT_ENCODING => "",
1079 CURLOPT_SSL_VERIFYPEER => true,
1080 CURLOPT_CUSTOMREQUEST => "GET",
1081 CURLOPT_COOKIEFILE => "TTC.txt"
1082 ));
1083 $data = curl_exec($curl);
1084 curl_close($curl);
1085 preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
1086 $xu = $sd["1"];
1087 return $xu;
1088}
1089function getnv($loai,$useragent){
1090 $ch=curl_init();
1091 curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/getpost.php');
1092 $head[]='Host: tuongtaccheo.com';
1093 $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
1094 $head[]='x-requested-with: XMLHttpRequest';
1095 $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';
1096 $head[]='referer: https://tuongtaccheo.com/kiemtien/'.$loai.'cheo';
1097 curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
1098 curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
1099 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
1100 curl_setopt($ch,CURLOPT_POST,1);
1101 curl_setopt($ch,CURLOPT_HTTPGET, true);
1102 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
1103 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
1104 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
1105 curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
1106 return json_decode(curl_exec($ch),true);
1107 curl_close($ch);
1108}
1109function getnvcxcmt($useragent){
1110 $ch=curl_init();
1111 curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/camxuccheobinhluan/getpost.php');
1112 $head[]='Host: tuongtaccheo.com';
1113 $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
1114 $head[]='x-requested-with: XMLHttpRequest';
1115 $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';
1116 $head[]='referer: https://tuongtaccheo.com/kiemtien/camxuccheobinhluan';
1117 curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
1118 curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
1119 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
1120 curl_setopt($ch,CURLOPT_POST,1);
1121 curl_setopt($ch,CURLOPT_HTTPGET, true);
1122 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
1123 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
1124 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
1125 curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
1126 return json_decode(curl_exec($ch),true);
1127 curl_close($ch);
1128}
1129function traluong($loai,$id)
1130{
1131 $url = "https://tuongtaccheo.com/kiemtien/$loai"."cheo/nhantien.php";
1132 $data= ('id=').$id;
1133 $head = array(
1134 "Host: tuongtaccheo.com",
1135 "content-length: " . strlen($data),
1136 "x-requested-with: XMLHttpRequest",
1137 "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",
1138 "content-type: application/x-www-form-urlencoded; charset=UTF-8",
1139 "origin: https://tuongtaccheo.com",
1140 "referer: https://tuongtaccheo.com/kiemtien/$loai"."cheo/"
1141 );
1142 $ch = curl_init();
1143 curl_setopt_array($ch, array(
1144 CURLOPT_URL => $url,
1145 CURLOPT_FOLLOWLOCATION => TRUE,
1146 CURLOPT_RETURNTRANSFER => 1,
1147 CURLOPT_POST => 1,
1148 CURLOPT_POSTFIELDS => $data,
1149 CURLOPT_SSL_VERIFYPEER => 0,
1150 CURLOPT_COOKIEFILE => "TTC.txt",
1151 CURLOPT_HTTPHEADER => $head,
1152 CURLOPT_ENCODING => TRUE
1153 ));
1154 $a = json_decode(curl_exec($ch), true);
1155 return $a;
1156}
1157function delay2($time){
1158 $green="\e[1;32m";
1159 $yellow="\e[1;33m";
1160 for($j = $time;$j> 0;$j--){
1161 echo "\r";
1162 echo " \r";
1163 echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
1164 sleep(1);
1165
1166 }
1167 echo "\r";
1168 echo " \r";
1169}
1170function gettoken($cookie,$useragent){
1171$ch = curl_init();
1172 curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
1173$head[] = "Connection: keep-alive";
1174$head[] = "Keep-Alive: 300";
1175$head[] = "authority: m.facebook.com";
1176$head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
1177$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";
1178$head[] = "cache-control: max-age=0";
1179$head[] = "upgrade-insecure-requests: 1";
1180$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";
1181$head[] = "sec-fetch-site: none";
1182$head[] = "sec-fetch-mode: navigate";
1183$head[] = "sec-fetch-user: ?1";
1184$head[] = "sec-fetch-dest: document";
1185curl_setopt($ch, CURLOPT_USERAGENT,$useragent );
1186curl_setopt($ch, CURLOPT_ENCODING, '');
1187curl_setopt($ch, CURLOPT_COOKIE, $cookie);
1188curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
1189curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1190curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
1191curl_setopt($ch, CURLOPT_TIMEOUT, 60);
1192curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
1193curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
1194curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
1195$access = curl_exec($ch);
1196curl_close($ch);
1197$access_token = explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
1198return $access_token;
1199}
1200function camxuc($idcx, $type, $cookie) {
1201 $ch = curl_init();
1202 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$idcx);
1203 $head[] = "Connection: keep-alive";
1204 $head[] = "Keep-Alive: 300";
1205 $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
1206 $head[] = "Accept-Language: en-us,en;q=0.5";
1207 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');
1208 curl_setopt($ch, CURLOPT_ENCODING, '');
1209 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
1210 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
1211 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1212 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
1213 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
1214 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
1215 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
1216 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
1217 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
1218 :'));
1219 $cx = curl_exec($ch);
1220 $haha = explode('<a href="', $cx);
1221 if ($type == 'LOVE') {
1222 $haha2 = explode('" style="display:block"', $haha[2])[0];
1223 } else if ($type == 'WOW') {
1224 $haha2 = explode('" style="display:block"', $haha[5])[0];
1225 } else if ($type == 'CARE') {
1226 $haha2 = explode('" style="display:block"', $haha[3])[0];
1227 } else if ($type == 'HAHA') {
1228 $haha2 = explode('" style="display:block"', $haha[4])[0];
1229 } else if ($type == 'SAD') {
1230 $haha2 = explode('" style="display:block"', $haha[6])[0];
1231 } else {
1232 $haha2 = explode('" style="display:block"', $haha[7])[0];
1233 }
1234 $link2 = html_entity_decode($haha2);
1235 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
1236 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1237 curl_exec($ch);
1238 curl_close($ch);
1239}
1240function traluongcx($type,$id)
1241{
1242 $url = "https://tuongtaccheo.com/kiemtien/camxuccheo/nhantien.php";
1243 $data= 'id='.$id.'&loaicx='.$type;
1244 $head = array(
1245 "Host: tuongtaccheo.com",
1246 "content-length: " . strlen($data),
1247 "x-requested-with: XMLHttpRequest",
1248 "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",
1249 "content-type: application/x-www-form-urlencoded; charset=UTF-8",
1250 "origin: https://tuongtaccheo.com",
1251 "referer: https://tuongtaccheo.com/kiemtien/camxuccheo/"
1252 );
1253 $ch = curl_init();
1254 curl_setopt_array($ch, array(
1255 CURLOPT_URL => $url,
1256 CURLOPT_FOLLOWLOCATION => TRUE,
1257 CURLOPT_RETURNTRANSFER => 1,
1258 CURLOPT_POST => 1,
1259 CURLOPT_POSTFIELDS => $data,
1260 CURLOPT_SSL_VERIFYPEER => 0,
1261 CURLOPT_CUSTOMREQUEST => "POST",
1262 CURLOPT_COOKIEFILE => "TTC.txt",
1263 CURLOPT_HTTPHEADER => $head,
1264 CURLOPT_ENCODING => TRUE
1265 ));
1266 $a = json_decode(curl_exec($ch), true);
1267 return $a;
1268}
1269function traluonglikecmt($type,$id)
1270{
1271 $url = "https://tuongtaccheo.com/kiemtien/camxuccheobinhluan/nhantien.php";
1272 $data= 'id='.$id.'&loaicx='.$type;
1273 $head = array(
1274 "Host: tuongtaccheo.com",
1275 "content-length: " . strlen($data),
1276 "x-requested-with: XMLHttpRequest",
1277 "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",
1278 "content-type: application/x-www-form-urlencoded; charset=UTF-8",
1279 "origin: https://tuongtaccheo.com",
1280 "referer: https://tuongtaccheo.com/kiemtien/camxuccheobinhluan/"
1281 );
1282 $ch = curl_init();
1283 curl_setopt_array($ch, array(
1284 CURLOPT_URL => $url,
1285 CURLOPT_FOLLOWLOCATION => TRUE,
1286 CURLOPT_RETURNTRANSFER => 1,
1287 CURLOPT_POST => 1,
1288 CURLOPT_POSTFIELDS => $data,
1289 CURLOPT_SSL_VERIFYPEER => 0,
1290 CURLOPT_CUSTOMREQUEST => "POST",
1291 CURLOPT_COOKIEFILE => "TTC.txt",
1292 CURLOPT_HTTPHEADER => $head,
1293 CURLOPT_ENCODING => TRUE
1294 ));
1295 $a = json_decode(curl_exec($ch), true);
1296 return $a;
1297}
1298function page($idpage, $cookie) {
1299 $ch = curl_init();
1300 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$idpage);
1301 $head[] = "Connection: keep-alive";
1302 $head[] = "Keep-Alive: 300";
1303 $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
1304 $head[] = "Accept-Language: en-us,en;q=0.5";
1305 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');
1306 curl_setopt($ch, CURLOPT_ENCODING, '');
1307 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
1308 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
1309 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1310 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
1311 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
1312 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
1313 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
1314 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
1315 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
1316 :'));
1317 $page = curl_exec($ch);
1318 if (explode('&refid=', explode('pageSuggestionsOnLiking=1&gfid=', $page)[1])[0]) {
1319 $get = explode('&refid=', explode('pageSuggestionsOnLiking=1&gfid=', $page)[1])[0];
1320 $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$idpage.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
1321 curl_setopt($ch, CURLOPT_URL, $link);
1322 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1323 curl_exec($ch);
1324 }
1325 curl_close($ch);
1326
1327}