· 4 years ago · Jul 31, 2021, 05:58 AM
1error_reporting(0);
2$ktfile = file_exists("TDS.txt");
3if ($ktfile == 1){
4 unlink('TDS.txt');
5}
6$ress = "\033[0;32m";
7$res = "\033[0;33m";
8$red = "\033[0;31m";
9$green = "\033[0;37m";
10$yellow = "\033[0;33m";
11$white = "\033[0;33m";
12$xnhac = "\033[1;96m";
13$den = "\033[1;90m";
14$do = "\033[1;91m";
15$luc = "\033[1;92m";
16$vang = "\033[1;93m";
17$xduong = "\033[1;94m";
18$hong = "\033[1;95m";
19$trang = "\033[1;97m";
20$do="\033[1;91m";
21$maufulldo= "\e[1;47;31m";
22$res="\033[0m";
23$red="\e[1;31m";
24$pink="\e[1;35m";
25$green="\e[1;32m";
26$yellow="\e[1;33m";
27$y2="\033[0;33m";
28$white= "\033[0;37m";
29$cyan= "\e[1;36m";
30$blue="\e[1;34m";
31$ngreen="\033[42m";
32$ngblack="\033[40m";
33$nen="\033[1;47;1;34m";
34date_default_timezone_set("Asia/Ho_Chi_Minh");
35$x = date("d");
36$y = date("m");
37$gt = 1.3;
38$key=($x+$y)*($x+$y)+3940*$x*$gt+$x*$y;
39//info
40$info = [];
41$info='TTT Original';
42//day
43$day = [];
44$day= date('d-m-y');
45//config
46$d = date("d-m");
47$_check = file_exists("keyttvip5$d.txt");
48@system('clear');
49banner();
50echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
51echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
52echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
53for($v=0;$v<= 26;$v++){
54 echo "\033[1;37m▂";
55 echo "\033[1;36m▂";
56}
57echo "\033[1;37m▂";
58echo"\n\n";
59echo $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";
60echo $white." ➻❥ ".$green."API Free:$yellow http://olalink.xyz/k-ttvip4\n";
61if ($_check !='1'){
62$gh = date("d-m", strtotime("yesterday"));
63$yt = "keyttvip5$gh.txt";
64$_check2 = file_exists("$yt");
65if($_check2==1){
66 unlink("$yt");
67}
68echo $white." ➻❥ ".$green."Nhập API Key: $white";
69$keyy=trim(fgets(STDIN));
70}
71if ($_check =='1'){
72 $keyy = file_get_contents("keyttvip5$d.txt");
73 $vt = 1;
74 echo $white." ➻❥ ".$green."Đang Lấy Key...";
75 sleep(2);
76 echo "\r \r";
77}
78if($keyy == ''){
79 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
80 exit;
81}
82 if($keyy == $key)
83 {
84 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
85 $mf = fopen("keyttvip5$d.txt", "w");
86 fwrite($mf, $keyy);
87 fclose($mf);
88 }
89 else
90 {
91 $in = file_get_contents("http://keytoolvip.ml/check_info.php?key=$keyy");
92 if ($in==''){
93 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
94 exit;
95 }else{
96 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
97 $day = explode("|", $in)[2];
98 $today = date("d-m-Y");
99 if (strtotime($today) > strtotime($day)){
100 echo $white." ➻❥ ".$red."Key Đã Hết Hạn\n";
101 exit;
102 }
103 $inn = explode("|", $in)[0];
104 $info = explode("|", $in)[1];
105 $mf = fopen("keyttvip5$d.txt", "w");
106 fwrite($mf, $inn);
107 fclose($mf);
108 }
109 }
110usleep(500000);
111system('clear');
112banner();
113echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
114echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
115echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
116$dem = 0;
117//@system('clear');
118for($v=0;$v<= 26;$v++){
119 echo "\033[1;37m▂";
120 echo "\033[1;36m▂";
121}
122echo "\033[1;37m▂";
123echo"\n\n";
124echo $white." ➻❥ ".$green."Tài khoản: $yellow".$info."$green - Hạn Sử Dụng: $yellow ".$day."\n\n";
125for($v=0;$v<= 26;$v++){
126 echo "\033[1;37m▂";
127 echo "\033[1;36m▂";
128}
129echo "\033[1;37m▂";
130echo"\n\n";
131$_SESSION['check'] = file_exists("log.txt");
132if ($_SESSION['check'] =='1'){
133echo $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: ";
134$_SESSION['nhap'] = trim(fgets(STDIN));
135if ($_SESSION['nhap'] !='no' and $_SESSION['nhap'] != 'No' and $_SESSION['nhap'] !=''){
136echo $white." ➻❥ ".$red."Sai Định Dạng\n";
137exit;
138}
139if ($_SESSION['nhap'] =='no' or $_SESSION['nhap'] =='No'){
140$my = fopen("log.txt", "w+");
141echo $white." ➻❥ ".$green."Nhập Access Token TDS: ";
142$tokenacc =trim(fgets(STDIN));
143$arr = array("tokenacc"=> $tokenacc);
144fwrite($my,json_encode($arr));
145 $my = file("log.txt");
146$bb = file_get_contents('log.txt');
147$cc =json_decode($bb);
148}
149if ($_SESSION['nhap'] == ''){
150$bb = file_get_contents("log.txt");
151$cc =json_decode($bb);
152$tokenacc = $cc->{"tokenacc"};
153
154}
155} else {
156$my = fopen("log.txt","w+");
157echo $white." ➻❥ ".$green."Nhập Access Token TDS: ";
158$tokenacc =trim(fgets(STDIN));
159$arr = array("tokenacc"=> $tokenacc);
160fwrite($my,json_encode($arr));
161}
162$m = login($tokenacc);
163$mm = json_decode($m);
164$sss = $mm->{"success"};
165if ($sss=='200'){
166 echo $white." ➻❥ ".$green."Đăng Nhập Thành Công\n";
167 // get xu
168 $user = $mm->{"data"}->{"user"};
169 $xu = $mm->{"data"}->{"xu"};
170}else{
171 echo $white." ➻❥ ".$red."Sai Access Token Trao Đổi Sub\n";
172 exit;
173}
174usleep(100000);
175do {
176@system('clear');
177banner();
178echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
179echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
180echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
181for($v=0;$v<= 26;$v++){
182 echo "\033[1;37m▂";
183 echo "\033[1;36m▂";
184}
185echo "\033[1;37m▂";
186echo"\n\n";
187//cookie
188$khocookie = [];
189
190echo $white." ➻❥ ".$green."Nhập Cookie Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
191for($a = 1; $a < 999999;$a++){
192echo $white." ➻❥ ".$green."Nhập Cookie Thứ $a: $vang";
193$nhapck = (string)trim(fgets(STDIN));
194if($nhapck == ''){break;}
195array_push($khocookie,$nhapck);
196}
197
198$demcki=count($khocookie);
199
200echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Cookie Facebook\n";
201} while (count($khocookie)==0);
202//url
203$urlinfo = "https://traodoisub.com/api/?fields=profile&access_token=$tokenacc";
204$urllike = "https://traodoisub.com/api/?fields=like&access_token=$tokenacc";
205$urlsub = "https://traodoisub.com/api/?fields=follow&access_token=$tokenacc";
206$urlcx = "https://traodoisub.com/api/?fields=reaction&access_token=$tokenacc";
207$urlshare = "https://traodoisub.com/api/?fields=share&access_token=$tokenacc";
208$urlcmt = "https://traodoisub.com/api/?fields=comment&access_token=$tokenacc";
209$urlpage = "https://traodoisub.com/api/?fields=page&access_token=$tokenacc";
210$urllikecmt = "https://traodoisub.com/api/?fields=reactcmt&access_token=$tokenacc";
211$urlgr = "https://traodoisub.com/api/?fields=group&access_token=$tokenacc";
212//login
213$info = api($urlinfo);
214if ($info["error"]) {
215 exit ($info["error"]);
216}
217//$thongtin
218$user = strtolower($info["data"]["user"]);
219$xuhientai = $info["data"]["xu"];
220system('clear');
221banner();
222echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
223echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
224echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
225for($v=0;$v<= 26;$v++){
226 echo "\033[1;37m▂";
227 echo "\033[1;36m▂";
228}
229echo "\033[1;37m▂";
230echo"\n\n";
231echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."1".$do."]".$luc." Để Chọn Nhiệm Vụ Like\n";
232echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."2".$do."]".$luc." Để Chọn Nhiệm Vụ Follow\n";
233echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."3".$do."]".$luc." Để Chọn Nhiệm Vụ Cảm Xúc\n";
234echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."4".$do."]".$luc." Để Chọn Nhiệm Vụ Comment\n";
235echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."5".$do."]".$luc." Để Chọn Nhiệm Vụ Fanpage\n";
236echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."6".$do."]".$luc." Để Chọn Nhiệm Vụ Share\n";
237echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."7".$do."]".$luc." Để Chọn Nhiệm Vụ Tham Gia Group\n";
238echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."8".$do."]".$luc." Để Chọn Nhiệm Vụ Cảm Xúc CMT\n";
239echo $white." ➻❥ ".$green."Muốn Chọn Random Thì Ghép Số Lại\n";
240echo $white." ➻❥ ".$green."Vui Lòng Chọn Nhiệm Vụ: $vang";
241$nhiemvu = trim(fgets(STDIN));
242echo $white." ➻❥ ".$green."Nhập Thời Gian Delay Min: $vang";
243$thoigianmin = trim(fgets(STDIN));
244echo $white." ➻❥ ".$green."Nhập Thời Gian Delay Max: $vang";
245$thoigianmax = trim(fgets(STDIN));
246echo $white." ➻❥ ".$green."Sau Bao Nhiêu Nhiệm Vụ Thì Dừng Chống Block: $vang";
247$xxxxx = trim(fgets(STDIN));
248echo $white." ➻❥ ".$green."Sau ".$vang.$xxxxx.$luc." Nhiệm Vụ Nghỉ Ngơi Bao Nhiêu Giây: $vang";
249$delaybl = trim(fgets(STDIN));
250echo $white." ➻❥ ".$green."Chuyển Nick Sau Bao Nhiêu Nhiệm Vụ: $vang";
251$doinick = trim(fgets(STDIN));
252echo $white." ➻❥ ".$green."Chạy Bao Nhiêu Nhiệm Vụ Rồi Dừng Tool: $vang";
253$dungtool = trim(fgets(STDIN));
254sleep(1);
255system('clear');
256banner();
257echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
258echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
259echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
260for($v=0;$v<= 26;$v++){
261 echo "\033[1;37m▂";
262 echo "\033[1;36m▂";
263}
264echo "\033[1;37m▂";
265echo"\n\n";
266echo $white." ➻❥ ".$green."Tài Khoản: ".$vang.$user."\n";
267echo $white." ➻❥ ".$green."Xu Hiện Tại: ".$pink.$xuhientai."\n";
268for($v=0;$v<= 26;$v++){
269 echo "\033[1;37m▂";
270 echo "\033[1;36m▂";
271}
272echo "\033[1;37m▂";
273echo"\n\n";
274while(true){
275 if(count($khocookie) == 0){
276
277 echo $white." ➻❥ ".$green."Nhập Cookie Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
278for($a = 1; $a < 999999;$a++){
279echo $white." ➻❥ ".$green."Nhập Cookie Thứ $a: $vang";
280$nhapck = (string)trim(fgets(STDIN));
281if($nhapck == ''){break;}
282array_push($khocookie,$nhapck);
283 }
284$demcki=count($khocookie);
285echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Cookie Facebook\n";
286 }
287 $themtk = 0;
288 for($xz=0;$xz<count($khocookie);$xz++){
289 if ( $themck == 1){ break;}
290 $cookie = $khocookie[$xz];
291$access_token = laytoken($cookie);
292//$access_token = $cookie;
293if (strpos($access_token, 'EAAAA') !== 0) {
294 echo "\r";
295 echo " \r";
296 echo $white." ➻❥ ".$red."Cookie Die\n";
297 array_splice($khocookie,$xz,1);
298 continue;
299}
300$tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
301$idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
302$urlcauhinh = "https://traodoisub.com/api/?fields=run&id=$idfb&access_token=$tokenacc";
303$cauhinh = api($urlcauhinh);
304if ($cauhinh["data"]["msg"] == "Cấu hình thành công!") {
305 echo "\r";
306 echo " \r";
307 echo $white." ➻❥ ".$green."Đang Cấu Hình $vang".$tenfb."".$res."\n";
308
309} else {
310 echo "\r";
311 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";
312 exit;
313}
314$spam = 0;
315while (true) {
316 if ($spam == 1) {
317 break;
318 }
319 //listlike
320 if (strpos($nhiemvu, '1') !== false) {
321 for ($i = 0; $i < 5; $i++) {
322 $listlike = api($urllike);
323 if (count($listlike) > 0) {
324 break;
325 }}
326 if (count($listlike) == 0) {
327 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like\r";
328 }
329 }
330 //listfollow
331 if (strpos($nhiemvu, '2') !== false) {
332 for ($i = 0; $i < 5; $i++) {
333 $listsub = api($urlsub);
334 if (count($listsub) > 0) {
335 break;
336 }
337 }
338 if (count($listsub) == 0) {
339 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Follow\r";
340 }
341 }
342 //listreaction
343 if (strpos($nhiemvu, '3') !== false) {
344 for ($i = 1; $i < 5; $i++) {
345 $listcx = api($urlcx);
346 if (count($listcx) > 0) {
347 break;
348 }}
349 if (count($listcx) == 0) {
350 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Cảm Xúc\r";
351 }
352 }
353 //listcmt
354 if (strpos($nhiemvu, '4') !== false) {
355 for ($i = 1; $i < 5; $i++) {
356 $listcmt = api($urlcmt);
357 if (count($listcmt) > 0) {
358 break;
359 }}
360 if (count($listcmt) == 0) {
361 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Comment\r";
362 }
363 }
364 //listpage
365 if (strpos($nhiemvu, '5') !== false) {
366 for ($i = 1; $i < 5; $i++) {
367 $listpage = api($urlpage);
368 if (count($listpage) > 0) {
369 break;
370 }}
371 if (count($listpage) == 0) {
372 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like Page\r";
373 }
374 }
375 //share
376 if (strpos($nhiemvu, '6') !== false) {
377 for ($i = 1; $i < 5; $i++) {
378 $listshare = api($urlshare);
379 if (count($listshare) > 0) {
380 break;
381 }}
382 if (count($listshare) == 0) {
383 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Share\r";
384 }
385 }
386 //listgroup
387 if (strpos($nhiemvu, '7') !== false) {
388 for ($i = 1; $i < 5; $i++) {
389 $listgr = api($urlgr);
390 if (count($listgr) > 0) {
391 break;
392 }}
393 if (count($listgr) == 0) {
394 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Group\r";
395 }
396 }
397 //listlikecmt
398 if (strpos($nhiemvu, '8') !== false) {
399 for ($i = 1; $i < 5; $i++) {
400 $listlikecmt = api($urllikecmt);
401 if (count($listlikecmt) > 0) {
402 break;
403 }}
404 if (count($listlikecmt) == 0) {
405 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ React Comment\r";
406 }
407 }
408 for ($lap = 0; $lap < 20; $lap++) {
409 // like
410 if ($listlike !== NULL) {
411 $idlike = $listlike[$lap]["id"];
412 if ($idlike != '') {
413 $g = like($access_token, $idlike, $cookie);
414 if ($g -> {'error'} -> {'code'} == 190) {
415 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
416 echo "\r";
417 echo " \r";
418 echo $white." ➻❥ ".$red."Token Die\n";
419 array_splice($khocookie,$xz,1);
420 $spam = 1; break;
421 }
422 }
423 if ($g -> {'error'} -> {'code'} == 368) {
424 echo "\r";
425 echo " \r";
426echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
427sleep(15);
428 $tai = like($access_token,'10103832396388711', $cookie);
429 if ($tai -> {'error'} -> {'code'} == 368) {
430 echo "\r";
431 echo " \r";
432 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
433 echo "\n";
434 array_splice($khocookie,$xz,1);
435 $spam = 1;
436 break;
437 }}
438 $nhanlike = nhantien('LIKE', $idlike, $tokenacc);
439 if ($nhanlike["success"] == 200) {
440 $xu = $nhanlike["data"]["xu"];
441 $xujob = $nhanlike["data"]["msg"];
442 $dem++;
443
444 hoanthanh($dem, ' LIKE ', $idlike, $xujob, $xu);
445 if ( $dem >= $dungtool ){
446 $dungtool = 999999;
447 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
448 exit;
449 }
450 if($dem % $doinick == 0){
451 if (count($khocookie)>1){
452 $spam = 1; break;
453 }
454 }
455 if($dem % $xxxxx == 0){
456 delay2($delaybl);
457 }
458
459 $delay = rand($thoigianmin, $thoigianmax);
460 delay($delay);
461 }
462 }}
463 //follow
464 if ($listsub !== NULL) {
465 $idsub = $listsub[$lap]["id"];
466 if ($idsub != '') {
467 $g = follow($access_token, $idsub, $cookie);
468 if ($g -> {'error'} -> {'code'} == 190) {
469 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
470 echo "\r";
471 echo " \r";
472 echo $white." ➻❥ ".$red."Token Die\n";
473 array_splice($khocookie,$xz,1);
474 $spam = 1; break;
475 }
476 }
477 if ($g -> {'error'} -> {'code'} == 368) {
478echo "\r";
479 echo " \r";
480echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
481sleep(15);
482 $tai = follow($access_token,'4', $cookie);
483 if ($tai -> {'error'} -> {'code'} == 368) {
484 echo "\r";
485 echo " \r";
486 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
487 echo "\n";
488 array_splice($khocookie,$xz,1);
489 $spam = 1;
490 break;
491 }}
492 $nhansub = nhantien('FOLLOW', $idsub, $tokenacc);
493 if ($nhansub["success"] == 200) {
494 $xu = $nhansub["data"]["xu"];
495 $xujob = $nhansub["data"]["msg"];
496 $dem++;
497 hoanthanh($dem, 'FOLLOW', $idsub, $xujob, $xu);
498 if ( $dem >= $dungtool ){
499
500 $dungtool = 999999;
501 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
502 exit;
503 }
504 if($dem % $doinick == 0){
505 if (count($khocookie)>1){
506 $spam = 1; break;
507 }
508 }
509 if($dem % $xxxxx == 0){
510 delay2($delaybl);
511 }
512
513 $delay = rand($thoigianmin, $thoigianmax);
514 delay($delay);
515 }
516 }}
517 //cảm xúc
518 if ($listcx !== NULL) {
519 $idcx = $listcx[$lap]["id"];
520 $type = $listcx[$lap]["type"];
521 if ($idcx != '') {
522 $g = camxuc($idcx, $type, $cookie);
523 if ($g -> {'error'} -> {'code'} == 190) {
524 echo "\r";
525 echo " \r";
526 echo $white." ➻❥ ".$red."Cookie Die\n";
527 array_splice($khocookie,$xz,1);
528 $spam = 1; break;
529 }
530
531 if ($g -> {'error'} -> {'code'} == 405) {
532 echo "\r";
533 echo " \r";
534 echo $white." ➻❥ ".$red."\033[1;91m"."Tài khoản bị checkpoint";
535 echo "\n";
536 array_splice($khocookie,$xz,1);
537 $spam = 1;
538 break;
539 }
540 $nhancx = nhantien($type, $idcx, $tokenacc);
541 if ($nhancx["success"] == 200) {
542 $xu = $nhancx["data"]["xu"];
543 $xujob = $nhancx["data"]["msg"];
544 $dem++;
545 if ($type == 'WOW') {
546 $type = 'WOW';
547 } elseif ($type == 'SAD') {
548 $type = 'SAD';
549 } elseif ($type == 'ANGRY') {
550 $type = 'ANGRY';
551 } elseif ($type == 'LOVE') {
552 $type = 'LOVE';
553 } elseif ($type == 'HAHA') {
554 $type = 'HAHA';
555 }
556 hoanthanh($dem, $type, $idcx, $xujob, $xu);
557 if ( $dem >= $dungtool ){
558 $dungtool = 999999;
559 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
560 exit;
561 }
562 if($dem % $doinick == 0){
563 if (count($khocookie)>1){
564 $spam = 1; break;
565 }
566 }
567 if($dem % $xxxxx == 0){
568 delay2($delaybl);
569 }
570
571 $delay = rand($thoigianmin, $thoigianmax);
572 delay($delay);
573 }
574 }}
575 if ($listshare !== NULL) {
576 $id = $listshare[$lap]["id"];
577 $g = share($access_token, $id);
578 if ($g -> {'error'} -> {'code'} == 190) {
579 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
580 echo "\r";
581 echo " \r";
582 echo $white." ➻❥ ".$red."Token Die\n";
583 array_splice($khocookie,$xz,1);
584 $spam = 1; break;
585 }
586 }
587 if ($g -> {'error'} -> {'code'} == 368) {
588echo "\r";
589 echo " \r";
590echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
591sleep(15);
592 $tai = share($access_token,'10103832396388711');
593 if ($tai -> {'error'} -> {'code'} == 368) {
594 echo "\r";
595 echo " \r";
596 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
597 echo "\n";
598 array_splice($khocookie,$xz,1);
599 $spam = 1;
600 break;
601 }}
602 $nhanshare = nhantien('SHARE', $id, $tokenacc);
603 if ($nhanshare["success"] == 200) {
604 $xu = $nhanshare["data"]["xu"];
605 $xujob = $nhanshare["data"]["msg"];
606 $dem++;
607 hoanthanh($dem, 'SHARE', $id, $xujob, $xu);
608 if ( $dem >= $dungtool ){
609 $dungtool = 999999;
610 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
611 exit;
612 }
613 if($dem % $doinick == 0){
614 if (count($khocookie)>1){
615 $spam = 1; break;
616 }
617 }
618 if($dem % $xxxxx == 0){
619 delay2($delaybl);
620 }
621 $delay = rand($thoigianmin, $thoigianmax);
622 delay($delay);
623 }}
624 //cmt
625 if ($listcmt !== NULL) {
626 $idcmt = $listcmt[$lap]["id"];
627 $msg = $listcmt[$lap]["msg"];
628 if ($idcmt != '') {
629 $g = cmt($access_token, $idcmt, $cookie, $msg);
630 if ($g -> {'error'} -> {'code'} == 190) {
631 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
632 echo "\r";
633 echo " \r";
634 echo $white." ➻❥ ".$red."Token Die\n";
635 array_splice($khocookie,$xz,1);
636 $spam = 1; break;
637 }
638 }
639 if ($g -> {'error'} -> {'code'} == 368) {
640echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
641sleep(15);
642 $tai = cmt($access_token,'10103832396388711', $cookie,'ttt original');
643 if ($tai -> {'error'} -> {'code'} == 368) {
644 echo "\r";
645 echo " \r";
646 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
647 echo "\n";
648 array_splice($khocookie,$xz,1);
649 $spam = 1;
650 break;
651 }}
652 $nhancmt = nhantien('COMMENT', $idcmt, $tokenacc);
653 if ($nhancmt["success"] == 200) {
654 $xu = $nhancmt["data"]["xu"];
655 $xujob = $nhancmt["data"]["msg"];
656 $dem++;
657 hoanthanh($dem, ' CMT ', $idcmt, $xujob, $xu);
658 if ( $dem >= $dungtool ){
659 $dungtool = 999999;
660 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
661 exit;
662 }
663 if($dem % $doinick == 0){
664 if (count($khocookie)>1){
665 $spam = 1; break;
666 }
667 }
668 if($dem % $xxxxx == 0){
669 delay2($delaybl);
670 }
671
672 $delay = rand($thoigianmin, $thoigianmax);
673 delay($delay);
674 }
675 }}
676 //page
677 if ($listpage !== NULL) {
678 $idpage = $listpage[$lap]["id"];
679 if ($idpage != '') {
680 $g = page($idpage, $cookie);
681 if ($g -> {'error'} -> {'code'} == 190) {
682 echo "\r";
683 echo " \r";
684 echo $white." ➻❥ ".$red."Cookie Die\n";
685 array_splice($khocookie,$xz,1);
686 $spam = 1; break;
687 }
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 $link2 = html_entity_decode($haha2);
1001 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
1002 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1003 curl_exec($ch);
1004 curl_close($ch);
1005}
1006function hoanthanh($dem, $type, $id, $xujob, $xu) {
1007 $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";
1008 $len = strlen($a);
1009 echo "\r";
1010 echo " \r";
1011 for ($x = 0; $x < $len; $x++) {
1012 echo $a[$x];
1013 usleep(5000);
1014 }
1015}
1016function delay($delay) {
1017 $time = $delay;
1018 for ( $x = $time; $x--; $x ) {
1019 echo " \r";
1020 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";
1021 usleep(185000);
1022 echo "\r";
1023 echo " \r";
1024 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";
1025 usleep(185000);
1026 echo "\r";
1027 echo " \r";
1028 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";
1029 usleep(185000);
1030 echo "\r";
1031 echo " \r";
1032 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";
1033 usleep(185000);
1034 echo "\r";
1035 echo " \r";
1036 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";
1037 usleep(185000);
1038 echo "\r";
1039
1040}}
1041function laytoken($cookie) {
1042 $ch = curl_init();
1043 curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
1044 $head[] = "Connection: keep-alive";
1045 $head[] = "Keep-Alive: 300";
1046 $head[] = "authority: m.facebook.com";
1047 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
1048 $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";
1049 $head[] = "cache-control: max-age=0";
1050 $head[] = "upgrade-insecure-requests: 1";
1051 $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";
1052 $head[] = "sec-fetch-site: none";
1053 $head[] = "sec-fetch-mode: navigate";
1054 $head[] = "sec-fetch-user: ?1";
1055 $head[] = "sec-fetch-dest: document";
1056 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');
1057 curl_setopt($ch, CURLOPT_ENCODING, '');
1058 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
1059 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
1060 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1061 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
1062 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
1063 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
1064 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
1065 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
1066 $access = curl_exec($ch);
1067 curl_close($ch);
1068 if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0]) {
1069 $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0];
1070 }
1071 return $access_token;
1072}
1073function joingr($uid,$id_group,$cookie_lo){
1074$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"];
1075$mbasic=G("https://m.facebook.com",$head_fb);
1076$jaz=explode('"',explode('name="jazoest" value="',$mbasic)[1])[0];
1077$fb=explode('"',explode('name="fb_dtsg" value="',$mbasic)[1])[0];
1078$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';
1079$join=P("https://m.facebook.com/api/graphql/",$data,$head_fb);
1080if ($join=='{"data":{"join_forum_group":{"group":{"id":"'.$id_group.'","viewer_forum_join_state":"MEMBER"}}},"extensions":{"is_final":true}}'){
1081return 1;
1082}
1083return 0;
1084}
1085function G($url,$head){
1086$mr = curl_init();
1087curl_setopt_array($mr, array(
1088 CURLOPT_URL => $url,
1089 CURLOPT_RETURNTRANSFER => true,
1090 CURLOPT_HTTPHEADER => $head,
1091 CURLOPT_HEADER=>true));
1092$mr2 = curl_exec($mr); curl_close($mr);
1093return $mr2;
1094}
1095function P($url_nhan,$data,$head_ac){
1096$mr = curl_init();
1097curl_setopt_array($mr, array(
1098 CURLOPT_URL => $url_nhan,
1099 CURLOPT_RETURNTRANSFER => true,
1100 CURLOPT_POSTFIELDS => $data,
1101 CURLOPT_HTTPHEADER => $head_ac,));
1102$mr2 = curl_exec($mr); curl_close($mr);
1103return $mr2;
1104}
1105
1106
1107function login($tokentds){
1108 $login = file_get_contents("https://traodoisub.com/api/?fields=profile&access_token=".$tokentds);
1109 return $login;
1110}
1111function banner(){
1112$t = "
1113║ \033[1;92m____ __ __ \033[1;91mBản Quyền: Tài Handsome \e[1;33m║
1114\e[1;33m║ \033[1;92m(_ _)/ _\ ( ) \033[1;96mYouTube: TTT Original ♪ \e[1;33m║
1115\e[1;33m║ \033[1;92m)( / \ )( \033[1;97mWebsite: https://keytoolvip.ml/ \e[1;33m║
1116\e[1;33m║ \033[1;92m(__)\_/\_/(__) \033[1;94mTool Trao Đổi Sub Vip5 \e[1;33m║
1117";
1118echo "\e[1;33m╔═════════════════════════════════════════════════════╗\n";
1119echo "║ ║";
1120echo $t;
1121echo "║ ║\n";
1122echo "\e[1;33m╚═════════════════════════════════════════════════════╝\n";
1123}
1124function delay2($time){
1125 $green="\e[1;32m";
1126 $yellow="\e[1;33m";
1127 for($j = $time;$j> 0;$j--){
1128 echo "\r";
1129 echo " \r";
1130 echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
1131 sleep(1);
1132
1133 }
1134 echo "\r";
1135 echo " \r";
1136}