· 4 years ago · Jul 13, 2021, 03:16 AM
1$ktfile = file_exists("TDS.txt");
2if ($ktfile == 1){
3 unlink('TDS.txt');
4}
5$ress = "\033[0;32m";
6$res = "\033[0;33m";
7$red = "\033[0;31m";
8$green = "\033[0;37m";
9$yellow = "\033[0;33m";
10$white = "\033[0;33m";
11$xnhac = "\033[1;96m";
12$den = "\033[1;90m";
13$do = "\033[1;91m";
14$luc = "\033[1;92m";
15$vang = "\033[1;93m";
16$xduong = "\033[1;94m";
17$hong = "\033[1;95m";
18$trang = "\033[1;97m";
19$do="\033[1;91m";
20$maufulldo= "\e[1;47;31m";
21$res="\033[0m";
22$red="\e[1;31m";
23$pink="\e[1;35m";
24$green="\e[1;32m";
25$yellow="\e[1;33m";
26$y2="\033[0;33m";
27$white= "\033[0;37m";
28$cyan= "\e[1;36m";
29$blue="\e[1;34m";
30$ngreen="\033[42m";
31$ngblack="\033[40m";
32$nen="\033[1;47;1;34m";
33date_default_timezone_set("Asia/Ho_Chi_Minh");
34//Key
35$key = [];
36$x = date("d");
37$y = date("m");
38$gt = 1.3;
39$key=($x+$y)*($x+$y)+3940*$x*$gt+$x*$y;
40//info
41$info = [];
42$info='TTT Original';
43//day
44$day = [];
45$day= date('d-m-y');
46//config
47$d = date("d-m");
48$_check = file_exists("keyttvip4$d.txt");
49@system('clear');
50banner();
51for($v=0;$v<= 26;$v++){
52 echo "\033[1;37m▂";
53 echo "\033[1;36m▂";
54}
55echo "\033[1;37m▂";
56echo"\n\n";
57echo $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";
58echo $white." ➻❥ ".$green."API Free:$yellow http://olalink.xyz/k-ttvip4\n";
59if ($_check !='1'){
60$gh = date("d-m", strtotime("yesterday"));
61$yt = "keyttvip4$gh.txt";
62$_check2 = file_exists("$yt");
63if($_check2==1){
64 unlink("$yt");
65}
66for($j = 3;$j> 0;$j--){
67 echo $white." ➻❥ ".$cyan."Chuyển Hướng Đến Trang Lấy Key Sau $green".$j;
68 sleep(1);
69 echo "\r";
70 echo " \r";
71}
72system("termux-open-url http://olalink.xyz/k-ttvip4");
73echo $white." ➻❥ ".$green."Nhập API Key $white";
74$keyy=trim(fgets(STDIN));
75}
76if ($_check =='1'){
77 $keyy = file_get_contents("keyttvip4$d.txt");
78 $vt = 1;
79 echo $white." ➻❥ ".$green."Đang Lấy Key...";
80 sleep(2);
81 echo "\r \r";
82}
83if($keyy == ''){
84 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
85 exit;
86}
87 if($keyy == $key)
88 {
89 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
90 $mf = fopen("keyttvip4$d.txt", "w");
91 fwrite($mf, $keyy);
92 fclose($mf);
93 }
94 else
95 {
96 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
97 exit;
98 }
99usleep(500000);
100system('clear');
101banner();
102$dem = 0;
103//@system('clear');
104for($v=0;$v<= 26;$v++){
105 echo "\033[1;37m▂";
106 echo "\033[1;36m▂";
107}
108echo "\033[1;37m▂";
109echo"\n\n";
110echo $white." ➻❥ ".$green."Tài khoản: $yellow".$info."$green - Hạn Sử Dụng: $yellow ".$day."\n\n";
111for($v=0;$v<= 26;$v++){
112 echo "\033[1;37m▂";
113 echo "\033[1;36m▂";
114}
115echo "\033[1;37m▂";
116echo"\n\n";
117$_SESSION['check'] = file_exists("log.txt");
118if ($_SESSION['check'] =='1'){
119echo $white." ➻❥ ".$green."Bạn Đã Đăng Nhập$cyan Trao Đổi Sub$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: ";
120$_SESSION['nhap'] = trim(fgets(STDIN));
121if ($_SESSION['nhap'] !='no' and $_SESSION['nhap'] != 'No' and $_SESSION['nhap'] !=''){
122echo $white." ➻❥ ".$red."Sai Định Dạng\n";
123exit;
124}
125if ($_SESSION['nhap'] =='no' or $_SESSION['nhap'] =='No'){
126$my = fopen("log.txt", "w+");
127echo $white." ➻❥ ".$green."Nhập Access Token TDS: ";
128$tokenacc =trim(fgets(STDIN));
129$arr = array("tokenacc"=> $tokenacc);
130fwrite($my,json_encode($arr));
131 $my = file("log.txt");
132$bb = file_get_contents('log.txt');
133$cc =json_decode($bb);
134}
135if ($_SESSION['nhap'] == ''){
136$bb = file_get_contents("log.txt");
137$cc =json_decode($bb);
138$tokenacc = $cc->{"tokenacc"};
139
140}
141} else {
142$my = fopen("log.txt","w+");
143echo $white." ➻❥ ".$green."Nhập Access Token TDS: ";
144$tokenacc =trim(fgets(STDIN));
145$arr = array("tokenacc"=> $tokenacc);
146fwrite($my,json_encode($arr));
147}
148$m = login($tokenacc);
149$mm = json_decode($m);
150$sss = $mm->{"success"};
151if ($sss=='200'){
152 echo $white." ➻❥ ".$green."Đăng Nhập Thành Công\n";
153 // get xu
154 $user = $mm->{"data"}->{"user"};
155 $xu = $mm->{"data"}->{"xu"};
156}else{
157 echo $white." ➻❥ ".$red."Sai Access Token Trao Đổi Sub\n";
158 exit;
159}
160usleep(100000);
161do {
162@system('clear');
163banner();
164for($v=0;$v<= 26;$v++){
165 echo "\033[1;37m▂";
166 echo "\033[1;36m▂";
167}
168echo "\033[1;37m▂";
169echo"\n\n";
170//cookie
171$khocookie = [];
172
173echo $white." ➻❥ ".$green."Nhập Cookie Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
174for($a = 1; $a < 999999;$a++){
175echo $white." ➻❥ ".$green."Nhập Cookie Thứ $a: $vang";
176$nhapck = (string)trim(fgets(STDIN));
177if($nhapck == ''){break;}
178
179array_push($khocookie,$nhapck);
180}
181
182$demcki=count($khocookie);
183
184echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Cookie Facebook\n";
185sleep(1);
186} while (count($khocookie)==0);
187//url
188$urlinfo = "https://traodoisub.com/api/?fields=profile&access_token=$tokenacc";
189$urllike = "https://traodoisub.com/api/?fields=like&access_token=$tokenacc";
190$urlsub = "https://traodoisub.com/api/?fields=follow&access_token=$tokenacc";
191$urlcx = "https://traodoisub.com/api/?fields=reaction&access_token=$tokenacc";
192$urlshare = "https://traodoisub.com/api/?fields=share&access_token=$tokenacc";
193$urlcmt = "https://traodoisub.com/api/?fields=comment&access_token=$tokenacc";
194$urlpage = "https://traodoisub.com/api/?fields=page&access_token=$tokenacc";
195$urllikecmt = "https://traodoisub.com/api/?fields=reactcmt&access_token=$tokenacc";
196$urlgr = "https://traodoisub.com/api/?fields=group&access_token=$tokenacc";
197//login
198$info = api($urlinfo);
199if ($info["error"]) {
200 exit ($info["error"]);
201}
202//$thongtin
203$user = strtolower($info["data"]["user"]);
204$xuhientai = $info["data"]["xu"];
205system('clear');
206banner();
207for($v=0;$v<= 26;$v++){
208 echo "\033[1;37m▂";
209 echo "\033[1;36m▂";
210}
211echo "\033[1;37m▂";
212echo"\n\n";
213echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."1".$do."]".$luc." Để Chọn Nhiệm Vụ Like\n";
214echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."2".$do."]".$luc." Để Chọn Nhiệm Vụ Follow\n";
215echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."3".$do."]".$luc." Để Chọn Nhiệm Vụ Cảm Xúc\n";
216echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."4".$do."]".$luc." Để Chọn Nhiệm Vụ Comment\n";
217echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."5".$do."]".$luc." Để Chọn Nhiệm Vụ Fanpage\n";
218echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."6".$do."]".$luc." Để Chọn Nhiệm Vụ Share\n";
219echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."7".$do."]".$luc." Để Chọn Nhiệm Vụ Tham Gia Group\n";
220echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."8".$do."]".$luc." Để Chọn Nhiệm Vụ Cảm Xúc CMT\n";
221echo $white." ➻❥ ".$green."Muốn Chọn Random Thì Ghép Số Lại\n";
222echo $white." ➻❥ ".$green."Vui Lòng Chọn Nhiệm Vụ: $vang";
223$nhiemvu = trim(fgets(STDIN));
224echo $white." ➻❥ ".$green."Nhập Thời Gian Delay Làm Nhiệm Vụ: $vang";
225$thoigianmin = trim(fgets(STDIN));
226$thoigianmax = $thoigianmin;
227echo $white." ➻❥ ".$green."Sau Bao Nhiêu Nhiệm Vụ Thì Dừng Chống Block: $vang";
228$xxxxx = trim(fgets(STDIN));
229echo $white." ➻❥ ".$green."Sau ".$vang.$xxxxx.$luc." Nhiệm Vụ Nghỉ Ngơi Bao Nhiêu Giây: $vang";
230$delaybl = trim(fgets(STDIN));
231echo $white." ➻❥ ".$green."Chuyển Nick Sau Bao Nhiêu Nhiệm Vụ: $vang";
232$doinick = trim(fgets(STDIN));
233echo $white." ➻❥ ".$green."Chạy Bao Nhiêu Nhiệm Vụ Rồi Dừng Tool: $vang";
234$dungtool = trim(fgets(STDIN));
235sleep(1);
236system('clear');
237banner();
238for($v=0;$v<= 26;$v++){
239 echo "\033[1;37m▂";
240 echo "\033[1;36m▂";
241}
242echo "\033[1;37m▂";
243echo"\n\n";
244echo $white." ➻❥ ".$green."Tài Khoản: ".$vang.$user."\n";
245echo $white." ➻❥ ".$green."Xu Hiện Tại: ".$pink.$xuhientai."\n";
246for($v=0;$v<= 26;$v++){
247 echo "\033[1;37m▂";
248 echo "\033[1;36m▂";
249}
250echo "\033[1;37m▂";
251echo"\n\n";
252while(true){
253 if(count($khocookie) == 0){
254
255 echo $white." ➻❥ ".$green."Nhập Cookie Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
256for($a = 1; $a < 999999;$a++){
257echo $white." ➻❥ ".$green."Nhập Cookie Thứ $a: $vang";
258$nhapck = (string)trim(fgets(STDIN));
259if($nhapck == ''){break;}
260array_push($khocookie,$nhapck);
261 }
262$demcki=count($khocookie);
263echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Cookie Facebook\n";
264 }
265 $themtk = 0;
266 for($xz=0;$xz<count($khocookie);$xz++){
267 if ( $themck == 1){ break;}
268 $cookie = $khocookie[$xz];
269$access_token = laytoken($cookie);
270//$access_token = $cookie;
271if (strpos($access_token, 'EAAAA') !== 0) {
272 echo "\r";
273 echo " \r";
274 echo $white." ➻❥ ".$red."Cookie Die\n";
275 array_splice($khocookie,$xz,1);
276 continue;
277}
278$tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
279$idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
280$urlcauhinh = "https://traodoisub.com/api/?fields=run&id=$idfb&access_token=$tokenacc";
281$cauhinh = api($urlcauhinh);
282if ($cauhinh["data"]["msg"] == "Cấu hình thành công!") {
283 echo "\r";
284 echo " \r";
285 echo $white." ➻❥ ".$green."Đang Cấu Hình $vang".$tenfb."".$res."\n";
286
287} else {
288 echo "\r";
289 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";
290 exit;
291}
292$spam = 0;
293while (true) {
294 if ($spam == 1) {
295 break;
296 }
297 //listlike
298 if (strpos($nhiemvu, '1') !== false) {
299 for ($i = 0; $i < 5; $i++) {
300 $listlike = api($urllike);
301 if (count($listlike) > 0) {
302 break;
303 }}
304 if (count($listlike) == 0) {
305 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like\r";
306 }
307 }
308 //listfollow
309 if (strpos($nhiemvu, '2') !== false) {
310 for ($i = 0; $i < 5; $i++) {
311 $listsub = api($urlsub);
312 if (count($listsub) > 0) {
313 break;
314 }
315 }
316 if (count($listsub) == 0) {
317 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Follow\r";
318 }
319 }
320 //listreaction
321 if (strpos($nhiemvu, '3') !== false) {
322 for ($i = 1; $i < 5; $i++) {
323 $listcx = api($urlcx);
324 if (count($listcx) > 0) {
325 break;
326 }}
327 if (count($listcx) == 0) {
328 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Cảm Xúc\r";
329 }
330 }
331 //listcmt
332 if (strpos($nhiemvu, '4') !== false) {
333 for ($i = 1; $i < 5; $i++) {
334 $listcmt = api($urlcmt);
335 if (count($listcmt) > 0) {
336 break;
337 }}
338 if (count($listcmt) == 0) {
339 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Comment\r";
340 }
341 }
342 //listpage
343 if (strpos($nhiemvu, '5') !== false) {
344 for ($i = 1; $i < 5; $i++) {
345 $listpage = api($urlpage);
346 if (count($listpage) > 0) {
347 break;
348 }}
349 if (count($listpage) == 0) {
350 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like Page\r";
351 }
352 }
353 //share
354 if (strpos($nhiemvu, '6') !== false) {
355 for ($i = 1; $i < 5; $i++) {
356 $listshare = api($urlshare);
357 if (count($listshare) > 0) {
358 break;
359 }}
360 if (count($listshare) == 0) {
361 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Share\r";
362 }
363 }
364 //listgroup
365 if (strpos($nhiemvu, '7') !== false) {
366 for ($i = 1; $i < 5; $i++) {
367 $listgr = api($urlgr);
368 if (count($listgr) > 0) {
369 break;
370 }}
371 if (count($listgr) == 0) {
372 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Group\r";
373 }
374 }
375 //listlikecmt
376 if (strpos($nhiemvu, '8') !== false) {
377 for ($i = 1; $i < 5; $i++) {
378 $listlikecmt = api($urllikecmt);
379 if (count($listlikecmt) > 0) {
380 break;
381 }}
382 if (count($listlikecmt) == 0) {
383 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ React Comment\r";
384 }
385 }
386 for ($lap = 0; $lap < 20; $lap++) {
387 // like
388 if ($listlike !== NULL) {
389 $idlike = $listlike[$lap]["id"];
390 if ($idlike != '') {
391 $g = like($access_token, $idlike, $cookie);
392 if ($g -> {'error'} -> {'code'} == 190) {
393 echo "\r";
394 echo " \r";
395 echo $white." ➻❥ ".$red."Cookie Die\n";
396 array_splice($khocookie,$xz,1);
397 $spam = 1; break;
398 }
399 if ($g -> {'error'} -> {'code'} == 368) {
400 echo "\r";
401 echo " \r";
402 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
403 echo "\n";
404 array_splice($khocookie,$xz,1);
405 $spam = 1;
406 break;
407 }
408 if ($g -> {'error'} -> {'code'} == 405) {
409 echo "\r";
410 echo " \r";
411 echo $white." ➻❥ ".$red."\033[1;91m"."Tài khoản bị checkpoint";
412 echo "\n";
413 array_splice($khocookie,$xz,1);
414 $spam = 1;
415 break;
416 }
417 $nhanlike = nhantien('LIKE', $idlike, $tokenacc);
418 if ($nhanlike["success"] == 200) {
419 $xu = $nhanlike["data"]["xu"];
420 $xujob = $nhanlike["data"]["msg"];
421 $dem++;
422
423 hoanthanh($dem, ' LIKE ', $idlike, $xujob, $xu);
424 if ( $dem >= $dungtool ){
425 $dungtool = 999999;
426 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
427 exit;
428 }
429 if($dem % $doinick == 0){
430 if (count($khocookie)>1){
431 $spam = 1; break;
432 }
433 }
434 if($dem % $xxxxx == 0){
435 delay2($delaybl);
436 }
437
438 $delay = rand($thoigianmin, $thoigianmax);
439 delay($delay);
440 }
441 }}
442 //follow
443 if ($listsub !== NULL) {
444 $idsub = $listsub[$lap]["id"];
445 if ($idsub != '') {
446 $g = follow($access_token, $idsub, $cookie);
447 if ($g -> {'error'} -> {'code'} == 190) {
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 if ($g -> {'error'} -> {'code'} == 368) {
455 echo "\r";
456 echo " \r";
457 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
458 echo "\n";
459 array_splice($khocookie,$xz,1);
460 $spam = 1;
461 break;
462 }
463 if ($g -> {'error'} -> {'code'} == 405) {
464 echo "\r";
465 echo " \r";
466 echo $white." ➻❥ ".$red."\033[1;91m"."Tài khoản bị checkpoint";
467 echo "\n";
468 array_splice($khocookie,$xz,1);
469 $spam = 1;
470 break;
471 }
472 $nhansub = nhantien('FOLLOW', $idsub, $tokenacc);
473 if ($nhansub["success"] == 200) {
474 $xu = $nhansub["data"]["xu"];
475 $xujob = $nhansub["data"]["msg"];
476 $dem++;
477 hoanthanh($dem, 'FOLLOW', $idsub, $xujob, $xu);
478 if ( $dem >= $dungtool ){
479
480 $dungtool = 999999;
481 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
482 exit;
483 }
484 if($dem % $doinick == 0){
485 if (count($khocookie)>1){
486 $spam = 1; break;
487 }
488 }
489 if($dem % $xxxxx == 0){
490 delay2($delaybl);
491 }
492
493 $delay = rand($thoigianmin, $thoigianmax);
494 delay($delay);
495 }
496 }}
497 //cảm xúc
498 if ($listcx !== NULL) {
499 $idcx = $listcx[$lap]["id"];
500 $type = $listcx[$lap]["type"];
501 if ($idcx != '') {
502 $g = camxuc($idcx, $type, $cookie);
503 if ($g -> {'error'} -> {'code'} == 190) {
504 echo "\r";
505 echo " \r";
506 echo $white." ➻❥ ".$red."Cookie Die\n";
507 array_splice($khocookie,$xz,1);
508 $spam = 1; break;
509 }
510 if ($g -> {'error'} -> {'code'} == 368) {
511 echo "\r";
512 echo " \r";
513 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
514 echo "\n";
515 array_splice($khocookie,$xz,1);
516 $spam = 1;
517 break;
518 }
519 if ($g -> {'error'} -> {'code'} == 405) {
520 echo "\r";
521 echo " \r";
522 echo $white." ➻❥ ".$red."\033[1;91m"."Tài khoản bị checkpoint";
523 echo "\n";
524 array_splice($khocookie,$xz,1);
525 $spam = 1;
526 break;
527 }
528 $nhancx = nhantien($type, $idcx, $tokenacc);
529 if ($nhancx["success"] == 200) {
530 $xu = $nhancx["data"]["xu"];
531 $xujob = $nhancx["data"]["msg"];
532 $dem++;
533 if ($type == 'WOW') {
534 $type = 'WOW';
535 } elseif ($type == 'SAD') {
536 $type = 'SAD';
537 } elseif ($type == 'ANGRY') {
538 $type = 'ANGRY';
539 } elseif ($type == 'LOVE') {
540 $type = 'LOVE';
541 } elseif ($type == 'HAHA') {
542 $type = 'HAHA';
543 }
544 hoanthanh($dem, $type, $idcx, $xujob, $xu);
545 if ( $dem >= $dungtool ){
546 $dungtool = 999999;
547 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
548 exit;
549 }
550 if($dem % $doinick == 0){
551 if (count($khocookie)>1){
552 $spam = 1; break;
553 }
554 }
555 if($dem % $xxxxx == 0){
556 delay2($delaybl);
557 }
558
559 $delay = rand($thoigianmin, $thoigianmax);
560 delay($delay);
561 }
562 }}
563 if ($listshare !== NULL) {
564 $id = $listshare[$lap]["id"];
565 $g = share($access_token, $id);
566 if ($g -> {'error'} -> {'code'} == 190) {
567 echo "\r";
568 echo " \r";
569 echo $white." ➻❥ ".$red."Cookie Die\n";
570 array_splice($khocookie,$xz,1);
571 $spam = 1; break;
572 }
573 if ($g -> {'error'} -> {'code'} == 368) {
574 echo "\r";
575 echo " \r";
576 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
577 echo "\n";
578 array_splice($khocookie,$xz,1);
579 $spam = 1;
580 break;
581 }
582 if ($g -> {'error'} -> {'code'} == 405) {
583 echo "\r";
584 echo " \r";
585 echo $white." ➻❥ ".$red."\033[1;91m"."Tài khoản bị checkpoint";
586 echo "\n";
587 array_splice($khocookie,$xz,1);
588 $spam = 1;
589 break;
590 }
591 $nhanshare = nhantien('SHARE', $id, $tokenacc);
592 if ($nhanshare["success"] == 200) {
593 $xu = $nhanshare["data"]["xu"];
594 $xujob = $nhanshare["data"]["msg"];
595 $dem++;
596 hoanthanh($dem, 'SHARE', $id, $xujob, $xu);
597 if ( $dem >= $dungtool ){
598 $dungtool = 999999;
599 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
600 exit;
601 }
602 if($dem % $doinick == 0){
603 if (count($khocookie)>1){
604 $spam = 1; break;
605 }
606 }
607 if($dem % $xxxxx == 0){
608 delay2($delaybl);
609 }
610 $delay = rand($thoigianmin, $thoigianmax);
611 delay($delay);
612 }}
613 //cmt
614 if ($listcmt !== NULL) {
615 $idcmt = $listcmt[$lap]["id"];
616 $msg = $listcmt[$lap]["msg"];
617 if ($idcmt != '') {
618 $g = cmt($access_token, $idcmt, $cookie, $msg);
619 if ($g -> {'error'} -> {'code'} == 190) {
620 echo "\r";
621 echo " \r";
622 echo $white." ➻❥ ".$red."Cookie Die\n";
623 array_splice($khocookie,$xz,1);
624 $spam = 1; break;
625 }
626 if ($g -> {'error'} -> {'code'} == 368) {
627 echo "\r";
628 echo " \r";
629 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
630 echo "\n";
631 array_splice($khocookie,$xz,1);
632 $spam = 1;
633 break;
634 }
635 if ($g -> {'error'} -> {'code'} == 405) {
636 echo "\r";
637 echo " \r";
638 echo $white." ➻❥ ".$red."\033[1;91m"."Tài khoản bị checkpoint";
639 echo "\n";
640 array_splice($khocookie,$xz,1);
641 $spam = 1;
642 break;
643 }
644 $nhancmt = nhantien('COMMENT', $idcmt, $tokenacc);
645 if ($nhancmt["success"] == 200) {
646 $xu = $nhancmt["data"]["xu"];
647 $xujob = $nhancmt["data"]["msg"];
648 $dem++;
649 hoanthanh($dem, ' CMT ', $idcmt, $xujob, $xu);
650 if ( $dem >= $dungtool ){
651 $dungtool = 999999;
652 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
653 exit;
654 }
655 if($dem % $doinick == 0){
656 if (count($khocookie)>1){
657 $spam = 1; break;
658 }
659 }
660 if($dem % $xxxxx == 0){
661 delay2($delaybl);
662 }
663
664 $delay = rand($thoigianmin, $thoigianmax);
665 delay($delay);
666 }
667 }}
668 //page
669 if ($listpage !== NULL) {
670 $idpage = $listpage[$lap]["id"];
671 if ($idpage != '') {
672 $g = page($idpage, $cookie);
673 if ($g -> {'error'} -> {'code'} == 190) {
674 echo "\r";
675 echo " \r";
676 echo $white." ➻❥ ".$red."Cookie Die\n";
677 array_splice($khocookie,$xz,1);
678 $spam = 1; break;
679 }
680 if ($g -> {'error'} -> {'code'} == 368) {
681 echo "\r";
682 echo " \r";
683 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
684 echo "\n";
685 array_splice($khocookie,$xz,1);
686 $spam = 1;
687 break;
688 }
689 if ($g -> {'error'} -> {'code'} == 405) {
690 echo "\r";
691 echo " \r";
692 echo $white." ➻❥ ".$red."\033[1;91m"."Tài khoản bị checkpoint";
693 echo "\n";
694 array_splice($khocookie,$xz,1);
695 $spam = 1;
696 break;
697 }
698 $nhanpage = nhantien('PAGE', $idpage, $tokenacc);
699 if ($nhanpage["success"] == 200) {
700 $xu = $nhanpage["data"]["xu"];
701 $xujob = $nhanpage["data"]["msg"];
702 $dem++;
703 hoanthanh($dem, ' PAGE ', $idpage, $xujob, $xu);
704 if ( $dem >= $dungtool ){
705 $dungtool = 999999;
706 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
707 exit;
708 }
709 if($dem % $doinick == 0){
710 if (count($khocookie)>1){
711 $spam = 1; break;
712 }
713 }
714 if($dem % $xxxxx == 0){
715 delay2($delaybl);
716 }
717
718 $delay = rand($thoigianmin, $thoigianmax);
719 delay($delay);
720 }
721 }
722 }
723 //likecmt
724 if ($listlikecmt !== NULL) {
725 $idlikecmt = $listlikecmt[$lap]["id"];
726 $type = $listlikecmt[$lap]["type"];
727 if ($idlikecmt != '') {
728 if ($type == 'LIKE'){
729 like($access_token, $idlikecmt, $cookie);
730 }else{
731 camxuc($idlikecmt, $type, $cookie);
732 }
733 $nhanpage = nhantien($type.'CMT', $idlikecmt, $tokenacc);
734 if ($nhanpage["success"] == 200) {
735 $xu = $nhanpage["data"]["xu"];
736 $xujob = $nhanpage["data"]["msg"];
737 $dem++;
738 hoanthanh($dem, $type.' CMT', $idlikecmt, $xujob, $xu);
739 if ( $dem >= $dungtool ){
740 $dungtool = 999999;
741 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
742 exit;
743 }
744 if($dem % $doinick == 0){
745 if (count($khocookie)>1){
746 $spam = 1; break;
747 }
748 }
749 if($dem % $xxxxx == 0){
750 delay2($delaybl);
751 }
752
753 $delay = rand($thoigianmin, $thoigianmax);
754 delay($delay);
755 }
756 }
757 }
758 //group
759 if ($listgr !== NULL) {
760 $idgr = $listgr[$lap]["id"];
761 if ($idgr != '') {
762 joingr($idfb,$idgr,$cookie);
763 $nhangr = nhantien('GROUP', $idgr, $tokenacc);
764 if ($nhancmt["success"] == 200) {
765 $xu = $nhangr["data"]["xu"];
766 $xujob = $nhangr["data"]["msg"];
767 $dem++;
768 hoanthanh($dem, 'GROUP ', $idgr, $xujob, $xu);
769 if ( $dem >= $dungtool ){
770
771 $dungtool = 999999;
772 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
773 exit;
774 }
775 if($dem % $doinick == 0){
776 if (count($khocookie)>1){
777 $spam = 1; break;
778 }
779 }
780 if($dem % $xxxxx == 0){
781 delay2($delaybl);
782 }
783
784 $delay = rand($thoigianmin, $thoigianmax);
785 delay($delay);
786 }else{
787 echo "lỗi $idgr\n";
788 }
789 }}
790 }
791}}}
792function api($url) {
793 $head = array(
794 "Host: traodoisub.com",
795 "cache-control: max-age=0",
796 "upgrade-insecure-requests: 1",
797 "user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/E7FBAF",
798 "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",
799 "sec-fetch-site: none",
800 "sec-fetch-mode: navigate",
801 "sec-fetch-user: ?1",
802 "sec-fetch-dest: document",
803 //"accept-encoding: gzip, deflate, br",
804 "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",
805 );
806 $ch = curl_init();
807 curl_setopt_array($ch, array(
808 CURLOPT_URL => $url,
809 CURLOPT_CUSTOMREQUEST => "GET",
810 CURLOPT_HTTPHEADER => $head,
811 CURLOPT_SSL_VERIFYPEER => FALSE,
812 CURLOPT_RETURNTRANSFER => 1
813 ));
814 $get = curl_exec($ch);
815 curl_close($ch);
816 return json_decode($get, true);
817}
818function nhantien($type, $id, $tokenacc) {
819 $nhan = file_get_contents("https://traodoisub.com/api/coin/?type=$type&id=$id&access_token=$tokenacc");
820 return json_decode($nhan, true);
821}
822function follow($access_token, $idtest, $cookie) {
823 $ch = curl_init();
824 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idtest.'/subscribers');
825 $head[] = "Connection: keep-alive";
826 $head[] = "Keep-Alive: 300";
827 $head[] = "authority: m.facebook.com";
828 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
829 $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";
830 $head[] = "cache-control: max-age=0";
831 $head[] = "upgrade-insecure-requests: 1";
832 $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";
833 $head[] = "sec-fetch-site: none";
834 $head[] = "sec-fetch-mode: navigate";
835 $head[] = "sec-fetch-user: ?1";
836 $head[] = "sec-fetch-dest: document";
837 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');
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_VERIFYPEER, FALSE);
843 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
844 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
845 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
846 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
847 $data = array('access_token' => $access_token);
848 curl_setopt($ch, CURLOPT_POST, count($data));
849 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
850 $access = curl_exec($ch);
851 curl_close($ch);
852 return json_decode($access);
853}
854
855
856function share($access_token,$id) {
857 $ch=curl_init();
858curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
859curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v2.0/me/feed');
860curl_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');
861$data = array(
862'privacy' => '{"value":"EVERYONE"}',
863'message' => '',
864'link' => 'https://mbasic.facebook.com/'.$id.'',
865'access_token' => $access_token
866);
867curl_setopt($ch, CURLOPT_POST,count($data));
868curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
869$a = json_decode(curl_exec($ch), true);
870curl_close($ch);
871 return $a;
872}
873function like($access_token, $id, $cookie) {
874 $ch = curl_init();
875 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
876 $head[] = "Connection: keep-alive";
877 $head[] = "Keep-Alive: 300";
878 $head[] = "authority: m.facebook.com";
879 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
880 $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";
881 $head[] = "cache-control: max-age=0";
882 $head[] = "upgrade-insecure-requests: 1";
883 $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";
884 $head[] = "sec-fetch-site: none";
885 $head[] = "sec-fetch-mode: navigate";
886 $head[] = "sec-fetch-user: ?1";
887 $head[] = "sec-fetch-dest: document";
888 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');
889 curl_setopt($ch, CURLOPT_ENCODING, '');
890 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
891 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
892 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
893 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
894 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
895 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
896 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
897 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
898 $data = array('access_token' => $access_token);
899 curl_setopt($ch, CURLOPT_POST, count($data));
900 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
901 $access = curl_exec($ch);
902 curl_close($ch);
903 return json_decode($access);
904
905}
906function cmt($access_token, $idcmt, $cookie, $msg) {
907 $ch = curl_init();
908 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/comments');
909 $head[] = "Connection: keep-alive";
910 $head[] = "Keep-Alive: 300";
911 $head[] = "authority: m.facebook.com";
912 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
913 $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";
914 $head[] = "cache-control: max-age=0";
915 $head[] = "upgrade-insecure-requests: 1";
916 $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";
917 $head[] = "sec-fetch-site: none";
918 $head[] = "sec-fetch-mode: navigate";
919 $head[] = "sec-fetch-user: ?1";
920 $head[] = "sec-fetch-dest: document";
921 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');
922 curl_setopt($ch, CURLOPT_ENCODING, '');
923 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
924 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
925 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
926 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
927 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
928 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
929 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
930 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
931 $data = array('message' => $msg, 'access_token' => $access_token);
932 curl_setopt($ch, CURLOPT_POST, count($data));
933 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
934 $access = curl_exec($ch);
935 curl_close($ch);
936 return json_decode($access);
937}
938function page($idpage, $cookie) {
939 $ch = curl_init();
940 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$idpage);
941 $head[] = "Connection: keep-alive";
942 $head[] = "Keep-Alive: 300";
943 $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
944 $head[] = "Accept-Language: en-us,en;q=0.5";
945 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');
946 curl_setopt($ch, CURLOPT_ENCODING, '');
947 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
948 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
949 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
950 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
951 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
952 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
953 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
954 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
955 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
956 :'));
957 $page = curl_exec($ch);
958 if (explode('&refid=', explode('pageSuggestionsOnLiking=1&gfid=', $page)[1])[0]) {
959 $get = explode('&refid=', explode('pageSuggestionsOnLiking=1&gfid=', $page)[1])[0];
960 $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$idpage.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
961 curl_setopt($ch, CURLOPT_URL, $link);
962 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
963 curl_exec($ch);
964 }
965 curl_close($ch);
966
967}
968function camxuc($idcx, $type, $cookie) {
969 $ch = curl_init();
970 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$idcx);
971 $head[] = "Connection: keep-alive";
972 $head[] = "Keep-Alive: 300";
973 $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
974 $head[] = "Accept-Language: en-us,en;q=0.5";
975 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');
976 curl_setopt($ch, CURLOPT_ENCODING, '');
977 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
978 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
979 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
980 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
981 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
982 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
983 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
984 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
985 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
986 :'));
987 $cx = curl_exec($ch);
988 $haha = explode('<a href="', $cx);
989 if ($type == 'LOVE') {
990 $haha2 = explode('" style="display:block"', $haha[2])[0];
991 } else if ($type == 'WOW') {
992 $haha2 = explode('" style="display:block"', $haha[5])[0];
993 } else if ($type == 'HAHA') {
994 $haha2 = explode('" style="display:block"', $haha[4])[0];
995 } else if ($type == 'SAD') {
996 $haha2 = explode('" style="display:block"', $haha[6])[0];
997 } else {
998 $haha2 = explode('" style="display:block"', $haha[7])[0];
999 }
1000 echo "\n$cx\n";
1001 $link2 = html_entity_decode($haha2);
1002 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
1003 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1004 curl_exec($ch);
1005 curl_close($ch);
1006}
1007function hoanthanh($dem, $type, $id, $xujob, $xu) {
1008 $a = "\033[1;93m[\033[1;93m".$dem."\033[1;93m]\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;93m".$xu." xu\e[0m\n";
1009 $len = strlen($a);
1010 echo "\r";
1011 echo " \r";
1012 for ($x = 0; $x < $len; $x++) {
1013 echo $a[$x];
1014 usleep(1000);
1015 }
1016}
1017function delay($delay) {
1018 $time = $delay;
1019 for ( $x = $time; $x--; $x ) {
1020 echo " \r";
1021 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";
1022 usleep(185000);
1023 echo "\r";
1024 echo " \r";
1025 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";
1026 usleep(185000);
1027 echo "\r";
1028 echo " \r";
1029 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";
1030 usleep(185000);
1031 echo "\r";
1032 echo " \r";
1033 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";
1034 usleep(185000);
1035 echo "\r";
1036 echo " \r";
1037 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";
1038 usleep(185000);
1039 echo "\r";
1040
1041}}
1042function laytoken($cookie) {
1043 $ch = curl_init();
1044 curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
1045 $head[] = "Connection: keep-alive";
1046 $head[] = "Keep-Alive: 300";
1047 $head[] = "authority: m.facebook.com";
1048 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
1049 $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";
1050 $head[] = "cache-control: max-age=0";
1051 $head[] = "upgrade-insecure-requests: 1";
1052 $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";
1053 $head[] = "sec-fetch-site: none";
1054 $head[] = "sec-fetch-mode: navigate";
1055 $head[] = "sec-fetch-user: ?1";
1056 $head[] = "sec-fetch-dest: document";
1057 curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36');
1058 curl_setopt($ch, CURLOPT_ENCODING, '');
1059 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
1060 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
1061 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1062 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
1063 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
1064 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
1065 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
1066 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
1067 $access = curl_exec($ch);
1068 curl_close($ch);
1069 if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0]) {
1070 $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0];
1071 }
1072 return $access_token;
1073}
1074function joingr($uid,$id_group,$cookie_lo){
1075$head_fb=["Host:m.facebook.com","user-agent:Mozilla/5.0 (Linux; Android 10; RMX1929 Build/QKQ1.200209.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.152 Mobile Safari/537.36","content-type:application/x-www-form-urlencoded","accept:*/*","origin:https://m.facebook.com","x-requested-with:mark.via.gz","sec-fetch-site:same-origin","sec-fetch-mode:cors","sec-fetch-dest:empty","cookie:$cookie_lo"];
1076$mbasic=G("https://m.facebook.com",$head_fb);
1077$jaz=explode('"',explode('name="jazoest" value="',$mbasic)[1])[0];
1078$fb=explode('"',explode('name="fb_dtsg" value="',$mbasic)[1])[0];
1079$data='__a=1&__csr=&__req=f&__beoa=0&__bhv=2&dpr=2&__comet_req=0&fb_dtsg='.$fb.'&jazoest='.$jaz.'&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=ModernForumJoinMutation&variables={"input":{"client_mutation_id":"1","actor_id":"'.$uid.'","group_id":"'.$id_group.'","source":"mobile_group_join"}}&server_timestamps=true&doc_id=4096904337009894';
1080$join=P("https://m.facebook.com/api/graphql/",$data,$head_fb);
1081if ($join=='{"data":{"join_forum_group":{"group":{"id":"'.$id_group.'","viewer_forum_join_state":"MEMBER"}}},"extensions":{"is_final":true}}'){
1082return 1;
1083}
1084return 0;
1085}
1086function G($url,$head){
1087$mr = curl_init();
1088curl_setopt_array($mr, array(
1089 CURLOPT_URL => $url,
1090 CURLOPT_RETURNTRANSFER => true,
1091 CURLOPT_HTTPHEADER => $head,
1092 CURLOPT_HEADER=>true));
1093$mr2 = curl_exec($mr); curl_close($mr);
1094return $mr2;
1095}
1096function P($url_nhan,$data,$head_ac){
1097$mr = curl_init();
1098curl_setopt_array($mr, array(
1099 CURLOPT_URL => $url_nhan,
1100 CURLOPT_RETURNTRANSFER => true,
1101 CURLOPT_POSTFIELDS => $data,
1102 CURLOPT_HTTPHEADER => $head_ac,));
1103$mr2 = curl_exec($mr); curl_close($mr);
1104return $mr2;
1105}
1106
1107
1108function login($tokentds){
1109 $login = file_get_contents("https://traodoisub.com/api/?fields=profile&access_token=".$tokentds);
1110 return $login;
1111}
1112function banner(){
1113$t = "
1114║ \033[1;92m____ __ __ \033[1;91mBản Quyền: Tài Handsome \e[1;33m║
1115\e[1;33m║ \033[1;92m(_ _)/ _\ ( ) \033[1;96mYouTube: TTT Original ♪ \e[1;33m║
1116\e[1;33m║ \033[1;92m)( / \ )( \033[1;97mWebsite: Update Sau \e[1;33m║
1117\e[1;33m║ \033[1;92m(__)\_/\_/(__) \033[1;94mTool Trao Đổi Sub Vip4 \e[1;33m║
1118";
1119echo "\e[1;33m╔═════════════════════════════════════════════════════╗\n";
1120echo "║ ║";
1121echo $t;
1122echo "║ ║\n";
1123echo "\e[1;33m╚═════════════════════════════════════════════════════╝\n";
1124}
1125function delay2($time){
1126 $green="\e[1;32m";
1127 $yellow="\e[1;33m";
1128 for($j = $time;$j> 0;$j--){
1129 echo "\r";
1130 echo " \r";
1131 echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
1132 sleep(1);
1133
1134 }
1135 echo "\r";
1136 echo " \r";
1137}