· 4 years ago · Aug 02, 2021, 04:20 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$key = [];
36$x = date("d");
37$y = date("m");
38$gt = 1.9;
39$key=($x+$y)*($x+$y)+3940*$x*$gt+$x*$y;
40$key=intval($key);
41//info
42$info = [];
43$info='TTT Original';
44//day
45$day = [];
46$day= date('d-m-y');
47//config
48$today = date("d-m-Y");
49$d = date("d-m");
50$_check = file_exists("keytk3$d.txt");
51@system('clear');
52banner();
53echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
54echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
55echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
56for($v=0;$v<= 26;$v++){
57 echo "\033[1;37m▂";
58 echo "\033[1;36m▂";
59}
60echo "\033[1;37m▂";
61echo"\n\n";
62echo $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";
63echo $white." ➻❥ ".$green."Key Free:$pink http://olalink.co/key-toolv3\n";
64echo $white." ➻❥ ".$green."API Free:$yellow http://olalink.co/key-tk3$green (Dự Phòng)\n";
65if ($_check !='1'){
66$gh = date("d-m", strtotime("yesterday"));
67$yt = "keytk3$gh.txt";
68$_check2 = file_exists("$yt");
69if($_check2==1){
70 unlink("$yt");
71}
72echo $white." ➻❥ ".$green."Nhập API Key: $white";
73$keyy=trim(fgets(STDIN));
74}
75if ($_check =='1'){
76 $keyy = file_get_contents("keytk3$d.txt");
77 $vt = 1;
78 echo $white." ➻❥ ".$green."Đang Lấy Key...";
79 sleep(2);
80 echo "\r \r";
81}
82if($keyy == ''){
83 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
84 exit;
85}
86 if($keyy == $key)
87 {
88 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
89 $mf = fopen("keytk3$d.txt", "w");
90 fwrite($mf, $keyy);
91 fclose($mf);
92 }
93 else
94 {
95 $in = file_get_contents("http://keytoolvip.ml/check_info.php?key=$keyy");
96 if ($in==''){
97 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
98 exit;
99 }else{
100 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
101 $day = explode("|", $in)[2];
102 $today = date("d-m-Y");
103 if (strtotime($today) > strtotime($day)){
104 echo $white." ➻❥ ".$red."Key Đã Hết Hạn\n";
105 exit;
106 }
107 $inn = explode("|", $in)[0];
108 $info = explode("|", $in)[1];
109 $mf = fopen("keytk3$d.txt", "w");
110 fwrite($mf, $inn);
111 fclose($mf);
112 }
113 }
114usleep(500000);
115@system('clear');
116banner();
117echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
118echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
119echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
120$dem = 0;
121//@system('clear');
122for($v=0;$v<= 26;$v++){
123 echo "\033[1;37m▂";
124 echo "\033[1;36m▂";
125}
126echo "\033[1;37m▂";
127echo"\n\n";
128echo $white." ➻❥ ".$green."Tài khoản: $yellow".$info."$green - Hạn Sử Dụng: $yellow ".$day."\n\n";
129for($v=0;$v<= 26;$v++){
130 echo "\033[1;37m▂";
131 echo "\033[1;36m▂";
132}
133echo "\033[1;37m▂";
134echo"\n\n";
135$_SESSION['check'] = file_exists("log.txt");
136if ($_SESSION['check'] =='1'){
137echo $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: ";
138$_SESSION['nhap'] = trim(fgets(STDIN));
139if ($_SESSION['nhap'] !='no' and $_SESSION['nhap'] != 'No' and $_SESSION['nhap'] !=''){
140echo $white." ➻❥ ".$red."Sai Định Dạng\n";
141exit;
142}
143if ($_SESSION['nhap'] =='no' or $_SESSION['nhap'] =='No'){
144$my = fopen("log.txt", "w+");
145echo $white." ➻❥ ".$green."Nhập Access Token TDS: ";
146$tokenacc =trim(fgets(STDIN));
147$arr = array("tokenacc"=> $tokenacc);
148fwrite($my,json_encode($arr));
149 $my = file("log.txt");
150$bb = file_get_contents('log.txt');
151$cc =json_decode($bb);
152}
153if ($_SESSION['nhap'] == ''){
154$bb = file_get_contents("log.txt");
155$cc =json_decode($bb);
156$tokenacc = $cc->{"tokenacc"};
157
158}
159} else {
160$my = fopen("log.txt","w+");
161echo $white." ➻❥ ".$green."Nhập Access Token TDS: ";
162$tokenacc =trim(fgets(STDIN));
163$arr = array("tokenacc"=> $tokenacc);
164fwrite($my,json_encode($arr));
165}
166$m = login($tokenacc);
167$mm = json_decode($m);
168$sss = $mm->{"success"};
169if ($sss=='200'){
170 echo $white." ➻❥ ".$green."Đăng Nhập Thành Công\n";
171 // get xu
172 $user = $mm->{"data"}->{"user"};
173 $xuhientai = $mm->{"data"}->{"xu"};
174}else{
175 echo $white." ➻❥ ".$red."Sai Access Token Trao Đổi Sub\n";
176 exit;
177}
178usleep(100000);
179do {
180@system('clear');
181banner();
182echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
183echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
184echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
185for($v=0;$v<= 26;$v++){
186 echo "\033[1;37m▂";
187 echo "\033[1;36m▂";
188}
189echo "\033[1;37m▂";
190echo"\n\n";
191//cookie
192$khocookie = [];
193echo $white." ➻❥ ".$green."Link Lấy Token: https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed\n";
194echo $white." ➻❥ ".$green."Nhập Token Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
195for($a = 1; $a < 999999;$a++){
196echo $white." ➻❥ ".$green."Nhập Token Thứ $a: $vang";
197$nhapck = (string)trim(fgets(STDIN));
198if($nhapck == ''){break;}
199
200array_push($khocookie,$nhapck);
201}
202
203$demcki=count($khocookie);
204
205echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Token Facebook\n";
206usleep(300000);
207} while (count($khocookie)==0);
208//url
209$urlinfo = "https://traodoisub.com/api/?fields=profile&access_token=$tokenacc";
210$urllike = "https://traodoisub.com/api/?fields=like&access_token=$tokenacc";
211$urlsub = "https://traodoisub.com/api/?fields=follow&access_token=$tokenacc";
212$urlshare = "https://traodoisub.com/api/?fields=share&access_token=$tokenacc";
213$urlcmt = "https://traodoisub.com/api/?fields=comment&access_token=$tokenacc";
214
215//$thongtin
216
217system('clear');
218banner();
219echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
220echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
221echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
222for($v=0;$v<= 26;$v++){
223 echo "\033[1;37m▂";
224 echo "\033[1;36m▂";
225}
226echo "\033[1;37m▂";
227echo"\n\n";
228echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."1".$do."]".$luc." Để Chọn Nhiệm Vụ Like\n";
229echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."2".$do."]".$luc." Để Chọn Nhiệm Vụ Follow\n";
230
231echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."3".$do."]".$luc." Để Chọn Nhiệm Vụ Comment\n";
232
233echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."4".$do."]".$luc." Để Chọn Nhiệm Vụ Share\n";
234
235echo $white." ➻❥ ".$green."Muốn Chọn Random Thì Ghép Số Lại (Ví Dụ 1+2)\n";
236echo $white." ➻❥ ".$green."Vui Lòng Chọn Nhiệm Vụ: $vang";
237$nhiemvu = trim(fgets(STDIN));
238echo $white." ➻❥ ".$green."Nhập Thời Gian Min: $vang";
239$thoigianmin = trim(fgets(STDIN));
240echo $white." ➻❥ ".$green."Nhập Thời Gian Max: $vang";
241$thoigianmax = trim(fgets(STDIN));
242echo $white." ➻❥ ".$green."Sau Bao Nhiêu Nhiệm Vụ Thì Dừng Chống Block: $vang";
243$xxxxx = trim(fgets(STDIN));
244echo $white." ➻❥ ".$green."Sau ".$vang.$xxxxx.$luc." Nhiệm Vụ Nghỉ Ngơi Bao Nhiêu Giây: $vang";
245$delaybl = trim(fgets(STDIN));
246echo $white." ➻❥ ".$green."Chuyển Nick Sau Bao Nhiêu Nhiệm Vụ: $vang";
247$doinick = trim(fgets(STDIN));
248echo $white." ➻❥ ".$green."Chạy Bao Nhiêu Nhiệm Vụ Rồi Dừng Tool: $vang";
249$dungtool = trim(fgets(STDIN));
250sleep(1);
251system('clear');
252banner();
253echo $white." $maufulldo Quảng Cáo $ngblack\n\n";
254echo $white." ➻❥ ".$green."Site Mua Key Tool, Clone Giá Rẻ Của TTT Original\n";
255echo $white." ➻❥ ".$green."Link Web:$pink https://keytoolvip.ml/\n";
256for($v=0;$v<= 26;$v++){
257 echo "\033[1;37m▂";
258 echo "\033[1;36m▂";
259}
260echo "\033[1;37m▂";
261echo"\n\n";
262echo $white." ➻❥ ".$green."Tài Khoản: ".$vang.$user."\n";
263echo $white." ➻❥ ".$green."Xu Hiện Tại: ".$pink.$xuhientai."\n";
264for($v=0;$v<= 26;$v++){
265 echo "\033[1;37m▂";
266 echo "\033[1;36m▂";
267}
268echo "\033[1;37m▂";
269echo"\n\n";
270while(true){
271 if(count($khocookie) == 0){
272
273 echo $white." ➻❥ ".$green."Nhập Token Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
274for($a = 1; $a < 999999;$a++){
275echo $white." ➻❥ ".$green."Nhập Token Thứ $a: $vang";
276$nhapck = (string)trim(fgets(STDIN));
277if($nhapck == ''){break;}
278array_push($khocookie,$nhapck);
279 }
280$demcki=count($khocookie);
281echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Token Facebook\n";
282 }
283 $themtk = 0;
284 for($xz=0;$xz<count($khocookie);$xz++){
285 if ( $themck == 1){ break; }
286 $access_token = $khocookie[$xz];
287
288if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
289 echo "\r";
290 echo " \r";
291 echo $white." ➻❥ ".$red."Token Die\n";
292 array_splice($khocookie,$xz,1);
293 continue;
294}
295$tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
296$idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
297$urlcauhinh = "https://traodoisub.com/api/?fields=run&id=$idfb&access_token=$tokenacc";
298$cauhinh = api($urlcauhinh);
299if ($cauhinh["data"]["msg"] == "Cấu hình thành công!") {
300 echo $white." ➻❥ ".$green."Đang Cấu Hình $vang".$tenfb."".$res."\n";
301
302} else {
303 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";
304 exit;
305}
306$spam = 0;
307while (true) {
308 if ($spam == 1) {
309 break;
310 }
311 //listlike
312 if (strpos($nhiemvu, '1') !== false) {
313 $listlike = api($urllike);
314 if (count($listlike) == 0) {
315 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Like\r";
316 }
317 }
318 //listfollow
319 if (strpos($nhiemvu, '2') !== false) {
320 $listsub = api($urlsub);
321 if (count($listsub) == 0) {
322 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Follow\r";
323 }
324 }
325
326 //listcmt
327 if (strpos($nhiemvu, '3') !== false) {
328 $listcmt = api($urlcmt);
329 if (count($listcmt) == 0) {
330 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Comment\r";
331 }
332 }
333 //share
334 if (strpos($nhiemvu, '4') !== false) {
335 $listshare = api($urlshare);
336 if (count($listshare) == 0) {
337 echo $white." ➻❥ ".$green."Hết Nhiệm Vụ Share\r";
338 }
339 }
340
341 for ($lap = 0; $lap < 20; $lap++) {
342 // like
343 if ($listlike != NULL) {
344 $idlike = $listlike[$lap]["id"];
345 if ($idlike != '') {
346
347 $g = like($access_token, $idlike, $cookie);
348 if ($g -> {'error'} -> {'code'} == 190) {
349 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
350 echo "\r";
351 echo " \r";
352 echo $white." ➻❥ ".$red."Token Die\n";
353 array_splice($khocookie,$xz,1);
354 $spam = 1; break;
355 }
356 }
357 if ($g -> {'error'} -> {'code'} == 368) {
358echo "\r";
359echo " \r";
360echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
361sleep(15);
362 $tai = like($access_token,'10103832396388711', $cookie);
363 if ($tai -> {'error'} -> {'code'} == 368) {
364 echo "\r";
365 echo " \r";
366 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
367 echo "\n";
368 array_splice($khocookie,$xz,1);
369 $spam = 1;
370 break;
371 }}
372 $nhanlike = nhantien('LIKE', $idlike, $tokenacc);
373 if ($nhanlike["success"] == 200) {
374 $xu = $nhanlike["data"]["xu"];
375 $xujob = $nhanlike["data"]["msg"];
376 $dem++;
377
378 hoanthanh($dem, ' LIKE ', $idlike, $xujob, $xu);
379 if ( $dem >= $dungtool ){
380 $dungtool = 999999;
381 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
382 exit;
383 }
384 if($dem % $doinick == 0){
385 if (count($khocookie)>1){
386 $spam = 1; break;
387 }
388 }
389 if($dem % $xxxxx == 0){
390 delay2($delaybl);
391 }
392
393 $delay = rand($thoigianmin, $thoigianmax);
394 delay($delay);
395 }
396 }}
397 //follow
398 if ($listsub != NULL) {
399 $idsub = $listsub[$lap]["id"];
400 if ($idsub != '') {
401
402 $g = follow($access_token, $idsub, $cookie);
403 if ($g -> {'error'} -> {'code'} == 190) {
404 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
405 echo "\r";
406 echo " \r";
407 echo $white." ➻❥ ".$red."Token Die\n";
408 array_splice($khocookie,$xz,1);
409 $spam = 1; break;
410 }
411 }
412 if ($g -> {'error'} -> {'code'} == 368) {
413echo "\r";
414echo " \r";
415echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
416sleep(15);
417 $tai = follow($access_token,'4', $cookie);
418 if ($tai -> {'error'} -> {'code'} == 368) {
419 echo "\r";
420 echo " \r";
421 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
422 echo "\n";
423 array_splice($khocookie,$xz,1);
424 $spam = 1;
425 break;
426 }}
427
428 $nhansub = nhantien('FOLLOW', $idsub, $tokenacc);
429 if ($nhansub["success"] == 200) {
430 $xu = $nhansub["data"]["xu"];
431 $xujob = $nhansub["data"]["msg"];
432 $dem++;
433 hoanthanh($dem, 'FOLLOW', $idsub, $xujob, $xu);
434 if ( $dem >= $dungtool ){
435
436 $dungtool = 999999;
437 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
438 exit;
439 }
440 if($dem % $doinick == 0){
441 if (count($khocookie)>1){
442 $spam = 1; break;
443 }
444 }
445 if($dem % $xxxxx == 0){
446 delay2($delaybl);
447 }
448
449 $delay = rand($thoigianmin, $thoigianmax);
450 delay($delay);
451 }
452 }}
453
454 //share
455 if ($listshare != NULL) {
456 $id = $listshare[$lap]["id"];
457 if ($id != '') {
458
459 $g = share($access_token, $id);
460 if ($g -> {'error'} -> {'code'} == 190) {
461 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
462 echo "\r";
463 echo " \r";
464 echo $white." ➻❥ ".$red."Token Die\n";
465 array_splice($khocookie,$xz,1);
466 $spam = 1; break;
467 }
468 }
469 if ($g -> {'error'} -> {'code'} == 368) {
470echo "\r";
471echo " \r";
472echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
473sleep(15);
474 $tai = share($access_token,'10103832396388711');
475 if ($tai -> {'error'} -> {'code'} == 368) {
476 echo "\r";
477 echo " \r";
478 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
479 echo "\n";
480 array_splice($khocookie,$xz,1);
481 $spam = 1;
482 break;
483 }}
484
485 $nhanshare = nhantien('SHARE', $id, $tokenacc);
486 if ($nhanshare["success"] == 200) {
487 $xu = $nhanshare["data"]["xu"];
488 $xujob = $nhanshare["data"]["msg"];
489 $dem++;
490 hoanthanh($dem, 'SHARE', $id, $xujob, $xu);
491 if ( $dem >= $dungtool ){
492 $dungtool = 999999;
493 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
494 exit;
495 }
496 if($dem % $doinick == 0){
497 if (count($khocookie)>1){
498 $spam = 1; break;
499 }
500 }
501 if($dem % $xxxxx == 0){
502 delay2($delaybl);
503 }
504 $delay = rand($thoigianmin, $thoigianmax);
505 delay($delay);
506 }
507 }}
508 //cmt
509 if ($listcmt != NULL) {
510 $idcmt = $listcmt[$lap]["id"];
511 $msg = $listcmt[$lap]["msg"];
512 if ($idcmt != '') {
513
514 $g = cmt($access_token, $idcmt, $cookie, $msg);
515 if ($g -> {'error'} -> {'code'} == 190) {
516 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
517 echo "\r";
518 echo " \r";
519 echo $white." ➻❥ ".$red."Token Die\n";
520 array_splice($khocookie,$xz,1);
521 $spam = 1; break;
522 }
523 }
524 if ($g -> {'error'} -> {'code'} == 368) {
525echo "\r";
526echo " \r";
527echo $white." ➻❥ \033[1;91mĐợi 15s Check Xem Có Block Ảo Không\r";
528sleep(15);
529 $tai = cmt($access_token,'10103832396388711', $cookie,'ttt original');
530 if ($tai -> {'error'} -> {'code'} == 368) {
531 echo "\r";
532 echo " \r";
533 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
534 echo "\n";
535 array_splice($khocookie,$xz,1);
536 $spam = 1;
537 break;
538 }}
539
540 $nhancmt = nhantien('COMMENT', $idcmt, $tokenacc);
541 if ($nhancmt["success"] == 200) {
542 $xu = $nhancmt["data"]["xu"];
543 $xujob = $nhancmt["data"]["msg"];
544 $dem++;
545 hoanthanh($dem, ' CMT ', $idcmt, $xujob, $xu);
546 if ( $dem >= $dungtool ){
547 $dungtool = 999999;
548 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
549 exit;
550 }
551 if($dem % $doinick == 0){
552 if (count($khocookie)>1){
553 $spam = 1; break;
554 }
555 }
556 if($dem % $xxxxx == 0){
557 delay2($delaybl);
558 }
559
560 $delay = rand($thoigianmin, $thoigianmax);
561 delay($delay);
562 }
563 }}
564
565
566
567 }
568}}}
569function api($url) {
570 $head = array(
571 "Host: traodoisub.com",
572 "cache-control: max-age=0",
573 "upgrade-insecure-requests: 1",
574 "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",
575 "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",
576 "sec-fetch-site: none",
577 "sec-fetch-mode: navigate",
578 "sec-fetch-user: ?1",
579 "sec-fetch-dest: document",
580 //"accept-encoding: gzip, deflate, br",
581 "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",
582 );
583 $ch = curl_init();
584 curl_setopt_array($ch, array(
585 CURLOPT_URL => $url,
586 CURLOPT_CUSTOMREQUEST => "GET",
587 CURLOPT_HTTPHEADER => $head,
588 CURLOPT_SSL_VERIFYPEER => FALSE,
589 CURLOPT_RETURNTRANSFER => 1
590 ));
591 $get = curl_exec($ch);
592 curl_close($ch);
593 return json_decode($get, true);
594}
595function nhantien($type, $id, $tokenacc) {
596 $nhan = file_get_contents("https://traodoisub.com/api/coin/?type=$type&id=$id&access_token=$tokenacc");
597 return json_decode($nhan, true);
598}
599function follow($access_token,$id,$cookie){
600 $ch=curl_init();
601 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
602 $head[] = "Connection: keep-alive";
603 $head[] = "Keep-Alive: 300";
604 $head[] = "authority: m.facebook.com";
605 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
606 $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";
607 $head[] = "cache-control: max-age=0";
608 $head[] = "upgrade-insecure-requests: 1";
609 $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";
610 $head[] = "sec-fetch-site: none";
611 $head[] = "sec-fetch-mode: navigate";
612 $head[] = "sec-fetch-user: ?1";
613 $head[] = "sec-fetch-dest: document";
614 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');
615 curl_setopt($ch, CURLOPT_ENCODING, '');
616 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
617 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
618 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
619 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
620 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
621 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
622 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
623 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
624 $data = array('access_token' => $access_token);
625 curl_setopt($ch, CURLOPT_POST,count($data));
626 curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
627 $access = curl_exec($ch);
628 curl_close($ch);
629 return json_decode($access);
630}
631
632
633function share($access_token,$id) {
634 $ch=curl_init();
635curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
636curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v2.0/me/feed');
637curl_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');
638$data = array(
639'privacy' => '{"value":"EVERYONE"}',
640'message' => '',
641'link' => 'https://mbasic.facebook.com/'.$id.'',
642'access_token' => $access_token
643);
644curl_setopt($ch, CURLOPT_POST,count($data));
645curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
646$a = json_decode(curl_exec($ch), true);
647curl_close($ch);
648 return $a;
649}
650function like($access_token, $id, $cookie) {
651 $ch = curl_init();
652 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
653 $head[] = "Connection: keep-alive";
654 $head[] = "Keep-Alive: 300";
655 $head[] = "authority: m.facebook.com";
656 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
657 $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";
658 $head[] = "cache-control: max-age=0";
659 $head[] = "upgrade-insecure-requests: 1";
660 $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";
661 $head[] = "sec-fetch-site: none";
662 $head[] = "sec-fetch-mode: navigate";
663 $head[] = "sec-fetch-user: ?1";
664 $head[] = "sec-fetch-dest: document";
665 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');
666 curl_setopt($ch, CURLOPT_ENCODING, '');
667 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
668 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
669 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
670 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
671 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
672 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
673 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
674 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
675 $data = array('access_token' => $access_token);
676 curl_setopt($ch, CURLOPT_POST, count($data));
677 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
678 $access = curl_exec($ch);
679 curl_close($ch);
680 return json_decode($access);
681
682}
683function cmt($access_token, $idcmt, $cookie, $msg) {
684 $ch = curl_init();
685 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/comments');
686 $head[] = "Connection: keep-alive";
687 $head[] = "Keep-Alive: 300";
688 $head[] = "authority: m.facebook.com";
689 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
690 $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";
691 $head[] = "cache-control: max-age=0";
692 $head[] = "upgrade-insecure-requests: 1";
693 $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";
694 $head[] = "sec-fetch-site: none";
695 $head[] = "sec-fetch-mode: navigate";
696 $head[] = "sec-fetch-user: ?1";
697 $head[] = "sec-fetch-dest: document";
698 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');
699 curl_setopt($ch, CURLOPT_ENCODING, '');
700 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
701 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
702 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
703 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
704 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
705 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
706 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
707 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
708 $data = array('message' => $msg, 'access_token' => $access_token);
709 curl_setopt($ch, CURLOPT_POST, count($data));
710 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
711 $access = curl_exec($ch);
712 curl_close($ch);
713 return json_decode($access);
714}
715function hoanthanh($dem, $type, $id, $xujob, $xu) {
716 echo "\r";
717 echo " \r";
718 $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";
719 $len = strlen($a);
720 for ($x = 0; $x < $len; $x++) {
721 echo $a[$x];
722 usleep(6000);
723 }
724}
725function delay($delay) {
726 $time = $delay;
727 for ( $x = $time; $x--; $x ) {
728 echo " \r";
729 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";
730 usleep(185000);
731 echo "\r";
732 echo " \r";
733 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";
734 usleep(185000);
735 echo "\r";
736 echo " \r";
737 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";
738 usleep(185000);
739 echo "\r";
740 echo " \r";
741 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";
742 usleep(185000);
743 echo "\r";
744 echo " \r";
745 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";
746 usleep(185000);
747 echo "\r";
748
749}}
750function laytoken($cookie) {
751 $ch = curl_init();
752 curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
753 $head[] = "Connection: keep-alive";
754 $head[] = "Keep-Alive: 300";
755 $head[] = "authority: m.facebook.com";
756 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
757 $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";
758 $head[] = "cache-control: max-age=0";
759 $head[] = "upgrade-insecure-requests: 1";
760 $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";
761 $head[] = "sec-fetch-site: none";
762 $head[] = "sec-fetch-mode: navigate";
763 $head[] = "sec-fetch-user: ?1";
764 $head[] = "sec-fetch-dest: document";
765 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');
766 curl_setopt($ch, CURLOPT_ENCODING, '');
767 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
768 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
769 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
770 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
771 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
772 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
773 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
774 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
775 $access = curl_exec($ch);
776 curl_close($ch);
777 if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0]) {
778 $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0];
779 }
780 return $access_token;
781}
782function login($tokentds){
783 $login = file_get_contents("https://traodoisub.com/api/?fields=profile&access_token=".$tokentds);
784 return $login;
785}
786function banner(){
787$t = "
788║ \033[1;92m____ __ __ \033[1;91mBản Quyền: Tài Handsome \e[1;33m║
789\e[1;33m║ \033[1;92m(_ _)/ _\ ( ) \033[1;96mYouTube: TTT Original ♪ \e[1;33m║
790\e[1;33m║ \033[1;92m)( / \ )( \033[1;97mWebsite: https://keytoolvip.ml/ \e[1;33m║
791\e[1;33m║ \033[1;92m(__)\_/\_/(__) \033[1;94mVersion:\033[1;97m Token V3 \e[1;33m║
792";
793echo "\e[1;33m╔═════════════════════════════════════════════════════╗\n";
794echo "║ ║";
795echo $t;
796echo "║ ║\n";
797echo "\e[1;33m╚═════════════════════════════════════════════════════╝\n";
798}
799function delay2($time){
800 $green="\e[1;32m";
801 $yellow="\e[1;33m";
802 for($j = $time;$j> 0;$j--){
803 echo "\r";
804 echo " \r";
805 echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
806 sleep(1);
807
808 }
809 echo "\r";
810 echo " \r";
811}