Advertisement
Vngosu7

Untitled

Jul 4th, 2021
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.37 KB | None | 0 0
  1. error_reporting(0);
  2. date_default_timezone_set("Asia/Ho_Chi_Minh");
  3. $xxx = date("H:i:s");
  4. $today = date("dmY");
  5. $ress = "\033[0;32m";
  6. $res = "\033[0;33m";
  7. $red = "\033[0;31m";
  8. $green = "\033[0;37m";
  9. $nau= "\e[38;5;94m";
  10. $white = "\033[0;33m";
  11. $xnhac = "\033[1;96m";
  12. $den = "\033[1;90m";
  13. $do = "\033[1;91m";
  14. $luc = "\033[1;92m";
  15. $vang = "\033[1;93m";
  16. $xduong = "\033[1;94m";
  17. $thanhngang = $vang."==========================================================\n";
  18. $hong = "\033[1;95m";
  19. $trang = "\033[1;97m";
  20. $y2="\033[0;33m";
  21. $white= "\033[0;37m";
  22. $cyan= "\e[1;36m";
  23. $blue="\e[1;34m";
  24. $ngreen="\033[42m";
  25. $ngreen="\033[42m";
  26. $thanh_xau= $trang."".$do."[".$luc."●".$do."] ".$trang."=> ";
  27. $thanh_dep= $trang."~".$do."[".$luc."✓".$do."] ".$trang."=> ";
  28. $maul=rand(31,37);
  29. $maui="\033[1;".$maul."m";
  30. echo "\n";echo"
  31. \033[0;31m██╗ ██╗██╗ ██╗
  32. \033[0;37m██║ ██║╚██╗ ██╔╝
  33. \033[1;94m██║ ██║ ╚████╔╝
  34. \033[1;95m██║ ██║ ╚██╔╝
  35. \033[1;96m╚██████╔╝ ██║
  36. \033[1;91m╚═════╝ ╚═╝ \n";
  37. //login
  38. $_SESSION['fck'] = file_exists("TTC.txt");
  39. if ($_SESSION['fck'] == '1'){
  40. unlink("TTC.txt");
  41. }
  42. $_SESSION['check'] = file_exists("logttc.txt");
  43. if ($_SESSION['check'] =='1'){
  44. echo $white." 🌸 ".$green."Bạn Đã Đăng Nhập Trước Đó! Bấm $yellow Enter $green Để Tiếp Tục! Nhập $red No $green Để Xóa: ";
  45. $_SESSION['nhap'] = trim(fgets(STDIN));
  46. if ($_SESSION['nhap'] !='no' and $_SESSION['nhap'] != 'No' and $_SESSION['nhap'] !=''){
  47. echo $white." 🌸 ".$red."Sai Định Dạng\n";
  48. exit;
  49. }
  50. if ($_SESSION['nhap'] =='no' or $_SESSION['nhap'] =='No'){
  51. $my = fopen("logttc.txt", "w+");
  52. echo $white." 🌸 ".$green."Tài khoản TTC: ";
  53. $username =trim(fgets(STDIN));
  54. echo $white." 🌸 ".$green."Mật Khẩu TTC: ";
  55. $password =trim(fgets(STDIN));
  56. $arr = array("username"=> $username, "password"=> $password);
  57. fwrite($my,json_encode($arr));
  58. $my = file("logttc.txt");
  59. $bb = file_get_contents('logttc.txt');
  60. $cc =json_decode($bb);
  61. $_SESSION['username']= $cc->{"username"};
  62. $_SESSION['password']= $cc->{"password"};
  63. }
  64. if ($_SESSION['nhap'] == ''){
  65. $bb = file_get_contents("logttc.txt");
  66. $cc =json_decode($bb);
  67. $_SESSION['username']= $cc->{"username"};
  68. $_SESSION['password']= $cc->{"password"};
  69. }
  70. } else {
  71. $my = fopen("logttc.txt","w+");
  72. echo $white." 🌸 ".$green."Tài khoản TTC ";
  73. $_SESSION["username"]=trim(fgets(STDIN));
  74. echo $white." 🌸 ".$green."Mật Khẩu TTC ";
  75. $_SESSION['password']=trim(fgets(STDIN));
  76. $arr = array("username"=> $_SESSION["username"], "password"=> $_SESSION['password']);
  77. fwrite($my,json_encode($arr));
  78. }
  79. $user = $_SESSION['username'];
  80. $pass = $_SESSION['password'];
  81. $source = getcookiettc($user,$pass,$useragent);
  82. $sou= strlen($source);
  83. if ($sou < 10 ){
  84. echo $white." 🌸 ".$green."Đăng Nhập Thành Công\n";
  85. // get xu
  86. $url = "https://tuongtaccheo.com/home.php";
  87. $curl = curl_init();
  88. curl_setopt_array($curl, array(
  89. CURLOPT_PORT => "443",
  90. CURLOPT_URL => "$url",
  91. CURLOPT_RETURNTRANSFER => true,
  92. CURLOPT_ENCODING => "",
  93. CURLOPT_SSL_VERIFYPEER => true,
  94. CURLOPT_CUSTOMREQUEST => "GET",
  95. CURLOPT_COOKIEFILE => "TTC.txt"
  96. ));
  97. $data = curl_exec($curl);
  98. curl_close($curl);
  99. preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
  100. $xu = $sd["1"];
  101. }else{
  102. echo $white." 🌸 ".$red."Sai Tài Khoản Hoặc Mật Khẩu\n";
  103. exit;
  104. }
  105. if ($chedo == 5 or $chedo == 7){
  106. $luong =1;
  107. }else {
  108. echo $white." 🌸 ".$green."Nhập Số Acc Facebook Cần Treo: ";
  109. $luong=trim(fgets(STDIN));
  110. if ($luong<1){exit($red."\033[1;37m~\033[1;31m Lựa Chọn Không Xác Định\n");}
  111. }
  112. $c=1;$thu=1;
  113. $mangcookie =[];
  114. if ($chedo<7){
  115. for($b=1;$b<=$luong;$b++){
  116. echo $white." 🌸 ".$yellow."Nhập Cookie Thứ ".$thu.":$white ";
  117. $cooki[$c]=trim(fgets(STDIN));
  118. $ch=curl_init();
  119. $cookie=$cooki[$c];
  120. $access = cookie($cookie,$useragent);
  121. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0])
  122. {
  123. array_push($mangcookie,$cookie);
  124. $c++;
  125. $thu++;
  126. }else{echo $white." 🌸 ".$red."Cookie Die, Hãy Kiểm Tra Lại\n";$b--;}
  127. }
  128. }else{
  129. for($b=1;$b<=$luong;$b++){
  130. echo $white." 🌸 ".$yellow."Nhập Token FB Thứ".$thu.":$white ";
  131. $cooki[$c]=trim(fgets(STDIN));
  132. $ch=curl_init();
  133. $cookie=$cooki[$c];
  134. $access_token = $cookie;
  135. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  136. array_push($mangcookie,$cookie);
  137. $c++;
  138. $thu++;
  139. }else{
  140. echo $white." 🌸 ".$red."Token Die, Hãy Kiểm Tra Lại\n";$b--;}
  141. }
  142. }
  143.  
  144. if($luong==1){
  145. echo $white." 🌸 ".$green."Sau Bao Nhiêu Nhiệm Vụ Thì Mở Tránh Block ";
  146. } else{
  147. $dl = 150;
  148. echo $white." 🌸 ".$green."Đổi Cấu Hình Sau Bao Nhiêu Nhiệm Vụ: ";
  149. }
  150. $doi=trim(fgets(STDIN));
  151. if ($doi<1){
  152. exit($red."\033[1;37m~\033[1;31m Lựa Chọn Không Xác Định\n");
  153. }
  154. if($luong==1){
  155. echo $white." 🌸 ".$green."Dừng Thời Gian: ";
  156. $dl=trim(fgets(STDIN));
  157. }
  158. @system('clear');
  159.  
  160. echo "\033[1;37m- ";usleep(15000);
  161. echo "\033[1;33m-";usleep(15000);
  162. echo"\n";
  163. echo $white." 🌸 ".$yellow."Tên Tài Khoản: $green".$user."\n";
  164. echo $white." 🌸 ".$pink."Số Nick Chạy:$green $luong\n";
  165. echo $white." 🌸 ".$cyan."Xu Hiện Tại:$yellow $xu\n";
  166. for($v=0;$v<= 12;$v++){
  167. echo "\033[1;37m- ";usleep(15000);
  168. echo "\033[1;33m- ";usleep(15000);
  169. }
  170. echo "\033[1;37m- ";usleep(15000);
  171. echo "\033[1;33m-";usleep(15000);
  172. echo"\n";
  173. $listnv = [];
  174. echo $white." 🌸 ".$green."Bật Nhiệm Vụ Follow$white (y/n): $yellow";
  175. $chon1=trim(fgets(STDIN));
  176. if ($chon1 == 'y' or $chon1 == 'Y'){
  177. array_push($listnv,'sub');
  178. }
  179. echo $white." 🌸 ".$green."Bật Nhiệm Vụ Like$white (y/n): $yellow";
  180. $chon2=trim(fgets(STDIN));
  181. if ($chon2 == 'y' or $chon2 == 'Y'){
  182. array_push($listnv,'like');
  183. }
  184. echo $white." 🌸 ".$green."Bật Nhiệm Vụ Comment$white (y/n): $yellow";
  185. $chon3=trim(fgets(STDIN));
  186. if ($chon3 == 'y' or $chon3 == 'Y'){
  187. array_push($listnv,'cmt');
  188. }
  189. if ($chedo <7){
  190. echo $white." 🌸 ".$green."Bật Nhiệm Vụ Like Page$white (y/n): $yellow";
  191. $chon4=trim(fgets(STDIN));
  192. if ($chon4 == 'y' or $chon4 == 'Y'){
  193. array_push($listnv,'page');
  194. }
  195. echo $white." 🌸 ".$green."Bật Nhiệm Vụ Cảm Xúc$white (y/n): $yellow";
  196. $chon5=trim(fgets(STDIN));
  197. if ($chon5 == 'y' or $chon5 == 'Y'){
  198. array_push($listnv,'cx');
  199. }
  200. }
  201. if (count($listnv) == 0){exit($red."Phải Chọn Ít Nhất 1 Nhiệm Vụ\n");}
  202. echo $white." 🌸 ".$cyan."Delay Nhiệm Vụ: $white";
  203. $timedelay=trim(fgets(STDIN));
  204. if($timedelay < 1)
  205. {exit($red."\033[1;37m~\033[1;31m Lựa Chọn Không Xác Định\n");}
  206. usleep(200000);
  207.  
  208. for($v=0;$v<= 12;$v++){
  209. echo "\033[1;37m- ";usleep(15000);
  210. echo "\033[1;31m- ";usleep(15000);
  211. }
  212. echo "\033[1;37m- ";usleep(15000);
  213. echo "\033[1;31m-";usleep(15000);
  214. echo"\n";
  215. $q=1;
  216. while ($o <= $_SESSION['i']){
  217. for($l=0;$l<count($mangcookie);$l++){
  218. $cookie = $mangcookie[$l];
  219. if ($chedo < 7){
  220. $access = cookie($cookie,$useragent);
  221. $access_token = explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
  222. }else{
  223. $access_token = $cookie;
  224. }
  225. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  226. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  227. $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'name'};
  228. }else{
  229. echo " \r";
  230. echo $white." 🌸 ".$red."Cookie Die\n";
  231. array_splice($mangcookie,$l,1);
  232. }
  233. $h = datnick($idfb,$useragent);
  234. if ($h == '1'){
  235. echo " \r";
  236. echo $white." 🌸 ".$green."Đang Dùng FB: $yellow".$tenfb."\033[1;32m ID:\033[1;37m ".$idfb."\n";
  237. $i=1;
  238. $max=0;
  239. while($i<10){
  240. $rand = $listnv[array_rand($listnv,1)];
  241. if ($rand == 'like'){
  242. $loai = 'like';
  243. $list = getlike($useragent);
  244. $check = count($list);
  245. if($check==0){
  246. echo " \r";
  247. echo $white." 🌸 ".$red."Hết Nhiệm Vụ Like\r";
  248. }
  249. foreach ($list as $id) {
  250. $id = $id[("idpost")];
  251. $g = like($access_token,$id,$cookie);
  252. if ($g->{'error'}->{'code'} == 368){
  253. echo " \r";
  254. echo $white." 🌸 ".$red."Đã Bị Block\n";
  255. array_splice($mangcookie,$l,1);
  256. $m = 1;
  257. break;
  258. }
  259. if ($g->{'error'}->{'code'} == 190){
  260. echo " \r";
  261. echo $white." 🌸 ".$red."Cookie Die\r";
  262. array_splice($mangcookie,$l,1);
  263. $m = 1;
  264. break;
  265. }
  266. $ck = nhantienlike($id,$useragent);
  267. $s= strlen($ck[("mess")]);
  268. if ($s > 2){
  269. $t = random_int(31,37);
  270. $mau = "\e[1;$t"."m";
  271. $max=$max+1;
  272. $stt=$stt+1;
  273. $xu = getxu();
  274. echo "\r";
  275. echo " \r";
  276. echo $yellow."[$stt]".$red." | ".$cyan;
  277. echo date("H:i:s");
  278. echo $red." |$mau LIKE$red | $white";
  279. echo $id."$red | $yellow";
  280. echo $xu." xu\n";
  281. loadtime($timedelay);
  282. if ($max==$doi){
  283. $max=0;
  284. break;
  285. }
  286. } // nhận tiền
  287. } // foreach
  288.  
  289. if($check!=0){
  290. if($max==0){
  291. if(count($mangcookie)==1){
  292. echo " \r";
  293. for($j = $dl;$j> 0;$j--){
  294. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  295. sleep(1);
  296. echo "\r";
  297. }
  298. }else{
  299. break;}
  300. }
  301. if($m==1){
  302. $m=0;
  303. break;
  304. }
  305. }
  306. }
  307. if ($rand == 'sub'){
  308. $loai = 'sub';
  309. $list = getnv($loai,$useragent);
  310. $check = count($list);
  311. if($check==0){
  312. echo " \r";
  313. echo $white." 🌸 ".$red."Hết Nhiệm Vụ Follow\r";
  314. }
  315. foreach ($list as $id) {
  316. $id = $id[("idpost")];
  317. $g = follow($access_token,$id,$cookie);
  318. if ($g->{'error'}->{'code'} == 368){
  319. echo " \r";
  320. echo $white." 🌸 ".$red."Đã Bị Block\n";
  321. array_splice($mangcookie,$l,1);
  322. $m = 1;
  323. break;
  324. }
  325. if ($g->{'error'}->{'code'} == 190){
  326. echo " \r";
  327. echo $white." 🌸 ".$red."Cookie Die\r";
  328. array_splice($mangcookie,$l,1);
  329. $m = 1;
  330. break;
  331. }
  332. $ck = hoanthanhsub($id);
  333. $s= strlen($ck[("mess")]);
  334. if ($s > 29){
  335. $t = random_int(31,37);
  336. $mau = "\e[1;$t"."m";
  337. $max=$max+1;
  338. $stt=$stt+1;
  339. $xu = getxu();
  340. echo "\r";
  341. echo " \r";
  342. echo $yellow."[$stt]".$red." | ".$cyan;
  343. echo date("H:i:s");
  344. echo $red." |$mau FOLLOW$red | $white";
  345. echo $id."$red | $yellow";
  346. echo $xu." xu\n";
  347. loadtime($timedelay);
  348. if ($max==$doi){
  349. $max=0;
  350. break;
  351. }
  352. } // nhận tiền
  353. } // foreach
  354.  
  355. if($check!=0){
  356. if($max==0){
  357. if(count($mangcookie)==1){
  358. echo " \r";
  359. for($j = $dl;$j> 0;$j--){
  360. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  361. sleep(1);
  362. echo "\r";
  363. }
  364. }else{
  365. break;}
  366. }
  367. if($m==1){
  368. $m=0;
  369. break;
  370. }
  371.  
  372. }
  373. }
  374. if ($rand == 'cmt'){
  375. $loai = 'cmt';
  376. $list = getnv($loai,$useragent);
  377. $check = count($list);
  378. if($check==0){
  379. echo " \r";
  380. echo $white." 🌸 ".$red."Hết Nhiệm Vụ Comment\r";
  381. }
  382. foreach ($list as $id => $key) {
  383. $uid = $key[("idpost")];
  384. $ms = json_decode($key[("nd")]);
  385. $msg = $ms[1];
  386. $g = cmt($access_token,$uid,$cookie,$msg);
  387. if ($g->{'error'}->{'code'} == 368){
  388. echo " \r";
  389. echo $white." 🌸 ".$red."Đã Bị Block\n";
  390. array_splice($mangcookie,$l,1);
  391. $m = 1;
  392. break;
  393. }
  394. if ($g->{'error'}->{'code'} == 190){
  395. echo " \r";
  396. echo $white." 🌸 ".$red."Cookie Die\r";
  397. array_splice($mangcookie,$l,1);
  398. $m = 1;
  399. break;
  400. }
  401. $ck = hoanthanhcmt($uid);
  402. $s= strlen($ck[("mess")]);
  403. if ($s > 29){
  404. $t = random_int(31,37);
  405. $mau = "\e[1;$t"."m";
  406. $max=$max+1;
  407. $stt=$stt+1;
  408. $xu = getxu();
  409. echo "\r";
  410. echo " \r";
  411. echo $yellow."[$stt]".$red." | ".$cyan;
  412. echo date("H:i:s");
  413. echo $red." |$mau CMT$red | $white";
  414. echo $uid."$red | $yellow";
  415. echo $xu." xu\n";
  416. loadtime($timedelay);
  417. if ($max==$doi){
  418. $max=0;
  419. break;
  420. }
  421. } // nhận tiền
  422. } // foreach
  423.  
  424. if($check!=0){
  425. if($max==0){
  426. if(count($mangcookie)==1){
  427. echo " \r";
  428. for($j = $dl;$j> 0;$j--){
  429. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  430. sleep(1);
  431. echo "\r";
  432. }
  433. }else{
  434. break;}
  435. }
  436. if($m==1){
  437. $m=0;
  438. break;
  439. }
  440. }
  441. }
  442. if ($rand == 'page'){
  443. $loai ='likepage';
  444. $list = getnv($loai,$useragent);
  445. $check = count($list);
  446. if($check==0){
  447. echo " \r";
  448. echo $white." 🌸 ".$red."Hết Nhiệm Vụ Like Page\r";
  449. }
  450. foreach ($list as $id) {
  451. $id = $id[("idpost")];
  452. $g = page($id,$cookie);
  453. if ($g->{'error'}->{'code'} == 190){
  454. echo " \r";
  455. echo $white." 🌸 ".$red."Cookie Die\r";
  456. array_splice($mangcookie,$l,1);
  457. $m = 1;
  458. break;
  459. }
  460. $ck = nhantien($loai,$id,$useragent);
  461. $s= strlen($ck[("mess")]);
  462. if ($s > 2){
  463. $t = random_int(31,37);
  464. $mau = "\e[1;$t"."m";
  465. $max=$max+1;
  466. $stt=$stt+1;
  467. $xu = getxu();
  468. echo "\r";
  469. echo " \r";
  470. echo $yellow."[$stt]".$red." | ".$cyan;
  471. echo date("H:i:s");
  472. echo $red." |$mau PAGE$red | $white";
  473. echo $id."$red | $yellow";
  474. echo $xu." xu\n";
  475. loadtime($timedelay);
  476. if ($max==$doi){
  477. $max=0;
  478. break;
  479. }
  480. } // nhận tiền
  481. } // foreach
  482.  
  483. if($check!=0){
  484. if($max==0){
  485. if(count($mangcookie)==1){
  486. echo " \r";
  487. for($j = $dl;$j> 0;$j--){
  488. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  489. sleep(1);
  490. echo "\r";
  491. }
  492. }else{
  493. break;}
  494. }
  495. if($m==1){
  496. $m=0;
  497. break;
  498. }
  499. }
  500. }
  501. if ($rand == 'cx'){
  502. $loai = 'camxuc';
  503. $list = getnv($loai,$useragent);
  504. $check = count($list);
  505. if($check==0){
  506. echo " \r";
  507. echo $white." 🌸 ".$red."Hết Nhiệm Vụ Cảm Xúc\r";
  508. }
  509. foreach ($list as $id => $key) {
  510. $id = $key[("idpost")];
  511. $type = $key[("loaicx")];
  512. $g = camxuc($id,$type,$cookie);
  513. if ($g->{'error'}->{'code'} == 368){
  514. echo " \r";
  515. echo $white." 🌸 ".$red."Đã Bị Block\n";
  516. array_splice($mangcookie,$l,1);
  517. $m = 1;
  518. break;
  519. }
  520. if ($g->{'error'}->{'code'} == 190){
  521. echo " \r";
  522. echo $white." 🌸 ".$red."Cookie Die\r";
  523. array_splice($mangcookie,$l,1);
  524. $m = 1;
  525. break;
  526. }
  527. $ck = hoanthanh($type,$id);
  528. $xu2 = getxu();
  529.  
  530. if ($xu2 != $xu){
  531. $max=$max+1;
  532. $stt=$stt+1;
  533. $xu = $xu2;
  534. $t = random_int(31,37);
  535. $mau = "\e[1;$t"."m";
  536. echo "\r";
  537. echo " \r";
  538. echo $yellow."[$stt]".$red." | ".$cyan;
  539. echo date("H:i:s");
  540. echo $red." |$mau $type"."$red | $white";
  541. echo $id."$red | $yellow";
  542. echo $xu." xu\n";
  543. loadtime($timedelay);
  544. if ($max==$doi){
  545. $max=0;
  546. break;
  547. }
  548. } // nhận tiền
  549. } // foreach
  550.  
  551. if($check!=0){
  552. if($max==0){
  553. if(count($mangcookie)==1){
  554. echo " \r";
  555. for($j = $dl;$j> 0;$j--){
  556. echo $green."Đang Chờ Delay Tránh Block$yellow $j Giây";
  557. sleep(1);
  558. echo "\r";
  559. }
  560. }else{
  561. break;}
  562. }
  563. if($m==1){
  564. $m=0;
  565. break;
  566. }
  567. }
  568. }
  569.  
  570. }
  571.  
  572. }
  573. }
  574. if (count($mangcookie)==1 && empty($dl)){
  575. echo $white." 🌸 ".$green."Dừng Thời Gian: ";
  576. $dl=trim(fgets(STDIN));
  577. }
  578. if (count($mangcookie)==0){
  579. echo $white." 🌸 ".$green."Tất Cả Cookie Đều Die\n";
  580. if ($chedo == 5 or $chedo == 7){
  581. $luong =1;
  582. }else {
  583. echo $white." 🌸 ".$green."Nhập Số Acc Facebook Cần Treo: ";
  584. $luong=trim(fgets(STDIN));
  585. if ($luong<1){exit($red."\033[1;37m~\033[1;31m Lựa Chọn Không Xác Định\n");}
  586. }
  587. $c=1;$thu=1;
  588. if ($chedo<7){
  589. for($b=1;$b<=$luong;$b++){
  590. echo $white." 🌸 ".$yellow."Nhập Cookie Thứ ".$thu.":$white ";
  591. $cooki[$c]=trim(fgets(STDIN));
  592. $ch=curl_init();
  593. $cookie=$cooki[$c];
  594. $access = cookie($cookie,$useragent);
  595. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0])
  596. {
  597. array_push($mangcookie,$cookie);
  598. $c++;
  599. $thu++;
  600. }else{echo $white." 🌸 ".$red."Cookie Die, Hãy Kiểm Tra Lại\n";$b--;}
  601. }
  602. }else{
  603. for($b=1;$b<=$luong;$b++){
  604. echo $white." 🌸 ".$yellow."Nhập Token Thứ ".$thu.":$white ";
  605. $cooki[$c]=trim(fgets(STDIN));
  606. $ch=curl_init();
  607. $cookie=$cooki[$c];
  608. $access_token = $cookie;
  609. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  610. array_push($mangcookie,$cookie);
  611. $c++;
  612. $thu++;
  613. }else{
  614. echo $white." 🌸 ".$red."Token Die, Hãy Kiểm Tra Lại\n";$b--;
  615. }
  616. }
  617. }
  618. if (count($mangcookie)==1 && empty($dl)){
  619. echo $white." 🌸 ".$green."Sau Bao Nhiêu Nhiệm Vụ Bật Tránh Block ";
  620. $doi=trim(fgets(STDIN));
  621. echo $white." 🌸 ".$green."Dừng Thời Gian: ";
  622. $dl=trim(fgets(STDIN));
  623. }
  624. }
  625. }
  626.  
  627.  
  628.  
  629. function cookie($cookie,$useragent){
  630. $ch = curl_init();
  631. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  632. $head[] = "Connection: keep-alive";
  633. $head[] = "Keep-Alive: 300";
  634. $head[] = "authority: m.facebook.com";
  635. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  636. $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";
  637. $head[] = "cache-control: max-age=0";
  638. $head[] = "upgrade-insecure-requests: 1";
  639. $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";
  640. $head[] = "sec-fetch-site: none";
  641. $head[] = "sec-fetch-mode: navigate";
  642. $head[] = "sec-fetch-user: ?1";
  643. $head[] = "sec-fetch-dest: document";
  644. curl_setopt($ch, CURLOPT_USERAGENT,$useragent );
  645. curl_setopt($ch, CURLOPT_ENCODING, '');
  646. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  647. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  648. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  649. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  650. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  651. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  652. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  653. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  654. $access = curl_exec($ch);
  655. curl_close($ch);
  656. return $access;
  657. }
  658. function follow($access_token,$id,$cookie){
  659. $ch=curl_init();
  660. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
  661. $head[] = "Connection: keep-alive";
  662. $head[] = "Keep-Alive: 300";
  663. $head[] = "authority: m.facebook.com";
  664. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  665. $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";
  666. $head[] = "cache-control: max-age=0";
  667. $head[] = "upgrade-insecure-requests: 1";
  668. $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";
  669. $head[] = "sec-fetch-site: none";
  670. $head[] = "sec-fetch-mode: navigate";
  671. $head[] = "sec-fetch-user: ?1";
  672. $head[] = "sec-fetch-dest: document";
  673. 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');
  674. curl_setopt($ch, CURLOPT_ENCODING, '');
  675. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  676. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  677. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  678. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  679. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  680. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  681. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  682. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  683. $data = array('access_token' => $access_token);
  684. curl_setopt($ch, CURLOPT_POST,count($data));
  685. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  686. $access = curl_exec($ch);
  687. curl_close($ch);
  688. return json_decode($access);
  689. }
  690. function like($access_token,$id,$cookie){
  691. $ch=curl_init();
  692. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  693. $head[] = "Connection: keep-alive";
  694. $head[] = "Keep-Alive: 300";
  695. $head[] = "authority: m.facebook.com";
  696. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  697. $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";
  698. $head[] = "cache-control: max-age=0";
  699. $head[] = "upgrade-insecure-requests: 1";
  700. $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";
  701. $head[] = "sec-fetch-site: none";
  702. $head[] = "sec-fetch-mode: navigate";
  703. $head[] = "sec-fetch-user: ?1";
  704. $head[] = "sec-fetch-dest: document";
  705. 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');
  706. curl_setopt($ch, CURLOPT_ENCODING, '');
  707. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  708. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  709. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  710. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  711. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  712. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  713. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  714. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  715. $data = array('access_token' => $access_token);
  716. curl_setopt($ch, CURLOPT_POST,count($data));
  717. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  718. $access = curl_exec($ch);
  719. curl_close($ch);
  720. return json_decode($access);
  721. }
  722. function cmt($access_token,$id,$cookie,$msg){
  723. $ch=curl_init();
  724. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
  725. $head[] = "Connection: keep-alive";
  726. $head[] = "Keep-Alive: 300";
  727. $head[] = "authority: m.facebook.com";
  728. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  729. $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";
  730. $head[] = "cache-control: max-age=0";
  731. $head[] = "upgrade-insecure-requests: 1";
  732. $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";
  733. $head[] = "sec-fetch-site:";
  734. $head[] = "sec-fetch-mode: navigate";
  735. $head[] = "sec-fetch-user: ?1";
  736. $head[] = "sec-fetch-dest: document";
  737. 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');
  738. curl_setopt($ch, CURLOPT_ENCODING, '');
  739. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  740. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  741. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  742. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  743. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  744. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  745. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  746. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  747. $data = array('message' => $msg,'access_token' => $access_token);
  748. curl_setopt($ch, CURLOPT_POST,count($data));
  749. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  750. $access = curl_exec($ch);
  751. curl_close($ch);
  752. return json_decode($access);
  753. }
  754. function page($id,$cookie){
  755. $ch = curl_init();
  756. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  757. $head[] = "Connection: keep-alive";
  758. $head[] = "Keep-Alive: 300";
  759. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  760. $head[] = "Accept-Language: en-us,en;q=0.5";
  761. curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  762. curl_setopt($ch, CURLOPT_ENCODING, '');
  763. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  764. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  765. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  766. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  767. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  768. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  769. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  770. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  771. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  772. :'));
  773. $page = curl_exec($ch);
  774. if (explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0]){
  775. $get = explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0];
  776. $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$id.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  777. curl_setopt($ch, CURLOPT_URL, $link);
  778. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  779. curl_exec($ch);
  780. }
  781. curl_close($ch);
  782.  
  783. }
  784. function camxuc($id,$type,$cookie){
  785. $ch = curl_init();
  786. if(strpos($id,'_')){
  787. $uid = explode('_',$id, 2);
  788. $id2 = 'story.php?story_fbid='.$uid[1].'&id='.$uid[0];
  789. }else{
  790. $id2 = $id;
  791. }
  792. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id2);
  793. $head[] = "Connection: keep-alive";
  794. $head[] = "Keep-Alive: 300";
  795. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  796. $head[] = "Accept-Language: en-us,en;q=0.5";
  797. curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  798. curl_setopt($ch, CURLOPT_ENCODING, '');
  799. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  800. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  801. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  802. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  803. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  804. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  805. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  806. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  807. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  808. :'));
  809. $page = curl_exec($ch);
  810. if ($id2 != $id && explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0]){
  811. $get = explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0];
  812. }else{
  813. $get = $id2;
  814. }
  815. $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$get;
  816. curl_setopt($ch, CURLOPT_URL, $link);
  817. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  818. $cx = curl_exec($ch);
  819. $haha = explode('<a href="',$cx);
  820. if ($type == 'LOVE'){
  821. $haha2 = explode('" style="display:block"',$haha[2])[0];
  822. }else if ($type == 'WOW'){
  823. $haha2 = explode('" style="display:block"',$haha[5])[0];
  824. }else if ($type == 'CARE'){
  825. $haha2 = explode('" style="display:block"',$haha[3])[0];
  826. }else if ($type == 'HAHA'){
  827. $haha2 = explode('" style="display:block"',$haha[4])[0];
  828. }else if ($type == 'SAD'){
  829. $haha2 = explode('" style="display:block"',$haha[6])[0];
  830. }else{
  831. $haha2 = explode('" style="display:block"',$haha[7])[0];
  832. }
  833. $link2 = html_entity_decode($haha2);
  834.  
  835. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  836. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  837. curl_exec($ch);
  838. curl_close($ch);
  839. }
  840. function loadtime($time){
  841. for ( $x = $time; $x--; $x ) {
  842. echo " \r";
  843. echo "\e[1;32mVPH Tools <~>\e[1;37m |\e[1;31m● \e[1;32m● \e[1;33m● \e[1;34m● \e[1;35m● \e[1;37m| ".$x."\033[1;37m |\e[1;33mGiây";
  844. usleep(170000);
  845. echo "\r";
  846. echo " \r";
  847. echo "\e[1;36mND Tools<~>\e[1;37m |\e[1;33m● \e[1;34m● \e[1;35m● \e[1;36m● \e[1;31m● \e[1;37m| ".$x."\033[1;37m |\e[1;34m Giây";
  848. usleep(170000);
  849. echo "\r";
  850. echo " \r";
  851. echo "\e[1;34mND Tools<~>\e[1;37m |\e[1;34m● \e[1;35m● \e[1;36m● \e[1;31m● \e[1;33m● \e[1;37m| ".$x."\033[1;37m |\e[1;31m Giây";
  852. usleep(170000);
  853. echo "\r";
  854. echo " \r";
  855. echo "\e[1;33mND Tools<~>\e[1;37m |\e[1;35m● \e[1;36m● \e[1;31m● \e[1;33m● \e[1;34m● \e[1;37m| ".$x."\033[1;37m |\e[1;32m Giây";
  856. usleep(170000);
  857. echo "\r";
  858. echo " \r";
  859. echo "\e[1;31mND Tools<~>\e[1;37m |\e[1;33m● \e[1;32m● \e[1;31m● \e[1;35m● \e[1;36m●\e[1;37m| ".$x."\033[1;37m |\e[1;36m Giây";
  860. usleep(170000);
  861. echo "\r";
  862. }
  863. }
  864. function loadcmt($time){
  865. for ( $x = $time; $x--; $x ) {
  866. echo " \r";
  867. echo "\e[1;32mND Tools<~>\e[1;37m |\e[1;31m● \e[1;32m● \e[1;33m● \e[1;34m● \e[1;35m● \e[1;37m| ".$x."\033[1;37m |\e[1;33mGiây";
  868. usleep(170000);
  869. echo "\r";
  870. echo " \r";
  871. echo "\e[1;36mND Tools<~>\e[1;37m |\e[1;33m● \e[1;34m● \e[1;35m● \e[1;36m● \e[1;31m● \e[1;37m| ".$x."\033[1;37m |\e[1;34m Giây";
  872. usleep(170000);
  873. echo "\r";
  874. echo " \r";
  875. echo "\e[1;34mND Tools<~>\e[1;37m |\e[1;34m● \e[1;35m● \e[1;36m● \e[1;31m● \e[1;33m● \e[1;37m| ".$x."\033[1;37m |\e[1;31m Giây";
  876. usleep(170000);
  877. echo "\r";
  878. echo " \r";
  879. echo "\e[1;33mND Tools<~>\e[1;37m |\e[1;35m● \e[1;36m● \e[1;31m● \e[1;33m● \e[1;34m● \e[1;37m| ".$x."\033[1;37m |\e[1;32m Giây";
  880. usleep(170000);
  881. echo "\r";
  882. echo " \r";
  883. echo "\e[1;31mND Tools<~>\e[1;37m |\e[1;33m● \e[1;32m● \e[1;31m● \e[1;35m● \e[1;36m●\e[1;37m| ".$x."\033[1;37m |\e[1;36m Giây";
  884. usleep(170000);
  885. echo "\r";
  886.  
  887. }
  888. }
  889. function getcookiettc($user,$pass,$useragent){
  890. $ch=curl_init();
  891. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  892. curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/login.php');
  893. curl_setopt($ch, CURLOPT_COOKIEJAR, "TTC.txt");
  894. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  895. $login =array('username' => $user,'password' => $pass,'submit' => ' ĐĂNG NHẬP');
  896. curl_setopt($ch, CURLOPT_POST,count($login));
  897. curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
  898. curl_setopt($ch, CURLOPT_COOKIEFILE, "TTC.txt");
  899. $source=curl_exec($ch);
  900. curl_close($ch);
  901. if(strlen($source) < 10){
  902. $xu = file_get_contents("http://tttoriginal.tk/api/getxu.php?user=$user&pass=$pass");
  903. }
  904. return $source;
  905. }
  906. function datnick($idfb,$useragent){
  907. $dat=http_build_query(array('iddat[]'=> $idfb, 'loai'=>'fb'));
  908. $ch=curl_init();
  909. curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/cauhinh/datnick.php');
  910. $head[]='Host: tuongtaccheo.com';
  911. $head[]='content-length: '.strlen($dat);
  912. $head[]='accept: */*';
  913. $head[]='origin: https://tuongtaccheo.clm';
  914. $head[]='x-requested-with: XMLHttpRequest';
  915. $head[]='save-data: on';
  916. $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
  917. $head[]='referer: https://tuongtaccheo.com/cauhinh/index.php';
  918. $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';
  919. $head[]='cookie: TawkConnectionTime=0';
  920. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  921. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  922. curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  923. curl_setopt($ch,CURLOPT_POST, 1);
  924. curl_setopt($ch,CURLOPT_POSTFIELDS,$dat);
  925. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
  926. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  927. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  928. curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
  929. $h = curl_exec($ch);
  930. curl_close($ch);
  931. return $h;
  932. }
  933. function getlike($useragent){
  934. $ch=curl_init();
  935. curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/getpost.php');
  936. $head[]='Host: tuongtaccheo.com';
  937. $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
  938. $head[]='x-requested-with: XMLHttpRequest';
  939. $head[]='referer: https://tuongtaccheo.com/kiemtien/';
  940. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  941. curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
  942. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  943. curl_setopt($ch,CURLOPT_POST,1);
  944. curl_setopt($ch,CURLOPT_HTTPGET, true);
  945. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
  946. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  947. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  948. curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
  949. return json_decode(curl_exec($ch),true);
  950. curl_close($ch);
  951. }
  952. function getnv($loai,$useragent){
  953. $ch=curl_init();
  954. curl_setopt($ch, CURLOPT_URL,'https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/getpost.php');
  955. $head[]='Host: tuongtaccheo.com';
  956. $head[]='accept: application/json, text/javascript, *'.'/'.'*; q=0.01';
  957. $head[]='x-requested-with: XMLHttpRequest';
  958. $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';
  959. $head[]='referer: https://tuongtaccheo.com/kiemtien/'.$loai.'cheo';
  960. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  961. curl_setopt($ch,CURLOPT_FOLLOWLOCATION, TRUE);
  962. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  963. curl_setopt($ch,CURLOPT_POST,1);
  964. curl_setopt($ch,CURLOPT_HTTPGET, true);
  965. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0);
  966. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  967. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  968. curl_setopt($ch,CURLOPT_COOKIEFILE, "TTC.txt");
  969. return json_decode(curl_exec($ch),true);
  970. curl_close($ch);
  971. }
  972. function nhantienlike($id,$useragent){
  973. $ch= curl_init();
  974. $data= ('id=').$id;
  975. curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/kiemtien/nhantien.php');
  976. $head[]='Host: tuongtaccheo.com';
  977. $head[]='content-length: '.strlen($data);
  978. $head[]='x-requested-with: XMLHttpRequest';
  979. $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
  980. $head[]='origin: https://tuongtaccheo.com';
  981. $head[]='referer: https://tuongtaccheo.com/kiemtien/';
  982. $head[]='cookie: TawkConnectionTime=0';
  983. curl_setopt($ch,CURLOPT_USERAGENT, $useragent);
  984. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  985. curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  986. curl_setopt($ch,CURLOPT_POST, 1);
  987. curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
  988. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
  989. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  990. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  991. curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
  992. $xu= json_decode(curl_exec($ch), true);
  993. curl_close($ch);
  994. return $xu;
  995. }
  996. function nhantien($loai,$id,$useragent){
  997. $ch= curl_init();
  998. $data= ('id=').$id;
  999. curl_setopt($ch, CURLOPT_URL, 'https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/nhantien.php');
  1000. $head[]='Host: tuongtaccheo.com';
  1001. $head[]='content-length: '.strlen($data);
  1002. $head[]='x-requested-with: XMLHttpRequest';
  1003. $head[]='content-type: application/x-www-form-urlencoded; charset=UTF-8';
  1004. $head[]='origin: https://tuongtaccheo.com';
  1005. $head[]='referer: https://tuongtaccheo.com/kiemtien/'.$loai.'cheo/';
  1006. $head[]='cookie: TawkConnectionTime=0';
  1007. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  1008. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  1009. curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  1010. curl_setopt($ch,CURLOPT_POST, 1);
  1011. curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
  1012. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
  1013. curl_setopt($ch,CURLOPT_HTTPHEADER, $head);
  1014. curl_setopt($ch,CURLOPT_ENCODING, TRUE);
  1015. curl_setopt($ch,CURLOPT_COOKIEFILE,"TTC.txt");
  1016. $xu= json_decode(curl_exec($ch), true);
  1017. curl_close($ch);
  1018. return $xu;
  1019. }
  1020. function hoanthanh($type,$id)
  1021. {
  1022. $url = "https://tuongtaccheo.com/kiemtien/camxuccheo/nhantien.php";
  1023. $data= 'id='.$id.'&loaicx='.$type;
  1024. $head = array(
  1025. "Host: tuongtaccheo.com",
  1026. "content-length: " . strlen($data),
  1027. "x-requested-with: XMLHttpRequest",
  1028. "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",
  1029. "content-type: application/x-www-form-urlencoded; charset=UTF-8",
  1030. "origin: https://tuongtaccheo.com",
  1031. "referer: https://tuongtaccheo.com/kiemtien/camxuccheo/"
  1032. );
  1033. $ch = curl_init();
  1034. curl_setopt_array($ch, array(
  1035. CURLOPT_URL => $url,
  1036. CURLOPT_FOLLOWLOCATION => TRUE,
  1037. CURLOPT_RETURNTRANSFER => 1,
  1038. CURLOPT_POST => 1,
  1039. CURLOPT_POSTFIELDS => $data,
  1040. CURLOPT_SSL_VERIFYPEER => 0,
  1041. CURLOPT_CUSTOMREQUEST => "POST",
  1042. CURLOPT_COOKIEFILE => "TTC.txt",
  1043. CURLOPT_HTTPHEADER => $head,
  1044. CURLOPT_ENCODING => TRUE
  1045. ));
  1046. $a = json_decode(curl_exec($ch), true);
  1047. return $a;
  1048. }
  1049. function getxu(){
  1050. $url = "https://tuongtaccheo.com/home.php";
  1051. $curl = curl_init();
  1052. curl_setopt_array($curl, array(
  1053. CURLOPT_PORT => "443",
  1054. CURLOPT_URL => "$url",
  1055. CURLOPT_RETURNTRANSFER => true,
  1056. CURLOPT_ENCODING => "",
  1057. CURLOPT_SSL_VERIFYPEER => true,
  1058. CURLOPT_CUSTOMREQUEST => "GET",
  1059. CURLOPT_COOKIEFILE => "TTC.txt"
  1060. ));
  1061. $data = curl_exec($curl);
  1062. curl_close($curl);
  1063. preg_match('#id="soduchinh">(.+?)<#is', $data, $sd);
  1064. $xu = $sd["1"];
  1065. return $xu;
  1066. }
  1067. function hoanthanhcmt($id)
  1068. {
  1069. $url = "https://tuongtaccheo.com/kiemtien/cmtcheo/nhantien.php";
  1070. $data= ('id=').$id;
  1071. $head = array(
  1072. "Host: tuongtaccheo.com",
  1073. "content-length: " . strlen($data),
  1074. "x-requested-with: XMLHttpRequest",
  1075. "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",
  1076. "content-type: application/x-www-form-urlencoded; charset=UTF-8",
  1077. "origin: https://tuongtaccheo.com",
  1078. "referer: https://tuongtaccheo.com/kiemtien/cmtcheo/"
  1079. );
  1080. $ch = curl_init();
  1081. curl_setopt_array($ch, array(
  1082. CURLOPT_URL => $url,
  1083. CURLOPT_FOLLOWLOCATION => TRUE,
  1084. CURLOPT_RETURNTRANSFER => 1,
  1085. CURLOPT_POST => 1,
  1086. CURLOPT_POSTFIELDS => $data,
  1087. CURLOPT_SSL_VERIFYPEER => 0,
  1088. CURLOPT_COOKIEFILE => "TTC.txt",
  1089. CURLOPT_HTTPHEADER => $head,
  1090. CURLOPT_ENCODING => TRUE
  1091. ));
  1092. $a = json_decode(curl_exec($ch), true);
  1093. return $a;
  1094. }
  1095. function hoanthanhsub($id)
  1096. {
  1097. $url = "https://tuongtaccheo.com/kiemtien/subcheo/nhantien.php";
  1098. $data= ('id=').$id;
  1099. $head = array(
  1100. "Host: tuongtaccheo.com",
  1101. "content-length: " . strlen($data),
  1102. "x-requested-with: XMLHttpRequest",
  1103. "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",
  1104. "content-type: application/x-www-form-urlencoded; charset=UTF-8",
  1105. "origin: https://tuongtaccheo.com",
  1106. "referer: https://tuongtaccheo.com/kiemtien/cmtcheo/"
  1107. );
  1108. $ch = curl_init();
  1109. curl_setopt_array($ch, array(
  1110. CURLOPT_URL => $url,
  1111. CURLOPT_FOLLOWLOCATION => TRUE,
  1112. CURLOPT_RETURNTRANSFER => 1,
  1113. CURLOPT_POST => 1,
  1114. CURLOPT_POSTFIELDS => $data,
  1115. CURLOPT_SSL_VERIFYPEER => 0,
  1116. CURLOPT_COOKIEFILE => "TTC.txt",
  1117. CURLOPT_HTTPHEADER => $head,
  1118. CURLOPT_ENCODING => TRUE
  1119. ));
  1120. $a = json_decode(curl_exec($ch), true);
  1121. return $a;
  1122. }
  1123.  
  1124.  
  1125.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement