Advertisement
danhcltx

Untitled

Jul 13th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.14 KB | None | 0 0
  1. error_reporting(0);
  2. $ress = "\033[0;32m";
  3. $res = "\033[0;33m";
  4. $red = "\033[0;31m";
  5. $green = "\033[0;37m";
  6. $nau= "\e[38;5;94m";
  7. $white = "\033[0;33m";
  8. $banner = "\r";
  9. $xnhac = "\033[1;96m";
  10. $den = "\033[1;90m";
  11. $do = "\033[1;91m";
  12. $luc = "\033[1;92m";
  13. $vang = "\033[1;93m";
  14. $xduong = "\033[1;94m";
  15. $hong = "\033[1;95m";
  16. $trang = "\033[1;97m";
  17. $y2="\033[0;33m";
  18. $white= "\033[0;37m";
  19. $cyan= "\e[1;36m";
  20. $blue="\e[1;34m";
  21. $ngreen="\033[42m";
  22. $ngreen="\033[42m";
  23. $maul=rand(31,37);
  24. $maui="\033[1;".$maul."m";
  25. $banner="\r
  26.  
  27. \e[1;36m ██████╗ █████╗ ████╗ ██╗██╗ ██╗
  28. \033[1;32m██╔══██╗██╔══██╗██╔██╗ ██║██║ ██║
  29. \033[1;33m██║ ██║███████║██║ ██╗ ██║████████║
  30. \033[1;31m██║ ██║██╔══██║██║ ██╗██║██╔═══██║
  31. \033[1;95m██████╔╝██║ ██║██║ ████║██║ ██║
  32. \033[1;94m╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
  33.  
  34.  
  35. \n";
  36. @system('rm TDS.txt');
  37. @system('clear');
  38. echo $banner;
  39. echo"\033[1;37m\033[1;41m \033[1;32m🌺\033[;33m TOOL TDS Đa Luồng Token\033[1;32m🌺 \033[0m
  40. $vang ===============================================================
  41. $cyan ☞ YouTube: Bao Tricker
  42. $blue ☞ Zalo: 0392964471
  43. $hong ☞ Tsr: 0329418447
  44. $luc ☞ Facebook: Bui Gia Bao
  45. $do ☞ Nhớ Đăng Kí Kênh Nha
  46. $vang ===============================================================\n";
  47. //login
  48. $checkkey = file('https://pastebin.com/raw/aL5dxbr5/key');
  49. $lock=file_get_contents('https://pastebin.com/raw/aL5dxbr5');
  50. $keylock=md5(htmlspecialchars($lock));
  51. echo $res;
  52. if (md5('lock') != $keylock) {
  53. }
  54.  
  55. $dem = 0;
  56. echo $do."[".$luc."✓".$do."] ".$trang."=> ".$luc."Nhập Token Acc Traodoisub : $vang";
  57. $tokenacc = trim(fgets(STDIN));
  58. //Token
  59. $khoToken = [];
  60. echo $do."[".$luc."✓".$do."] ".$trang."=> ".$luc."Nhập Số Token Facebook Cần Làm : $vang";
  61. $luong=trim(fgets(STDIN));
  62. for($a=1;$a<=$luong;$a++){
  63. echo $do."[".$luc."✓".$do."] ".$trang."=> ".$luc."Nhập Token Thứ $a: $vang";
  64. $nhapck = (string)trim(fgets(STDIN));
  65. if($nhapck == ''){break;}
  66. array_push($khoToken,$nhapck);
  67. }
  68. //url
  69. $urlinfo = "https://traodoisub.com/api/?fields=profile&access_token=$tokenacc";
  70. $urllike = "https://traodoisub.com/api/?fields=like&access_token=$tokenacc";
  71. $urlsub = "https://traodoisub.com/api/?fields=follow&access_token=$tokenacc";
  72. $urlcmt = "https://traodoisub.com/api/?fields=comment&access_token=$tokenacc";
  73. $urlshare = "https://traodoisub.com/api/?fields=share&access_token=$tokenacc";
  74. //login https://traodoisub.com/api/?fields=share&access_token=TDS0nIxIXZ2V2ciojIyVmdlNnIsISNwAzM0RnxawfIyV2c1Jye
  75. $info = api($urlinfo);
  76. if ($info["error"]) {
  77. exit ($info["error"]);
  78. }
  79. //$thongtin
  80. $user = strtolower($info["data"]["user"]);
  81. $xuhientai = $info["data"]["xu"];
  82. @system('clear');
  83. echo $banner;
  84. echo"\033[1;37m\033[1;41m \033[1;32m🌺\033[;33m TOOL TDS Đa Luồng Token\033[1;32m🌺 \033[0m
  85. $vang ===============================================================
  86. $cyan ☞ YouTube: Bao Tricker ✓
  87. $blue ☞ Zalo: 0392964471
  88. $hong ☞ Tsr: 0329418447
  89. $luc ☞ Facebook: Bui Gia Bao
  90. $do ☞ Nhớ Đăng Kí Kênh Nha
  91. $vang ===============================================================\n";
  92. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tên Tài Khoản Trao Đổi Sub: ".$vang."".$user."\n";
  93. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Số Xu Hiện Tại: ".$vang."".$xuhientai."\n";
  94. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."1".$do."]".$luc." Nhiệm Vụ Like\n";
  95. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."2".$do."]".$luc." Nhiệm Vụ Follow\n";
  96. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."3".$do."]".$luc." Nhiệm Vụ Comment\n";
  97. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."4".$do."]".$luc." Để Chạy Nhiệm Vụ Share\n";
  98. echo $do."Muốn Chạy Random Thì ghi số rồi thêm dấu cộng => vd :1+2+3\n";
  99. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Chọn Chế Độ : $vang";
  100. $nhiemvu = trim(fgets(STDIN));
  101. //while (true){
  102. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Min".$luc.": $vang";
  103. $delay1 = trim(fgets(STDIN));
  104. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Max".$luc.": $vang";
  105. $delay2 = trim(fgets(STDIN));
  106. //if ( is_numeric($delay1) == '' or numeric($delay2) == '' ) { echo " Lỗi Không Xác Định !!! \n"; continue; }
  107. //else if ( ($delay1) > ($delay2) ) { echo $do." Min Phải Nhỏ Hơn Max Nhé, Vui Lòng Nhập Lại \n"; continue; }
  108. //else { break; }}
  109. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Sau Bao Nhiêu Thì Chống Block Hoạt Động : $yellow";
  110. $xxxxx = trim(fgets(STDIN));
  111. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Sau ".$vang.$xxxxx.$luc." Thì Nghỉ Bao Nhiêu Giây : $yellow";
  112. $delaybl = trim(fgets(STDIN));
  113. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Đổi Cấu Hình Sau : $yellow";
  114. $doinick = trim(fgets(STDIN));
  115. echo $vang ."===============================================================\n";
  116. while(true){
  117. if(count($khoToken) == 0){
  118. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Token Nếu Muốn Dừng Bấm Xuống Hàng Nhé\n";
  119. for($a = 1; $a < 999999;$a++){
  120. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Token Thứ $a: $vang";
  121. $nhapck = (string)trim(fgets(STDIN));
  122. if($nhapck == ''){break;}
  123. array_push($khoToken,$nhapck);
  124. }
  125. $js=json_encode($khoToken);
  126. $demcki=count($khoToken);
  127. $k = fopen("Token.txt","a+");
  128. fwrite($k, $js);
  129. fclose($k);
  130. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tìm Thấy ".$vang.$demcki." ".$luc."Token\n";
  131. }
  132. for($xz=0;$xz<count($khoToken);$xz++){
  133. $cookie = $khoToken[$xz];
  134. $access_token = $cookie;
  135. if (strpos($access_token, 'EAAAA') !== 0) {
  136. echo "Token lỗi!!?! \n";
  137. }
  138. $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
  139. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
  140. $urlcauhinh = "https://traodoisub.com/api/?fields=run&id=$idfb&access_token=$tokenacc";
  141. $cauhinh = api($urlcauhinh);
  142. if ($cauhinh["data"]["msg"] == "Cấu hình thành công!") {
  143. echo $vang."==========================================================\n";
  144. echo $vang."Đang Cấu Hình ID: ".$luc.$idfb." ".$vang."Tên FB: ".$luc.$tenfb."".$res."\n";
  145. echo $vang."==========================================================\n";
  146. } else {
  147. echo $do."Cấu hình thất bại token có thể bị die thay token tại file ".$trang."Token.txt\n";
  148. exit;
  149. }
  150. $spam = 0;
  151. while (true) {
  152. if ($spam == 1) {
  153. break;
  154. }
  155. //listlike
  156. if (strpos($nhiemvu, '1') !== false) {
  157. for ($i = 0; $i < 30; $i++) {
  158. $listlike = api($urllike);
  159. if (count($listlike) !== 0) {
  160. break;
  161. }
  162. }
  163. }
  164. //listfollow
  165. if (strpos($nhiemvu, '2') !== false) {
  166. while (true) {
  167. $listsub = api($urlsub);
  168. if (count($listsub) !== 0) {
  169. break;
  170. }
  171. }}
  172. //listcmt
  173. if (strpos($nhiemvu, '3') !== false) {
  174. for ($i = 1; $i < 30; $i++) {
  175. $listcmt = api($urlcmt);
  176. if (count($listcmt) !== 0) {
  177. break;
  178. }}
  179. }
  180. //listshare
  181. if (strpos($nhiemvu, '4') !== false) {
  182. for ($i = 1; $i < 30; $i++) {
  183. $listshare = api($urlshare);
  184. if (count($listshare) > 0) {
  185. break;
  186. }}
  187. }
  188. for ($lap = 0; $lap < 20; $lap++) {
  189. // like
  190. if ($listlike !== NULL) {
  191. $idlike = $listlike[$lap]["id"];
  192. if ($idlike !== '') {
  193. $g = like($access_token, $idlike, $cookie);
  194. if ($g -> {'error'} -> {'code'} == 190) {
  195. echo "Token die !!?!\n";
  196. array_splice($khoToken,$xz,1);
  197. $spam = 1; break;
  198. }
  199. if ($g -> {'error'} -> {'code'} == 368) {
  200. echo "\033[1;91m".$g-> {'error'}-> {'message'};
  201. echo "\n";
  202. $spam = 1;
  203. break;
  204. }
  205. if ($g -> {'error'} -> {'code'} == 405) {
  206. echo "\033[1;91m"."Tài khoản bị checkpoint";
  207. $spam = 1;
  208. array_splice($khoToken,$xz,1);
  209. break;
  210. }
  211. $nhanlike = nhantien('LIKE', $idlike, $tokenacc);
  212. if ($nhanlike["success"] == 200) {
  213. $xu = $nhanlike["data"]["xu"];
  214. $xujob = $nhanlike["data"]["msg"];
  215. $dem++;
  216.  
  217. hoanthanh($dem, ' LIKE ', $idlike, $xujob, $xu);
  218. if($dem % $doinick == 0){
  219. $spam = 1; break;
  220. }
  221. if($dem % $xxxxx == 0){
  222. delay($delaybl);
  223. }
  224.  
  225. $delay = rand($delay1,$delay2);
  226. delay($delay);
  227. }
  228. }}
  229. //follow
  230. if ($listsub !== NULL) {
  231. $idsub = $listsub[$lap]["id"];
  232. if ($idsub !== '') {
  233. $g = follow($access_token, $idsub, $cookie);
  234. if ($g -> {'error'} -> {'code'} == 190) {
  235. echo "Token die !!?!\n";
  236. array_splice($khoToken,$xz,1);
  237. $spam = 1; break;
  238. }
  239. if ($g -> {'error'} -> {'code'} == 368) {
  240. echo "\033[1;91m".$g-> {'error'}-> {'message'};
  241. echo "\n";
  242. $spam = 1; break;
  243. }
  244. if ($g -> {'error'} -> {'code'} == 405) {
  245. echo "\033[1;91m"."Tài khoản bị checkpoint";
  246. array_splice($khoToken,$xz,1);
  247. $spam = 1; break;
  248. }
  249. $nhansub = nhantien('FOLLOW', $idsub, $tokenacc);
  250. if ($nhansub["success"] == 200) {
  251. $xu = $nhansub["data"]["xu"];
  252. $xujob = $nhansub["data"]["msg"];
  253. $dem++;
  254.  
  255. hoanthanh($dem, 'FOLLOW', $idsub, $xujob, $xu);
  256. if($dem % $doinick == 0){
  257. $spam = 1; break;
  258. }
  259. if($dem % $xxxxx == 0){
  260. delay($delaybl);
  261. }
  262.  
  263. $delay = rand($delay1,$delay2);
  264. delay($delay);
  265. }
  266. }}
  267. if ($listshare !== NULL) {
  268. $idshare = $listshare[$lap]["id"];
  269. if (isset($idshare)) {
  270. $r = share($access_token, $idshare);
  271. $g = json_decode($r);
  272. if ($g -> {'error'} -> {'code'} == 190) {
  273. echo "Token die !!?!\n";
  274. array_splice($khoToken,$xz,1);
  275. $spam = 1; break;
  276. }
  277. if ($g -> {'error'} -> {'code'} == 368) {
  278. echo "\033[1;91m".$g-> {'error'}-> {'message'};
  279. echo "\n";
  280. array_splice($khoToken,$xz,1);
  281. $spam = 1; break;
  282. }
  283. if ($g -> {'error'} -> {'code'} == 405) {
  284. echo "\033[1;91m"."Tài khoản bị checkpoint";
  285. array_splice($khoToken,$xz,1);
  286. $spam = 1; break;
  287. }
  288. if (strpos($r, '"id"')){
  289. $nhanshare = nhantien('SHARE', $idshare, $tokenacc);
  290. if ($nhanshare["success"] == 200) {
  291. $xu = $nhanshare["data"]["xu"];
  292. $xujob = $nhanshare["data"]["msg"];
  293. $dem++;
  294. hoanthanh($dem, ' SHARE ', $idshare, $xujob, $xu);
  295. if($dem % $doinick == 0){
  296. $spam = 1; break;
  297. }
  298. if($dem % $xxxxx == 0){
  299. delay($delaybl);
  300. }
  301.  
  302. $delay = rand($delay1,$delay2);
  303. delay($delay);
  304. }
  305.  
  306. }else{
  307. echo $r;
  308. }
  309.  
  310. }else{
  311. break;
  312. }
  313. }
  314. //cmt
  315. if ($listcmt !== NULL) {
  316. $idcmt = $listcmt[$lap]["id"];
  317. $msg = $listcmt[$lap]["msg"];
  318. if ($idcmt !== '') {
  319. cmt($access_token, $idcmt, $cookie, $msg);
  320. $nhancmt = nhantien('COMMENT', $idcmt, $tokenacc);
  321. if ($nhancmt["success"] == 200) {
  322. $xu = $nhancmt["data"]["xu"];
  323. $xujob = $nhancmt["data"]["msg"];
  324. $dem++;
  325. hoanthanh($dem, ' CMT ', $idcmt, $xujob, $xu);
  326. if($dem % $doinick == 0){
  327. $spam = 1; break;
  328. }
  329. if($dem % $xxxxx == 0){
  330. delay($delaybl);
  331. }
  332.  
  333. $delay = rand($delay1,$delay2);
  334. delay($delay);
  335. }
  336. }}
  337. }
  338. }}}
  339. function api($url) {
  340. $head = array(
  341. "Host: traodoisub.com",
  342. "cache-control: max-age=0",
  343. "upgrade-insecure-requests: 1",
  344. "user-agent: Mozilla/5.0 (Linux; Android 9; Mi A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.110 Mobile Safari/537.36",
  345. "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",
  346. "sec-fetch-site: none",
  347. "sec-fetch-mode: navigate",
  348. "sec-fetch-user: ?1",
  349. "sec-fetch-dest: document",
  350. //"accept-encoding: gzip, deflate, br",
  351. "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",
  352. );
  353. $ch = curl_init();
  354. curl_setopt_array($ch, array(
  355. CURLOPT_URL => $url,
  356. CURLOPT_CUSTOMREQUEST => "GET",
  357. CURLOPT_HTTPHEADER => $head,
  358. CURLOPT_SSL_VERIFYPEER => FALSE,
  359. CURLOPT_RETURNTRANSFER => 1
  360. ));
  361. $get = curl_exec($ch);
  362. curl_close($ch);
  363. return json_decode($get, true);
  364. }
  365. function nhantien($type, $id, $tokenacc) {
  366. $nhan = file_get_contents("https://traodoisub.com/api/coin/?type=$type&id=$id&access_token=$tokenacc");
  367. return json_decode($nhan, true);
  368. }
  369. function follow($access_token, $idtest, $cookie) {
  370. $ch = curl_init();
  371. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idtest.'/subscribers');
  372. $head[] = "Connection: keep-alive";
  373. $head[] = "Keep-Alive: 300";
  374. $head[] = "authority: m.facebook.com";
  375. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  376. $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";
  377. $head[] = "cache-control: max-age=0";
  378. $head[] = "upgrade-insecure-requests: 1";
  379. $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";
  380. $head[] = "sec-fetch-site: none";
  381. $head[] = "sec-fetch-mode: navigate";
  382. $head[] = "sec-fetch-user: ?1";
  383. $head[] = "sec-fetch-dest: document";
  384. 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');
  385. curl_setopt($ch, CURLOPT_ENCODING, '');
  386. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  387. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  388. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  389. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  390. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  391. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  392. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  393. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  394. $data = array('access_token' => $access_token);
  395. curl_setopt($ch, CURLOPT_POST, count($data));
  396. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  397. $access = curl_exec($ch);
  398. curl_close($ch);
  399. return json_decode($access);
  400. }
  401. function like($access_token, $id, $cookie) {
  402. $ch = curl_init();
  403. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  404. $head[] = "Connection: keep-alive";
  405. $head[] = "Keep-Alive: 300";
  406. $head[] = "authority: m.facebook.com";
  407. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  408. $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";
  409. $head[] = "cache-control: max-age=0";
  410. $head[] = "upgrade-insecure-requests: 1";
  411. $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";
  412. $head[] = "sec-fetch-site: none";
  413. $head[] = "sec-fetch-mode: navigate";
  414. $head[] = "sec-fetch-user: ?1";
  415. $head[] = "sec-fetch-dest: document";
  416. 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');
  417. curl_setopt($ch, CURLOPT_ENCODING, '');
  418. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  419. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  420. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  421. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  422. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  423. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  424. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  425. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  426. $data = array('access_token' => $access_token);
  427. curl_setopt($ch, CURLOPT_POST, count($data));
  428. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  429. $access = curl_exec($ch);
  430. curl_close($ch);
  431. return json_decode($access);
  432.  
  433. }
  434. function share($access_token,$id){
  435. $ch = curl_init();
  436. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/feed?method=POST&link=https://www.facebook.com/'.$id.'&privacy={%27value%27:%20%27EVERYONE%27}&access_token='.$access_token);
  437. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  438. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
  439. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  440. $headers = array();
  441. $headers[] = 'Authority: graph.facebook.com';
  442. $headers[] = 'Upgrade-Insecure-Requests: 1';
  443. $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36';
  444. $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9';
  445. $headers[] = 'Sec-Fetch-Site: none';
  446. $headers[] = 'Sec-Fetch-Mode: navigate';
  447. $headers[] = 'Sec-Fetch-User: ?1';
  448. $headers[] = 'Sec-Fetch-Dest: document';
  449. $headers[] = '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';
  450. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  451.  
  452. $result = curl_exec($ch);
  453. if (curl_errno($ch)) {
  454. echo 'Error:' . curl_error($ch);
  455. }
  456. curl_close($ch);
  457. return $result;
  458. }
  459. function cmt($access_token, $idcmt, $cookie, $msg) {
  460. $ch = curl_init();
  461. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/comments');
  462. $head[] = "Connection: keep-alive";
  463. $head[] = "Keep-Alive: 300";
  464. $head[] = "authority: m.facebook.com";
  465. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  466. $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";
  467. $head[] = "cache-control: max-age=0";
  468. $head[] = "upgrade-insecure-requests: 1";
  469. $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";
  470. $head[] = "sec-fetch-site: none";
  471. $head[] = "sec-fetch-mode: navigate";
  472. $head[] = "sec-fetch-user: ?1";
  473. $head[] = "sec-fetch-dest: document";
  474. 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');
  475. curl_setopt($ch, CURLOPT_ENCODING, '');
  476. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  477. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  478. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  479. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  480. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  481. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  482. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  483. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  484. $data = array('message' => $msg, 'access_token' => $access_token);
  485. curl_setopt($ch, CURLOPT_POST, count($data));
  486. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  487. $access = curl_exec($ch);
  488. curl_close($ch);
  489. return json_decode($access);
  490. }
  491. function hoanthanh($dem, $type, $id, $xujob, $xu) {
  492. $time = date('H:i');
  493. $maul=rand(31,37);
  494. $maui="\033[1;".$maul."m";
  495. echo " \033[1;36m[\033[1;36m$dem\033[1;36m]\033[1;33m=>\033[1;31m[\033[1;92m$time\033[1;31m]\033[1;35m=>\033[1;31m[\033[1;32m$maui$type\033[1;31m]\033[1;33m=>\033[1;31m[\033[1;91m$id\033[1;31m]\033[1;35m=>\033[1;31m[\033[1;33m$xu\033[1;31m]\033[1;35m\n";
  496. $len = strlen($a);
  497. for ($x = 0; $x < $len; $x++) {
  498. echo $a[$x];
  499. usleep(1000);
  500.  
  501. }
  502. }
  503. function delay($delay) {
  504. for ($time = $delay; $time > -1; $time--) {
  505. echo "\r\033[1;93m ┗(•°_°•)\033[1;91m ~> \033[1;92m L \033[1;91m |\033[1;93m $time\033[1;91m | ";
  506. usleep(150000);
  507.  
  508. echo "\r\033[1;91m ┗(•°_°•)\033[0;33m ~> \033[0;37m LO \033[0;31m |\033[0;33m $time\033[0;31m | ";
  509. usleep(150000);
  510. echo "\r\033[1;92m ┗(•°_°•)\033[0;33m ~> \033[0;37m LOA \033[0;31m |\033[0;33m $time\033[0;31m | ";
  511. usleep(150000);
  512. echo "\r\033[1;94m ┗(•°_°•)\033[0;33m ~> \033[0;37m LOAD \033[0;31m |\033[0;33m $time\033[0;31m | ";
  513. usleep(150000);
  514. echo "\r\033[1;95m ┗(•°_°•)\033[0;33m ~>\033[0;37m LOAD. \033[0;31m |\033[0;33m $time\033[0;31m | ";
  515. usleep(150000);
  516. echo "\r\033[1;95m ┗(•°_°•)\033[0;33m ~>\033[0;37m LOAD.. \033[0;31m |\033[0;33m $time\033[0;31m | ";
  517. usleep(150000);
  518. echo "\r\033[1;95m ┗(•°_°•)\033[0;33m ~>\033[0;37m LOAD...\033[0;31m |\033[0;33m $time\033[0;31m | ";
  519. usleep(100000);
  520. echo "\r \r";
  521. }}
  522. function laytoken($cookie) {
  523. $ch = curl_init();
  524. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  525. $head[] = "Connection: keep-alive";
  526. $head[] = "Keep-Alive: 300";
  527. $head[] = "authority: m.facebook.com";
  528. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  529. $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";
  530. $head[] = "cache-control: max-age=0";
  531. $head[] = "upgrade-insecure-requests: 1";
  532. $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";
  533. $head[] = "sec-fetch-site: none";
  534. $head[] = "sec-fetch-mode: navigate";
  535. $head[] = "sec-fetch-user: ?1";
  536. $head[] = "sec-fetch-dest: document";
  537. 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');
  538. curl_setopt($ch, CURLOPT_ENCODING, '');
  539. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  540. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  541. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  542. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  543. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  544. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  545. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  546. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  547. $access = curl_exec($ch);
  548. curl_close($ch);
  549. if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0]) {
  550. $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0];
  551. }
  552. return $access_token;
  553. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement