· 4 years ago · Jul 21, 2021, 04:10 AM
1
2error_reporting(0);
3session_start();
4$ktfile = file_exists("TTC.txt");
5if ($ktfile == 1){
6 unlink('TTC.txt');
7}
8$ress = "\033[0;32m";
9$res = "\033[0;33m";
10$red = "\033[0;31m";
11$green = "\033[0;37m";
12$yellow = "\033[0;33m";
13$white = "\033[0;33m";
14$xnhac = "\033[1;96m";
15$den = "\033[1;90m";
16$do = "\033[1;91m";
17$luc = "\033[1;92m";
18$vang = "\033[1;93m";
19$xduong = "\033[1;94m";
20$hong = "\033[1;95m";
21$trang = "\033[1;97m";
22$do="\033[1;91m";
23$maufulldo= "\e[1;47;31m";
24$res="\033[0m";
25$red="\e[1;31m";
26$pink="\e[1;35m";
27$green="\e[1;32m";
28$yellow="\e[1;33m";
29$y2="\033[0;33m";
30$white= "\033[0;37m";
31$cyan= "\e[1;36m";
32$blue="\e[1;34m";
33$ngreen="\033[42m";
34$ngblack="\033[40m";
35$nen="\033[1;47;1;34m";
36date_default_timezone_set("Asia/Ho_Chi_Minh");
37$useragent="Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36";
38$key = [];
39$x = date("d");
40$y = date("m");
41$gt = 1.5;
42$key=($x+$y)*($x+$y)+3940*$x*$gt+$x*$y;
43$key=intval($key);
44//info
45$info = [];
46$info='TTT Original';
47//day
48$day = [];
49$day= date('d-m-y');
50//config
51$today = date("d-m-Y");
52$d = date("d-m");
53$_check = file_exists("keyttc1$d.txt");
54@system('clear');
55banner();
56echo $white." $maufulldo Tool Miễn Phí! $ngblack\n";
57for($v=0;$v<= 26;$v++){
58 echo "\033[1;37m▂";
59 echo "\033[1;36m▂";
60}
61echo "\033[1;37m▂";
62echo"\n\n";
63echo $white." ➻❥ ".$green."Đăng Kí Kênh YouTube Đi. Không Đăng Kí Dỗi Đấy\n";
64echo $white." ➻❥ ".$green."Link Tổng Hợp Tool:$pink http://tai.ezyro.com/\n";
65echo $white." ➻❥ ".$green."API Free:$yellow http://olalink.co/key-ttc1\n";
66if ($_check !='1'){
67$gh = date("d-m", strtotime("yesterday"));
68$yt = "keyttc1$gh.txt";
69$_check2 = file_exists("$yt");
70if($_check2==1){
71 unlink("$yt");
72}
73for($j = 3;$j> 0;$j--){
74 echo $white." ➻❥ ".$cyan."Chuyển Hướng Đến Trang Lấy Key Sau $green".$j;
75 sleep(1);
76 echo "\r";
77 echo " \r";
78}
79system("termux-open-url http://olalink.co/key-ttc1");
80echo $white." ➻❥ ".$green."Nhập API Key $white";
81$keyy=trim(fgets(STDIN));
82}
83if ($_check =='1'){
84 $keyy = file_get_contents("keyttc1$d.txt");
85 $vt = 1;
86 echo $white." ➻❥ ".$green."Đang Lấy Key...";
87 sleep(2);
88 echo "\r \r";
89}
90if($keyy == ''){
91 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
92 exit;
93}
94 if($keyy == $key)
95 {
96 echo $white." ➻❥ ".$green."Key Hợp Lệ\n";
97 $mf = fopen("keyttc1$d.txt", "w");
98 fwrite($mf, $keyy);
99 fclose($mf);
100 }
101 else
102 {
103 echo $white." ➻❥ ".$red."Key Không Hợp Lệ\n";
104 exit;
105 }
106usleep(500000);
107@system('clear');
108banner();
109echo $white." $maufulldo Tool Miễn Phí! $ngblack\n";
110$dem = 0;
111//@system('clear');
112for($v=0;$v<= 26;$v++){
113 echo "\033[1;37m▂";
114 echo "\033[1;36m▂";
115}
116echo "\033[1;37m▂";
117echo"\n\n";
118echo $white." ➻❥ ".$green."Tài khoản: $yellow".$info."$green - Hạn Sử Dụng: $yellow ".$day."\n\n";
119for($v=0;$v<= 26;$v++){
120 echo "\033[1;37m▂";
121 echo "\033[1;36m▂";
122}
123echo "\033[1;37m▂";
124echo"\n\n";
125$_SESSION['fck'] = file_exists("TTC.txt");
126if ($_SESSION['fck'] == '1'){
127 unlink("TTC.txt");
128}
129$_SESSION['check'] = file_exists("logttc.txt");
130if ($_SESSION['check'] =='1'){
131echo $white." ➻❥ ".$green."Bạn Đã Đăng Nhập$cyan Tương Tác Chéo$green Trước Đó. Bấm $yellow Enter $green Để Tiếp Tục, Bấm $red No $green Để Đăng Nhập Tài Khoản Mới ";
132$_SESSION['nhap'] = trim(fgets(STDIN));
133if ($_SESSION['nhap'] !='no' and $_SESSION['nhap'] != 'No' and $_SESSION['nhap'] !=''){
134echo $white." ➻❥ ".$red."Sai Định Dạng\n";
135exit;
136}
137if ($_SESSION['nhap'] =='no' or $_SESSION['nhap'] =='No'){
138$my = fopen("logttc.txt", "w+");
139echo $white." ➻❥ ".$green."Nhập Tài Khoản TTC ";
140$username =trim(fgets(STDIN));
141echo $white." ➻❥ ".$green."Nhập Mật Khẩu TTC ";
142$password =trim(fgets(STDIN));
143$arr = array("username"=> $username, "password"=> $password);
144fwrite($my,json_encode($arr));
145 $my = file("logttc.txt");
146$bb = file_get_contents('logttc.txt');
147$cc =json_decode($bb);
148$_SESSION['username']= $cc->{"username"};
149$_SESSION['password']= $cc->{"password"};
150}
151if ($_SESSION['nhap'] == ''){
152$bb = file_get_contents("logttc.txt");
153$cc =json_decode($bb);
154$_SESSION['username']= $cc->{"username"};
155$_SESSION['password']= $cc->{"password"};
156}
157} else {
158$my = fopen("logttc.txt","w+");
159echo $white." ➻❥ ".$green."Nhập Tài Khoản TTC ";
160$_SESSION["username"]=trim(fgets(STDIN));
161echo $white." ➻❥ ".$green."Nhập Mật Khẩu TTC ";
162$_SESSION['password']=trim(fgets(STDIN));
163$arr = array("username"=> $_SESSION["username"], "password"=> $_SESSION['password']);
164fwrite($my,json_encode($arr));
165}
166$user = $_SESSION['username'];
167$pass = $_SESSION['password'];
168$source = getcookiettc($user,$pass,$useragent);
169$sou= strlen($source);
170if ($sou < 10 ){
171 echo $white." ➻❥ ".$green."Đăng Nhập Thành Công\n";
172 // get xu
173 $url = "https://tuongtaccheo.com/home.php";
174 $curl = curl_init();
175 curl_setopt_array($curl, array(
176 CURLOPT_PORT => "443",
177 CURLOPT_URL => "$url",
178 CURLOPT_RETURNTRANSFER => true,
179 CURLOPT_ENCODING => "",
180 CURLOPT_SSL_VERIFYPEER => true,
181 CURLOPT_CUSTOMREQUEST => "GET",
182 CURLOPT_COOKIEFILE => "TTC.txt"
183 ));
184 $data = curl_exec($curl);
185 curl_close($curl);
186 preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
187 $xuhientai = $sd["1"];
188}else{
189 echo $white." ➻❥ ".$red."Sai Tài Khoản Hoặc Mật Khẩu TTC\n";
190 exit;
191}
192usleep(100000);
193do {
194@system('clear');
195banner();
196echo $white." $maufulldo Tool Miễn Phí! $ngblack\n";
197for($v=0;$v<= 26;$v++){
198 echo "\033[1;37m▂";
199 echo "\033[1;36m▂";
200}
201echo "\033[1;37m▂";
202echo"\n\n";
203//cookie
204$khocookie = [];
205echo $white." ➻❥ ".$green."Link Token: https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed\n";
206echo $white." ➻❥ ".$green."Nhập Token Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
207for($a = 1; $a < 999999;$a++){
208echo $white." ➻❥ ".$green."Nhập Token Thứ $a: $vang";
209$nhapck = (string)trim(fgets(STDIN));
210if($nhapck == ''){break;}
211
212array_push($khocookie,$nhapck);
213}
214
215$demcki=count($khocookie);
216
217echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Token Facebook\n";
218sleep(1);
219} while (count($khocookie)==0);
220
221//$thongtin
222
223system('clear');
224banner();
225echo $white." $maufulldo Tool Miễn Phí! $ngblack\n";
226for($v=0;$v<= 26;$v++){
227 echo "\033[1;37m▂";
228 echo "\033[1;36m▂";
229}
230echo "\033[1;37m▂";
231echo"\n\n";
232echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."1".$do."]".$luc." Để Chọn Nhiệm Vụ Like\n";
233echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."2".$do."]".$luc." Để Chọn Nhiệm Vụ Follow\n";
234
235echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."3".$do."]".$luc." Để Chọn Nhiệm Vụ Comment\n";
236
237echo $white." ➻❥ ".$green."Nhập ".$do."[".$vang."4".$do."]".$luc." Để Chọn Nhiệm Vụ Share\n";
238
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 Min: $vang";
243$thoigianmin = trim(fgets(STDIN));
244echo $white." ➻❥ ".$green."Nhập Thời Gian 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 Tool Miễn Phí! $ngblack\n";
258for($v=0;$v<= 26;$v++){
259 echo "\033[1;37m▂";
260 echo "\033[1;36m▂";
261}
262echo "\033[1;37m▂";
263echo"\n\n";
264echo $white." ➻❥ ".$green."Tài Khoản: ".$vang.$user."\n";
265echo $white." ➻❥ ".$green."Xu Hiện Tại: ".$pink.$xuhientai."\n";
266for($v=0;$v<= 26;$v++){
267 echo "\033[1;37m▂";
268 echo "\033[1;36m▂";
269}
270echo "\033[1;37m▂";
271echo"\n\n";
272$loilike = [];
273$loisub = [];
274$loicmt = [];
275$loishare = [];
276while(true){
277 if(count($khocookie) == 0){
278 echo $white." ➻❥ ".$green."Link Token: https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed\n";
279 echo $white." ➻❥ ".$green."Nhập Token Facebook.$yellow Dừng Thì Bấm Xuống Hàng Nha\n";
280for($a = 1; $a < 999999;$a++){
281echo $white." ➻❥ ".$green."Nhập Token Thứ $a: $vang";
282$nhapck = (string)trim(fgets(STDIN));
283if($nhapck == ''){break;}
284array_push($khocookie,$nhapck);
285 }
286$demcki=count($khocookie);
287echo $white." ➻❥ ".$green."Bạn Đã Nhập ".$vang.$demcki." ".$luc."Token Facebook\n";
288 }
289 $themtk = 0;
290 for($xz=0;$xz<count($khocookie);$xz++){
291 if ( $themck == 1){ break; }
292 $access_token = $khocookie[$xz];
293
294if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
295 echo "\r";
296 echo " \r";
297 echo $white." ➻❥ ".$red."Token Die\n";
298 array_splice($khocookie,$xz,1);
299 continue;
300}
301$tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
302$idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
303$h = datnick($idfb,$useragent);
304if ($h == '1'){
305 echo $white." ➻❥ ".$green."Đang Cấu Hình $vang".$tenfb."".$res."\n";
306} else {
307 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";
308 exit;
309}
310$spam = 0;
311$xu = $xuhientai;
312while (true) {
313 if ($spam == 1) {
314 break;
315 }
316 //listlike
317 if (strpos($nhiemvu, '1') !== false) {
318 for ($i = 0; $i < 30; $i++) {
319 $listlike = getlike($useragent);
320 if (count($listlike) !== 0) {
321 break;
322 }}
323
324 }
325 //listfollow
326 if (strpos($nhiemvu, '2') !== false) {
327 while (true) {
328 $listsub = getnv('sub',$useragent);
329 if (count($listsub) !== 0) {
330 break;
331 }
332 }
333
334 }
335
336 //listcmt
337 if (strpos($nhiemvu, '3') !== false) {
338 for ($i = 1; $i < 30; $i++) {
339 $listcmt = getnv('cmt',$useragent);
340 if (count($listcmt) !== 0) {
341 break;
342 }}
343 }
344 //share
345 if (strpos($nhiemvu, '4') !== false) {
346 for ($i = 1; $i < 30; $i++) {
347 $listshare = getnv('share',$useragent);
348 if (count($listshare) > 0) {
349 break;
350 }}
351 }
352
353 for ($lap = 0; $lap < 30; $lap++) {
354 // like
355
356 if ($listlike != NULL) {
357 $idlike = $listlike[$lap]["idpost"];
358 if ($idlike != '') {
359 $g = like($access_token, $idlike, $cookie);
360 if ($g -> {'error'} -> {'code'} == 190) {
361 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
362 echo "\r";
363 echo " \r";
364 echo $white." ➻❥ ".$red."Token Die\n";
365 array_splice($khocookie,$xz,1);
366 $spam = 1; break;
367 }
368 }
369 if ($g -> {'error'} -> {'code'} == 368) {
370 $tai = like($access_token,'10103832396388711', $cookie);
371 if ($tai -> {'error'} -> {'code'} == 368) {
372 echo "\r";
373 echo " \r";
374 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
375 echo "\n";
376 array_splice($khocookie,$xz,1);
377 $spam = 1;
378 break;
379 }}
380 $nhanlike = nhantienlike($idlike,$useragent);
381 $s= $nhanlike[("mess")];
382 if (strpos($s, 'Thành công') !== false) {
383 $xu = $xu+300;
384 $xujob = 300;
385 $dem++;
386 hoanthanh($dem, ' LIKE ', $idlike, $xujob, $xu);
387 if ( $dem >= $dungtool ){
388 $dungtool = 999999;
389 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
390 exit;
391 }
392 if($dem % $doinick == 0){
393 if (count($khocookie)>1){
394 $spam = 1; break;
395 }
396 }
397 if($dem % $xxxxx == 0){
398 delay2($delaybl);
399 }
400
401 $delay = rand($thoigianmin, $thoigianmax);
402 delay($delay);
403 }
404 }}
405 //follow
406 if ($listsub != NULL) {
407 $idsub = $listsub[$lap]["idpost"];
408 if ($idsub != '') {
409 $g = follow($access_token, $idsub, $cookie);
410
411 if ($g -> {'error'} -> {'code'} == 190) {
412 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
413 echo "\r";
414 echo " \r";
415 echo $white." ➻❥ ".$red."Token Die\n";
416 array_splice($khocookie,$xz,1);
417 $spam = 1; break;
418 }
419 }
420 if ($g -> {'error'} -> {'code'} == 368) {
421 $tai = follow($access_token,'4', $cookie);
422 if ($tai -> {'error'} -> {'code'} == 368) {
423 echo "\r";
424 echo " \r";
425 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
426 echo "\n";
427 array_splice($khocookie,$xz,1);
428 $spam = 1;
429 break;
430 }}
431
432 $nhansub = traluong('sub',$idsub);
433 $s= $nhansub[("mess")];
434 if (strpos($s, 'Thành công') !== false) {
435 $xu = $xu+600;
436 $xujob = 600;
437 $dem++;
438 hoanthanh($dem, 'FOLLOW', $idsub, $xujob, $xu);
439 if ( $dem >= $dungtool ){
440
441 $dungtool = 999999;
442 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
443 exit;
444 }
445 if($dem % $doinick == 0){
446 if (count($khocookie)>1){
447 $spam = 1; break;
448 }
449 }
450 if($dem % $xxxxx == 0){
451 delay2($delaybl);
452 }
453
454 $delay = rand($thoigianmin, $thoigianmax);
455 delay($delay);
456 }
457 }}
458
459 //share
460 if ($listshare != NULL) {
461 $id = $listshare[$lap]["idpost"];
462 if ($id != '') {
463 $g = share($access_token, $id);
464
465 if ($g -> {'error'} -> {'code'} == 190) {
466 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
467 echo "\r";
468 echo " \r";
469 echo $white." ➻❥ ".$red."Token Die\n";
470 array_splice($khocookie,$xz,1);
471 $spam = 1; break;
472 }
473 }
474 if ($g -> {'error'} -> {'code'} == 368) {
475 $tai = share($access_token,'10103832396388711');
476 if ($tai -> {'error'} -> {'code'} == 368) {
477 echo "\r";
478 echo " \r";
479 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
480 echo "\n";
481 array_splice($khocookie,$xz,1);
482 $spam = 1;
483 break;
484 }}
485
486 $nhanshare = traluong('share',$id);
487 $s= $nhanshare[("mess")];
488 if (strpos($s, 'Thành công') !== false) {
489 $xu = $xu+600;
490 $xujob = 600;
491 $dem++;
492 hoanthanh($dem, 'SHARE', $id, $xujob, $xu);
493 if ( $dem >= $dungtool ){
494 $dungtool = 999999;
495 echo $white." ➻❥ ".$green."Chạy Tool Hoàn Thành Tổng Xu: ".$vang.$xu."\n";
496 exit;
497 }
498 if($dem % $doinick == 0){
499 if (count($khocookie)>1){
500 $spam = 1; break;
501 }
502 }
503 if($dem % $xxxxx == 0){
504 delay2($delaybl);
505 }
506 $delay = rand($thoigianmin, $thoigianmax);
507 delay($delay);
508 }
509 }}
510 //cmt
511 if ($listcmt != NULL) {
512 $idcmt = $listcmt[$lap]["idpost"];
513 $ms = json_decode($listcmt[$lap]["nd"]);
514 $msg = $ms[0];
515 if ($idcmt != '') {
516 $g = cmt($access_token, $idcmt, $cookie, $msg);
517
518 if ($g -> {'error'} -> {'code'} == 190) {
519 if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){}else{
520 echo "\r";
521 echo " \r";
522 echo $white." ➻❥ ".$red."Token Die\n";
523 array_splice($khocookie,$xz,1);
524 $spam = 1; break;
525 }
526 }
527 if ($g -> {'error'} -> {'code'} == 368) {
528 $tai = cmt($access_token,'10103832396388711', $cookie,'ttt original');
529 if ($tai -> {'error'} -> {'code'} == 368) {
530 echo "\r";
531 echo " \r";
532 echo $white." ➻❥ \033[1;91m".$g-> {'error'}-> {'message'};
533 echo "\n";
534 array_splice($khocookie,$xz,1);
535 $spam = 1;
536 break;
537 }}
538
539 $nhancmt = traluong('cmt',$idcmt);
540 $s= $nhancmt[("mess")];
541 if (strpos($s, 'Thành công') !== false) {
542 $xu = $xu+600;
543 $xujob = 600;
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}}}
569
570function follow($access_token, $idtest, $cookie) {
571 $ch = curl_init();
572 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idtest.'/subscribers');
573 $head[] = "Connection: keep-alive";
574 $head[] = "Keep-Alive: 300";
575 $head[] = "authority: m.facebook.com";
576 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
577 $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";
578 $head[] = "cache-control: max-age=0";
579 $head[] = "upgrade-insecure-requests: 1";
580 $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";
581 $head[] = "sec-fetch-site: none";
582 $head[] = "sec-fetch-mode: navigate";
583 $head[] = "sec-fetch-user: ?1";
584 $head[] = "sec-fetch-dest: document";
585 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');
586 curl_setopt($ch, CURLOPT_ENCODING, '');
587 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
588 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
589 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
590 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
591 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
592 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
593 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
594 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
595 $data = array('access_token' => $access_token);
596 curl_setopt($ch, CURLOPT_POST, count($data));
597 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
598 $access = curl_exec($ch);
599 curl_close($ch);
600 return json_decode($access);
601}
602
603
604function share($access_token,$id) {
605 $ch=curl_init();
606curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
607curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v2.0/me/feed');
608curl_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');
609$data = array(
610'privacy' => '{"value":"EVERYONE"}',
611'message' => '',
612'link' => 'https://mbasic.facebook.com/'.$id.'',
613'access_token' => $access_token
614);
615curl_setopt($ch, CURLOPT_POST,count($data));
616curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
617$a = json_decode(curl_exec($ch), true);
618curl_close($ch);
619 return $a;
620}
621function like($access_token, $id, $cookie) {
622 $ch = curl_init();
623 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
624 $head[] = "Connection: keep-alive";
625 $head[] = "Keep-Alive: 300";
626 $head[] = "authority: m.facebook.com";
627 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
628 $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";
629 $head[] = "cache-control: max-age=0";
630 $head[] = "upgrade-insecure-requests: 1";
631 $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";
632 $head[] = "sec-fetch-site: none";
633 $head[] = "sec-fetch-mode: navigate";
634 $head[] = "sec-fetch-user: ?1";
635 $head[] = "sec-fetch-dest: document";
636 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');
637 curl_setopt($ch, CURLOPT_ENCODING, '');
638 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
639 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
640 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
641 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
642 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
643 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
644 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
645 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
646 $data = array('access_token' => $access_token);
647 curl_setopt($ch, CURLOPT_POST, count($data));
648 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
649 $access = curl_exec($ch);
650 curl_close($ch);
651 return json_decode($access);
652
653}
654function cmt($access_token, $idcmt, $cookie, $msg) {
655 $ch = curl_init();
656 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/comments');
657 $head[] = "Connection: keep-alive";
658 $head[] = "Keep-Alive: 300";
659 $head[] = "authority: m.facebook.com";
660 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
661 $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";
662 $head[] = "cache-control: max-age=0";
663 $head[] = "upgrade-insecure-requests: 1";
664 $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";
665 $head[] = "sec-fetch-site: none";
666 $head[] = "sec-fetch-mode: navigate";
667 $head[] = "sec-fetch-user: ?1";
668 $head[] = "sec-fetch-dest: document";
669 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');
670 curl_setopt($ch, CURLOPT_ENCODING, '');
671 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
672 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
673 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
674 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
675 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
676 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
677 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
678 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
679 $data = array('message' => $msg, 'access_token' => $access_token);
680 curl_setopt($ch, CURLOPT_POST, count($data));
681 curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
682 $access = curl_exec($ch);
683 curl_close($ch);
684 return json_decode($access);
685}
686function hoanthanh($dem, $type, $id, $xujob, $xu) {
687 echo "\r";
688 echo " \r";
689 $t = random_int(31,37);
690 $mau = "\e[1;$t"."m";
691 $a = "\033[1;93m[\033[1;93m".$dem."\033[1;93m]\033[1;91m ● \033[1;96m".date("H:i")."\033[1;91m ●$mau $type\033[1;91m ● \033[1;97m".$id." \033[1;91m● \033[1;93m".$xu." xu\e[0m\n";
692 $len = strlen($a);
693 for ($x = 0; $x < $len; $x++) {
694 echo $a[$x];
695 usleep(6000);
696 }
697}
698function delay($delay) {
699 $time = $delay;
700 for ( $x = $time; $x--; $x ) {
701 echo " \r";
702 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";
703 usleep(185000);
704 echo "\r";
705 echo " \r";
706 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";
707 usleep(185000);
708 echo "\r";
709 echo " \r";
710 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";
711 usleep(185000);
712 echo "\r";
713 echo " \r";
714 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";
715 usleep(185000);
716 echo "\r";
717 echo " \r";
718 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";
719 usleep(185000);
720 echo "\r";
721
722}}
723function banner(){
724$t = "
725║ \033[1;92m____ __ __ \033[1;91mBản Quyền: Tài Handsome \e[1;33m║
726\e[1;33m║ \033[1;92m(_ _)/ _\ ( ) \033[1;96mYouTube: TTT Original ♪ \e[1;33m║
727\e[1;33m║ \033[1;92m)( / \ )( \033[1;97mWebsite: http://tai.ezyro.com/ \e[1;33m║
728\e[1;33m║ \033[1;92m(__)\_/\_/(__) \033[1;94mAll Rights Reserved \e[1;33m║
729";
730echo "\e[1;33m╔═════════════════════════════════════════════════════╗\n";
731echo "║ ║";
732echo $t;
733echo "║ ║\n";
734echo "\e[1;33m╚═════════════════════════════════════════════════════╝\n";
735}
736function getcookiettc($user,$pass,$useragent){
737 $ch=curl_init();
738curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
739curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/login.php');
740curl_setopt($ch, CURLOPT_COOKIEJAR, "TTC.txt");
741curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
742$login =array('username' => $user,'password' => $pass,'submit' => ' ĐĂNG NHẬP');
743curl_setopt($ch, CURLOPT_POST,count($login));
744curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
745curl_setopt($ch, CURLOPT_COOKIEFILE, "TTC.txt");
746$source=curl_exec($ch);
747curl_close($ch);
748return $source;
749}
750function datnick($idfb,$useragent){
751$dat=http_build_query(array('iddat[]'=> $idfb, 'loai'=>'fb'));
752$ch=curl_init();
753 curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/cauhinh/datnick.php');
754 $head[]='Host: tuongtaccheo.com';
755 $head[]='content-length: '.strlen($dat);
756 $head[]='accept: */*';
757 $head[]='origin: https://tuongtaccheo.clm';
758 $head[]='x-requested-with: XMLHttpRequest';
759 $head[]='save-data: on';
760 $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
761 $head[]='referer: https://tuongtaccheo.com/cauhinh/index.php';
762 $head[]='accept-language: vi-VN, vi;q=0.9,fr-FR;q=0.8,fr;q=0.7, en-US;q=0.6,en;q=0.5,zh-CN;q=0.4.zh;q=0.3';
763 $head[]='cookie: TawkConnectionTime=0';
764 curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
765 curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
766 curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
767 curl_setopt($ch,CURLOPT_POST, 1);
768 curl_setopt($ch,CURLOPT_POSTFIELDS,$dat);
769 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
770 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
771 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
772 curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
773 $h = curl_exec($ch);
774 curl_close($ch);
775 return $h;
776}
777function getlike($useragent){
778 $ch=curl_init();
779 curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/getpost.php');
780 $head[]='Host: tuongtaccheo.com';
781 $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
782 $head[]='x-requested-with: XMLHttpRequest';
783 $head[]='referer: https://tuongtaccheo.com/kiemtien/';
784 curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
785 curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
786 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
787 curl_setopt($ch,CURLOPT_POST,1);
788 curl_setopt($ch,CURLOPT_HTTPGET, true);
789 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
790 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
791 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
792 curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
793 return json_decode(curl_exec($ch),true);
794 curl_close($ch);
795}
796function nhantienlike($id,$useragent){
797 $ch= curl_init();
798 $data= ('id=').$id;
799 curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/kiemtien/nhantien.php');
800 $head[]='Host: tuongtaccheo.com';
801 $head[]='content-length: '.strlen($data);
802 $head[]='x-requested-with: XMLHttpRequest';
803 $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
804 $head[]='origin: https://tuongtaccheo.com';
805 $head[]='referer: https://tuongtaccheo.com/kiemtien/';
806 $head[]='cookie: TawkConnectionTime=0';
807 curl_setopt($ch,CURLOPT_USERAGENT, $useragent);
808 curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
809 curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
810 curl_setopt($ch,CURLOPT_POST, 1);
811 curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
812 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
813 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
814 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
815 curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
816 $xu= json_decode(curl_exec($ch), true);
817 curl_close($ch);
818 return $xu;
819}
820function getxu(){
821 $url = "https://tuongtaccheo.com/home.php";
822 $curl = curl_init();
823 curl_setopt_array($curl, array(
824 CURLOPT_PORT => "443",
825 CURLOPT_URL => "$url",
826 CURLOPT_RETURNTRANSFER => true,
827 CURLOPT_ENCODING => "",
828 CURLOPT_SSL_VERIFYPEER => true,
829 CURLOPT_CUSTOMREQUEST => "GET",
830 CURLOPT_COOKIEFILE => "TTC.txt"
831 ));
832 $data = curl_exec($curl);
833 curl_close($curl);
834 preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
835 $xu = $sd["1"];
836 return $xu;
837}
838function getnv($loai,$useragent){
839 $ch=curl_init();
840 curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/getpost.php');
841 $head[]='Host: tuongtaccheo.com';
842 $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
843 $head[]='x-requested-with: XMLHttpRequest';
844 $head[]='user-agent: Mozilla/5.0 (Linux; Android 5.1.1; SM-J320G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36';
845 $head[]='referer: https://tuongtaccheo.com/kiemtien/'.$loai.'cheo';
846 curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
847 curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
848 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
849 curl_setopt($ch,CURLOPT_POST,1);
850 curl_setopt($ch,CURLOPT_HTTPGET, true);
851 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
852 curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
853 curl_setopt($ch,CURLOPT_ENCODING, TRUE);
854 curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
855 return json_decode(curl_exec($ch),true);
856 curl_close($ch);
857}
858function traluong($loai,$id)
859{
860 $url = "https://tuongtaccheo.com/kiemtien/$loai"."cheo/nhantien.php";
861 $data= ('id=').$id;
862 $head = array(
863 "Host: tuongtaccheo.com",
864 "content-length: " . strlen($data),
865 "x-requested-with: XMLHttpRequest",
866 "user-agent: Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36",
867 "content-type: application/x-www-form-urlencoded; charset=UTF-8",
868 "origin: https://tuongtaccheo.com",
869 "referer: https://tuongtaccheo.com/kiemtien/$loai"."cheo/"
870 );
871 $ch = curl_init();
872 curl_setopt_array($ch, array(
873 CURLOPT_URL => $url,
874 CURLOPT_FOLLOWLOCATION => TRUE,
875 CURLOPT_RETURNTRANSFER => 1,
876 CURLOPT_POST => 1,
877 CURLOPT_POSTFIELDS => $data,
878 CURLOPT_SSL_VERIFYPEER => 0,
879 CURLOPT_COOKIEFILE => "TTC.txt",
880 CURLOPT_HTTPHEADER => $head,
881 CURLOPT_ENCODING => TRUE
882 ));
883 $a = json_decode(curl_exec($ch), true);
884 return $a;
885}
886function delay2($time){
887 $green="\e[1;32m";
888 $yellow="\e[1;33m";
889 for($j = $time;$j> 0;$j--){
890 echo "\r";
891 echo " \r";
892 echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
893 sleep(1);
894
895 }
896 echo "\r";
897 echo " \r";
898}