Advertisement
danhcltx

Untitled

Aug 6th, 2021
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.29 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. session_start();
  4. $ress = "\033[0;32m";
  5. $res = "\033[0;33m";
  6. $red = "\033[0;31m";
  7. $green = "\033[0;37m";
  8. $yellow = "\033[0;33m";
  9. $white = "\033[0;33m";
  10. $xnhac = "\033[1;96m";
  11. $den = "\033[1;90m";
  12. $do = "\033[1;91m";
  13. $luc = "\033[1;92m";
  14. $vang = "\033[1;93m";
  15. $xduong = "\033[1;94m";
  16. $hong = "\033[1;95m";
  17. $trang = "\033[1;97m";
  18. $ress = "\033[0;32m";
  19. $res = "\033[0;33m";
  20. $end = "\033[0m";
  21. $whiteb = "\033[1;37m";
  22. $ress = "\033[0;32m";
  23. $res = "\033[0;33m";
  24. $red = "\033[0;31m";
  25. $blue = "\033[1;96m";
  26. $green = "\033[0;37m";
  27. $yellow = "\033[0;33m";
  28. $maul = rand(31, 37);
  29. $maui = "\033[1;".$maul."m";
  30. $white = "\033[0;33m";
  31. $xnhac = "\033[1;96m";
  32. $den = "\033[1;90m";
  33. $do = "\033[1;91m";
  34. $luc = "\033[1;92m";
  35. $vang = "\033[1;93m";
  36. $xduong = "\033[1;94m";
  37. $hong = "\033[1;95m";
  38. $trang = "\033[1;97m";
  39. $nenden = "\033[40m";
  40. $xanhd = "\033[0;36m";
  41. $nendo = "\033[41m";
  42. $nenxanh = "\033[42m";
  43. $nenvang = "\033[43m";
  44. $nenblue = "\033[44m";
  45. $nenPurpe = "\033[45m";
  46. $nenCyan = "\033[46m";
  47. $nentrang = "\033[47m";
  48. $UGreen = "\033[4;32m";
  49. $BGreen = "\033[1;32m"; $end = "\033[0m";
  50. $whiteb = "\033[1;37m";
  51. $ress = "\033[0;32m";
  52. $res = "\033[0;33m";
  53. $red = "\033[0;31m";
  54. $green = "\033[0;37m";
  55. $yellow = "\033[0;33m";
  56. $maul = rand(31, 37);
  57. $maui = "\033[1;".$maul."m";
  58. $white = "\033[0;33m";
  59. $xnhac = "\033[1;96m";
  60. $den = "\033[1;90m";
  61. $do = "\033[1;91m";
  62. $luc = "\033[1;92m";
  63. $vang = "\033[1;93m";
  64. $xduong = "\033[1;94m";
  65. $hong = "\033[1;95m";
  66. $trang = "\033[1;97m";
  67. $nenden = "\033[40m";
  68. $xanhd = "\033[0;36m";
  69. $nendo = "\033[41m";
  70. $nenxanh = "\033[42m";
  71. $nenvang = "\033[43m";
  72. $nenblue = "\033[44m";
  73. $nenPurpe = "\033[45m";
  74. $nenCyan = "\033[46m";
  75. $nentrang = "\033[47m";
  76. $UGreen = "\033[4;32m";
  77. $BGreen = "\033[1;32m";
  78. $red = "\033[0;31m";
  79. $green = "\033[0;37m";
  80. $yellow = "\033[0;33m";
  81. $white = "\033[0;33m";
  82. $banner = "\r";
  83. $xnhac = "\033[1;96m";
  84. $den = "\033[1;90m";
  85. $do = "\033[1;91m";
  86. $luc = "\033[1;92m";
  87. $vang = "\033[1;93m";
  88. $xduong = "\033[1;94m";
  89. $hong = "\033[1;95m";
  90. $trang = "\033[1;97m";
  91. $datdz = $do."[".$luc."●".$do."] ".$trang."=> ";
  92. date_default_timezone_set("Asia/Ho_Chi_Minh");
  93. $banner = "
  94. \e[1;36m ██████╗ █████╗ ████╗ ██╗██╗ ██╗
  95. \033[1;32m██╔══██╗██╔══██╗██╔██╗ ██║██║ ██║
  96. \033[1;33m██║ ██║███████║██║ ██╗ ██║████████║
  97. \033[1;31m██║ ██║██╔══██║██║ ██╗██║██╔═══██║
  98. \033[1;95m██████╔╝██║ ██║██║ ████║██║ ██║
  99. \033[1;94m╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
  100.  
  101.  
  102. \n";
  103. @system('rm TDS.txt');
  104. @system('clear');
  105. echo $banner;
  106. echo"\033[1;37m\033[1;41m \033[1;32m🌺\033[;33m TOOL TDS COOKIE\033[1;32m🌺 \033[0m
  107. $vang ===============================================================
  108. $cyan ☞ YouTube: Danh Võ
  109. $blue ☞ Zalo: 0929533616
  110. $hong ☞ Tsr: 0929533616
  111. $luc ☞ Facebook:id=100069088879543
  112. $do ☞ Nhớ Đăng Kí Kênh Nha
  113. $vang ===============================================================\n";
  114. @system('clear');
  115. sleep(1);
  116. echo"
  117. --ĐĂNG NHẬP--";
  118. echo"\n";
  119. echo $datdz."".$luc."Vào Web ".$trang."Traodoisub.com".$luc." Bấm Vào Cài Đặt\n"; echo $datdz."".$luc."Sao Chép ".$vang."Access_token".$luc." Dán Vào\n";
  120. echo $datdz."".$luc."Nhập Access_token: $vang";
  121. $tokenacc = trim(fgets(STDIN));
  122.  
  123. for ($v = 0; $v <= 13; $v++) {
  124. echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m- "; usleep(15000);
  125. } echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m-"; usleep(15000); echo"\n";
  126. $dem = 0;
  127. //cookie
  128. $khocookie = [];
  129. if (file_exists('cookiefb.txt')) {
  130. echo $do."[".$whiteb."1".$do."]".$xanhd." Thêm Cookie Mới Facebook Để Chạy\n"; echo $do."[".$whiteb."2".$do."]".$xanhd." Chạy Cookie Facebook Cũ\n"; echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập".$trang." 1 ".$luc."Hoặc".$trang." 2 ".$luc.": $vang "; $choice = trim(fgets(STDIN));
  131. if ($choice == '1') {
  132. @system('rm cookiefb.txt');
  133. }
  134. }
  135. if (!file_exists('cookiefb.txt')) {
  136. echo $do."[".$luc."●".$do."] ".$trang."=> ".$whiteb."Nhập Cookie FB - Nhấn".$do." [".$trang."Enter".$do."] ".$nentrang.$do."Để Dừng Thêm$end\n";
  137. for ($a = 1; $a < 999999; $a++) {
  138. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Cookie Facebook Thứ $a: $vang";
  139. $nhapck = (string)trim(fgets(STDIN));
  140. if ($nhapck == '') {
  141. break;
  142. }
  143. array_push($khocookie, $nhapck);
  144. }
  145. $js = json_encode($khocookie);
  146. $demcki = count($khocookie);
  147. $k = fopen("cookiefb.txt", "a+");
  148. fwrite($k, $js);
  149. fclose($k);
  150. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tìm Thấy ".$vang.$demcki." ".$luc."Cookie Facebook\n";
  151. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Đã Lưu Cookie Facebook Vào File ".$trang."cookiefb.txt\n";
  152. sleep(2);
  153. } else {
  154. $khocookie = json_decode(fread(fopen("cookiefb.txt", "r"), filesize("cookiefb.txt")), true);
  155. $demcki = count($khocookie);
  156. }
  157. //url
  158. $urlinfo = "https://traodoisub.com/api/?fields=profile&access_token=$tokenacc";
  159. $urllike = "https://traodoisub.com/api/?fields=like&access_token=$tokenacc";
  160. $urlsub = "https://traodoisub.com/api/?fields=follow&access_token=$tokenacc";
  161. $urlcx = "https://traodoisub.com/api/?fields=reaction&access_token=$tokenacc";
  162. $urlshare = "https://traodoisub.com/api/?fields=share&access_token=$tokenacc";
  163. $urlcmt = "https://traodoisub.com/api/?fields=comment&access_token=$tokenacc";
  164. $urlpage = "https://traodoisub.com/api/?fields=page&access_token=$tokenacc";
  165. $urllikecmt = "https://traodoisub.com/api/?fields=reactcmt&access_token=$tokenacc";
  166. $urlgr = "https://traodoisub.com/api/?fields=group&access_token=$tokenacc";
  167. //login
  168. $info = api($urlinfo);
  169. if ($info["error"]) {
  170. exit ($info["error"]);
  171. }
  172. //$thongtin
  173. $user = strtolower($info["data"]["user"]);
  174. $xuhientai = $info["data"]["xu"];
  175. system('clear');
  176.  
  177. echo $banner;
  178. for ($v = 0; $v <= 13; $v++) {
  179. echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m- "; usleep(15000);
  180. } echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m-"; usleep(15000); echo"\n";
  181. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Bạn Đang Chạy Tool: ".$vang."Cookie By Danh =))\n";
  182. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Số Facebook Chạy Tool: ".$vang.$demcki."\n";
  183.  
  184. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản : ".$vang.$user."\n";
  185. echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Số Xu Đang có: ".$vang.$xuhientai."\n";
  186. for ($v = 0; $v <= 13; $v++) {
  187. echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m- "; usleep(15000);
  188. } echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m-"; usleep(15000); echo"\n";
  189. echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."1".$do."]".$yellow." Để Chạy Nhiệm Vụ Like\n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."2".$do."]".$yellow." Để Chạy Nhiệm Vụ Follow\n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."3".$do."]".$yellow." Để Chạy Nhiệm Vụ Cảm Xúc\n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."4".$do."]".$yellow." Để Chạy Nhiệm Vụ Comment\n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."5".$do."]".$yellow." Để Chạy Nhiệm Vụ Fanpage\n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."6".$do."]".$yellow." Để Chạy Nhiệm Vụ Share\n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."7".$do."]".$yellow." Để Chạy Nhiệm Vụ Cảm Xúc CMT\n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."8".$do."]".$yellow." Để Chạy Nhiệm Vụ Tham Gia Group \n"; echo $do."[".$luc."✔".$do."] ".$trang."=> ".$yellow."Nhập ".$do."[".$vang."12345678".$do."]".$yellow." Để Chạy All Nhiệm Vụ\n\n"; echo $den." Ghép Số Nhiệm Vụ Lại Để Chạy Random\n\n"; echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Số Để Chạy Nhiệm Vụ: $vang"; $nhiemvu = trim(fgets(STDIN)); echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Thời Gian Làm Nhiệm Vụ ".$nendo.$trang."Min Max$end\n"; echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Thời Gian ".$trang."Min".$luc.": $vang"; $thoigianmin = trim(fgets(STDIN)); echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Thời Gian ".$trang."Max".$luc.": $vang"; $thoigianmax = trim(fgets(STDIN)); echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Sau Bao Nhiêu Nhiệm Vụ Thì Chống Block: $vang"; $xxxxx = trim(fgets(STDIN)); echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Sau ".$vang.$xxxxx.$luc." Nhiệm Vụ Nghỉ Ngơi Bao Nhiêu Giây: $vang"; $delaybl = trim(fgets(STDIN)); echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Chuyển Nick Sau Bao Nhiêu Nhiệm Vụ: $vang"; $doinick = trim(fgets(STDIN)); echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Chạy Bao Nhiêu Nhiệm Vụ Thì Dừng Tool: $vang"; $dungtool = trim(fgets(STDIN));
  190. while (true) {
  191. if (count($khocookie) == 0) {
  192. echo $do."[".$luc."●".$do."] ".$trang."➺❥ ".$red."Nhập Cookie FB - Nhấn".$do." [".$trang."Enter 2 Lần".$do."] ".$nentrang.$do."Để Dừng Thêm$end\n";
  193. for ($a = 1; $a < 999999; $a++) {
  194. echo $do."[".$luc."●".$do."] ".$trang."➺❥ ".$blue."Nhập Cookie Facebook Thứ $a: $vang";
  195. $nhapck = (string)trim(fgets(STDIN));
  196. if ($nhapck == '') {
  197. break;
  198. }
  199. array_push($khocookie, $nhapck);
  200. }
  201. $js = json_encode($khocookie);
  202. $demcki = count($khocookie);
  203. $k = fopen("cookiefb.txt", "a+");
  204. fwrite($k, $js);
  205. fclose($k);
  206. echo $do."[".$luc."●".$do."] ".$trang."➺❥ ".$luc."Tìm Thấy ".$vang.$demcki." ".$luc."Cookie\n";
  207. }
  208. $themtk = 0;
  209. for ($xz = 0; $xz < count($khocookie); $xz++) {
  210. if ($themck == 1) {
  211. break;
  212. }
  213. $cookie = $khocookie[$xz];
  214. $access_token = laytoken($cookie);
  215. if (strpos($access_token, 'EAAAA') !== 0) {
  216. echo "Cookie lỗi!!?! \n";
  217. }
  218. $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {
  219. 'name'
  220. };
  221. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {
  222. 'id'
  223. };
  224. $urlcauhinh = "https://traodoisub.com/api/?fields=run&id=$idfb&access_token=$tokenacc";
  225. $cauhinh = api($urlcauhinh);
  226. if ($cauhinh["data"]["msg"] == "Cấu hình thành công!") {
  227. for ($v = 0; $v <= 13; $v++) {
  228. echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m- "; usleep(15000);
  229. } echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m-"; usleep(15000); echo"\n";
  230. echo $vang."🌍 Chạy FB : ".$luc.$tenfb; usleep(1000); echo $vang." ID : ".$luc.$idfb."\n";
  231. for ($v = 0; $v <= 13; $v++) {
  232. echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m- "; usleep(15000);
  233. } echo "\033[1;90m- "; usleep(15000); echo "\033[1;97m-"; usleep(15000); echo"\n";
  234. } else {
  235. echo $do."Cấu hình thất bại cookie có thể bị die thay cookie tại file ".$trang."cookiefb.txt\n";
  236. exit;
  237. }
  238. $spam = 0;
  239. while (true) {
  240. if ($spam == 1) {
  241. break;
  242. }
  243. //listlike
  244. if (strpos($nhiemvu, '1') !== false) {
  245. for ($i = 0; $i < 30; $i++) {
  246. $listlike = api($urllike);
  247. if (count($listlike) !== 0) {
  248. break;
  249. }}
  250. }
  251. //listfollow
  252. if (strpos($nhiemvu, '2') !== false) {
  253. while (true) {
  254. $listsub = api($urlsub);
  255. if (count($listsub) !== 0) {
  256. break;
  257. }
  258. }}
  259. //listreaction
  260. if (strpos($nhiemvu, '3') !== false) {
  261. for ($i = 1; $i < 30; $i++) {
  262. $listcx = api($urlcx);
  263. if (count($listcx) !== 0) {
  264. break;
  265. }}
  266. }
  267. //listcmt
  268. if (strpos($nhiemvu, '4') !== false) {
  269. for ($i = 1; $i < 30; $i++) {
  270. $listcmt = api($urlcmt);
  271. if (count($listcmt) !== 0) {
  272. break;
  273. }}
  274. }
  275. //listpage
  276. if (strpos($nhiemvu, '5') !== false) {
  277. for ($i = 1; $i < 30; $i++) {
  278. $listpage = api($urlpage);
  279. if (count($listpage) !== 0) {
  280. break;
  281. }}
  282. }
  283. //share
  284. if (strpos($nhiemvu, '6') !== false) {
  285. for ($i = 1; $i < 30; $i++) {
  286. $listshare = api($urlshare);
  287. if (count($listshare) > 0) {
  288. break;
  289. }}
  290. }
  291. //listgroup
  292. if (strpos($nhiemvu, '8') !== false) {
  293. for ($i = 1; $i < 30; $i++) {
  294. $listgr = api($urlgr);
  295. if (count($listgr) !== 0) {
  296. break;
  297. }}
  298. }
  299. //listlikecmt
  300. if (strpos($nhiemvu, '7') !== false) {
  301. for ($i = 1; $i < 30; $i++) {
  302. $listlikecmt = api($urllikecmt);
  303. if (count($listlikecmt) !== 0) {
  304. break;
  305. }}
  306. }
  307. for ($lap = 0; $lap < 20; $lap++) {
  308. // like
  309. if ($listlike !== NULL) {
  310. $idlike = $listlike[$lap]["id"];
  311. if ($idlike !== '') {
  312. $g = like($access_token, $idlike, $cookie);
  313. if ($g -> {
  314. 'error'
  315. } -> {
  316. 'code'
  317. } == 190) {
  318. echo "Token die !!?!\n";
  319. array_splice($khoToken, $xz, 1);
  320. $spam = 1; break;
  321. }
  322. if ($g -> {
  323. 'error'
  324. } -> {
  325. 'code'
  326. } == 368) {
  327. echo "\033[1;91m".$g-> {
  328. 'error'
  329. }-> {
  330. 'message'
  331. };
  332. echo "\n";
  333. array_splice($khocookie, $xz, 1);
  334. $spam = 1;
  335. break;
  336. }
  337. if ($g -> {
  338. 'error'
  339. } -> {
  340. 'code'
  341. } == 405) {
  342. echo "\033[1;91m"."Tài khoản bị checkpoint ăn cứt rồi";
  343. echo "\n";
  344. array_splice($khocookie, $xz, 1);
  345. $spam = 1;
  346. break;
  347. }
  348. $nhanlike = nhantien('LIKE', $idlike, $tokenacc);
  349. if ($nhanlike["success"] == 200) {
  350. $xu = $nhanlike["data"]["xu"];
  351. $xujob = $nhanlike["data"]["msg"];
  352. $dem++;
  353.  
  354. hoanthanh($dem, ' LIKE ', 'Đã Ẩn ID' , $xujob, $xu);
  355. if ($dem >= $dungtool) {
  356. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  357. $stop = trim(fgets(STDIN));
  358. if ($stop == "n") {
  359. $dungtool = 999999;
  360. echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  361. echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của Danh\n";
  362. exit;
  363. } else {
  364. echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  365. $chaythem = trim (fgets(STDIN));
  366. $dungtool = $dungtool + $chaythem;
  367. }
  368. echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  369. $themtk = trim (fgets(STDIN));
  370. if ($themtk == "moi") {
  371. $spam = 1;
  372. $themtk = 1;
  373. $khocookie = [];
  374. break;
  375. } else {
  376. continue;
  377. }
  378. }
  379. if ($dem % $doinick == 0) {
  380. $spam = 1; break;
  381. }
  382. if ($dem % $xxxxx == 0) {
  383. delay($delaybl);
  384. }
  385.  
  386. $delay = rand($thoigianmin, $thoigianmax);
  387. delay($delay);
  388. }
  389. }}
  390. //follow
  391. if ($listsub !== NULL) {
  392. $idsub = $listsub[$lap]["id"];
  393. if ($idsub !== '') {
  394. $g = follow($access_token, $idsub, $cookie);
  395. if ($g -> {
  396. 'error'
  397. } -> {
  398. 'code'
  399. } == 190) {
  400. echo "Cookie die !!?!\n";
  401. array_splice($khocookie, $xz, 1);
  402. $spam = 1; break;
  403. }
  404. if ($g -> {
  405. 'error'
  406. } -> {
  407. 'code'
  408. } == 368) {
  409. echo "\033[1;91m".$g-> {
  410. 'error'
  411. }-> {
  412. 'message'
  413. };
  414. echo "\n";
  415. array_splice($khocookie, $xz, 1);
  416. $spam = 1; break;
  417. }
  418. if ($g -> {
  419. 'error'
  420. } -> {
  421. 'code'
  422. } == 405) {
  423. echo "\033[1;91m"."Tài khoản bị checkpoint ăn cứt rồi";
  424. echo "\n";
  425. array_splice($khocookie, $xz, 1);
  426. $spam = 1; break;
  427. }
  428. $nhansub = nhantien('FOLLOW', $idsub, $tokenacc);
  429. if ($nhansub["success"] == 200) {
  430. $xu = $nhansub["data"]["xu"];
  431. $xujob = $nhansub["data"]["msg"];
  432. $dem++;
  433. hoanthanh($dem, 'FOLLOW', 'ĐÃ ẨN ID' , $xujob, $xu);
  434. if ($dem >= $dungtool) {
  435. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  436. $stop = trim(fgets(STDIN));
  437. if ($stop == "n") {
  438. $dungtool = 999999;
  439. echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  440. echo $luc."Nhớ Sub Kênh Tui Nha\n";
  441. exit;
  442. } else {
  443. echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  444. $chaythem = trim (fgets(STDIN));
  445. $dungtool = $dungtool + $chaythem;
  446. }
  447. echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  448. $themtk = trim (fgets(STDIN));
  449. if ($themtk == "moi") {
  450. $spam = 1;
  451. $themtk = 1;
  452. $khocookie = [];
  453. break;
  454. } else {
  455. continue;
  456. }
  457. }
  458. if ($dem % $doinick == 0) {
  459. $spam = 1; break;
  460. }
  461. if ($dem % $xxxxx == 0) {
  462. delay($delaybl);
  463. }
  464.  
  465. $delay = rand($thoigianmin, $thoigianmax);
  466. delay($delay);
  467. }
  468. }}
  469. //cảm xúc
  470. if ($listcx !== NULL) {
  471. $idcx = $listcx[$lap]["id"];
  472. $type = $listcx[$lap]["type"];
  473. if ($idcx !== '') {
  474. $g = camxuc($idcx, $type, $cookie);
  475. if ($g -> {
  476. 'error'
  477. } -> {
  478. 'code'
  479. } == 190) {
  480. echo "Cookie die !!?!\n";
  481. array_splice($khocookie, $xz, 1);
  482. $spam = 1; break;
  483. }
  484. if ($g -> {
  485. 'error'
  486. } -> {
  487. 'code'
  488. } == 368) {
  489. echo "\033[1;91m".$g-> {
  490. 'error'
  491. }-> {
  492. 'message'
  493. };
  494. echo "\n";
  495. array_splice($khocookie, $xz, 1);
  496. $spam = 1; break;
  497. }
  498. if ($g -> {
  499. 'error'
  500. } -> {
  501. 'code'
  502. } == 405) {
  503. echo "\033[1;91m"."Tài khoản bị checkpoint ăn cứt rồi";
  504. echo "\n";
  505. array_splice($khocookie, $xz, 1);
  506. $spam = 1; break;
  507. }
  508. $nhancx = nhantien($type, $idcx, $tokenacc);
  509. if ($nhancx["success"] == 200) {
  510. $xu = $nhancx["data"]["xu"];
  511. $xujob = $nhancx["data"]["msg"];
  512. $dem++;
  513. if ($type == 'WOW') {
  514. $type = 'WOW';
  515. } elseif ($type == 'SAD') {
  516. $type = 'SAD';
  517. } elseif ($type == 'ANGRY') {
  518. $type = 'ANGRY';
  519. } elseif ($type == 'LOVE') {
  520. $type = 'LOVE';
  521. } elseif ($type == 'HAHA') {
  522. $type = 'HAHA';
  523. }
  524. hoanthanh($dem, $type, 'ĐÃ ẨN ID' , $xujob, $xu);
  525. if ($dem >= $dungtool) {
  526. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  527. $stop = trim(fgets(STDIN));
  528. if ($stop == "n") {
  529. $dungtool = 999999;
  530. echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  531. echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của Danh\n";
  532. exit;
  533. } else {
  534. echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  535. $chaythem = trim (fgets(STDIN));
  536. $dungtool = $dungtool + $chaythem;
  537. }
  538. echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  539. $themtk = trim (fgets(STDIN));
  540. if ($themtk == "moi") {
  541. $spam = 1;
  542. $themtk = 1;
  543. $khocookie = [];
  544. break;
  545. } else {
  546. continue;
  547. }
  548. }
  549. if ($dem % $doinick == 0) {
  550. $spam = 1; break;
  551. }
  552. if ($dem % $xxxxx == 0) {
  553. delay($delaybl);
  554. }
  555.  
  556. $delay = rand($thoigianmin, $thoigianmax);
  557. delay($delay);
  558. }
  559. }}
  560. if ($listshare !== NULL) {
  561. $id = $listshare[$lap]["id"];
  562. $g = share($access_token, $id);
  563. if ($g -> {
  564. 'error'
  565. } -> {
  566. 'code'
  567. } == 190) {
  568. echo "Token die !!?!\n";
  569. array_splice($khoToken, $xz, 1);
  570. $spam = 1; break;
  571. }
  572. if ($g -> {
  573. 'error'
  574. } -> {
  575. 'code'
  576. } == 368) {
  577. echo "\033[1;91m".$g-> {
  578. 'error'
  579. }-> {
  580. 'message'
  581. };
  582. echo "\n";
  583. array_splice($khoToken, $xz, 1);
  584. $spam = 1; break;
  585. }
  586. if ($g -> {
  587. 'error'
  588. } -> {
  589. 'code'
  590. } == 405) {
  591. echo "\033[1;91m"."Tài khoản bị checkpoint ăn cứt rồi";
  592. array_splice($khoToken, $xz, 1);
  593. $spam = 1; break;
  594. }
  595. $nhanshare = nhantien('SHARE', $id, $tokenacc);
  596. if ($nhanshare["success"] == 200) {
  597. $xu = $nhanshare["data"]["xu"];
  598. $xujob = $nhanshare["data"]["msg"];
  599. $dem++;
  600. hoanthanh($dem, 'SHARE', 'ĐÃ ẨN ID' , $xujob, $xu);
  601. if ($dem >= $dungtool) {
  602. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  603. $stop = trim(fgets(STDIN));
  604. if ($stop == "n") {
  605. $dungtool = 999999;
  606. echo $trang."➺❥ Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  607. exit;
  608. } else {
  609. echo $luc."➺❥ Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  610. $chaythem = trim (fgets(STDIN));
  611. $dungtool = $dungtool + $chaythem;
  612. }
  613. echo $luc."➺❥ Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  614. $themtk = trim (fgets(STDIN));
  615. if ($themtk == "moi") {
  616. $spam = 1;
  617. $themtk = 1;
  618. $khocookie = [];
  619. break;
  620. } else {
  621. continue;
  622. }
  623. }
  624. if ($dem % $doinick == 0) {
  625. $spam = 1; break;
  626. }
  627. if ($dem % $xxxxx == 0) {
  628. delay($thoigiannghi);
  629. }
  630. $delay = rand($thoigianmin, $thoigianmax);
  631. delay($delay);
  632. }}
  633. //cmt
  634. if ($listcmt !== NULL) {
  635. $idcmt = $listcmt[$lap]["id"];
  636. $msg = $listcmt[$lap]["msg"];
  637. if ($idcmt !== '') {
  638. $g = cmt($access_token, $idcmt, $cookie, $msg);
  639. if ($g -> {
  640. 'error'
  641. } -> {
  642. 'code'
  643. } == 190) {
  644. echo "Cookie die !!?!\n";
  645. array_splice($khocookie, $xz, 1);
  646. $spam = 1; break;
  647. }
  648. if ($g -> {
  649. 'error'
  650. } -> {
  651. 'code'
  652. } == 368) {
  653. echo "\033[1;91m".$g-> {
  654. 'error'
  655. }-> {
  656. 'message'
  657. };
  658. echo "\n";
  659. array_splice($khocookie, $xz, 1);
  660. $spam = 1; break;
  661. }
  662. if ($g -> {
  663. 'error'
  664. } -> {
  665. 'code'
  666. } == 405) {
  667. echo "\033[1;91m"."Tài khoản bị checkpoint ăn cứt rồi";
  668. echo "\n";
  669. array_splice($khocookie, $xz, 1);
  670. $spam = 1; break;
  671. }
  672. $nhancmt = nhantien('COMMENT', $idcmt, $tokenacc);
  673. if ($nhancmt["success"] == 200) {
  674. $xu = $nhancmt["data"]["xu"];
  675. $xujob = $nhancmt["data"]["msg"];
  676. $dem++;
  677. hoanthanh($dem, ' CMT ', 'ĐÃ ẨN ID' , $xujob, $xu);
  678. if ($dem >= $dungtool) {
  679. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  680. $stop = trim(fgets(STDIN));
  681. if ($stop == "n") {
  682. $dungtool = 999999;
  683. echo $trang."➺❥ Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  684. exit;
  685. } else {
  686. echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  687. $chaythem = trim (fgets(STDIN));
  688. $dungtool = $dungtool + $chaythem;
  689. }
  690. echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  691. $themtk = trim (fgets(STDIN));
  692. if ($themtk == "moi") {
  693. $spam = 1;
  694. $themtk = 1;
  695. $khocookie = [];
  696. break;
  697. } else {
  698. continue;
  699. }
  700. }
  701. if ($dem % $doinick == 0) {
  702. $spam = 1; break;
  703. }
  704. if ($dem % $xxxxx == 0) {
  705. delay($delaybl);
  706. }
  707.  
  708. $delay = rand($thoigianmin, $thoigianmax);
  709. delay($delay);
  710. }
  711. }}
  712. //page
  713. if ($listpage !== NULL) {
  714. $idpage = $listpage[$lap]["id"];
  715. if ($idpage !== '') {
  716. $g = page($idpage, $cookie);
  717. if ($g -> {
  718. 'error'
  719. } -> {
  720. 'code'
  721. } == 190) {
  722. echo "Cookie die !!?!\n";
  723. array_splice($khocookie, $xz, 1);
  724. $spam = 1; break;
  725. }
  726. if ($g -> {
  727. 'error'
  728. } -> {
  729. 'code'
  730. } == 368) {
  731. echo "\033[1;91m".$g-> {
  732. 'error'
  733. }-> {
  734. 'message'
  735. };
  736. echo "\n";
  737. array_splice($khocookie, $xz, 1);
  738. $spam = 1; break;
  739. }
  740. if ($g -> {
  741. 'error'
  742. } -> {
  743. 'code'
  744. } == 405) {
  745. echo "\033[1;91m"."Tài khoản bị checkpoint ăn cứt rồi";
  746. echo "\n";
  747. array_splice($khocookie, $xz, 1);
  748. $spam = 1; break;
  749. }
  750. $nhanpage = nhantien('PAGE', $idpage, $tokenacc);
  751. if ($nhanpage["success"] == 200) {
  752. $xu = $nhanpage["data"]["xu"];
  753. $xujob = $nhanpage["data"]["msg"];
  754. $dem++;
  755. hoanthanh($dem, ' PAGE ', 'ĐÃ ẨN ID' , $xujob, $xu);
  756. if ($dem >= $dungtool) {
  757. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  758. $stop = trim(fgets(STDIN));
  759. if ($stop == "n") {
  760. $dungtool = 999999;
  761. echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  762. echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của Danh\n";
  763. exit;
  764. } else {
  765. echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  766. $chaythem = trim (fgets(STDIN));
  767. $dungtool = $dungtool + $chaythem;
  768. }
  769. echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  770. $themtk = trim (fgets(STDIN));
  771. if ($themtk == "moi") {
  772. $spam = 1;
  773. $themtk = 1;
  774. $khocookie = [];
  775. break;
  776. } else {
  777. continue;
  778. }
  779. }
  780. if ($dem % $doinick == 0) {
  781. $spam = 1; break;
  782. }
  783. if ($dem % $xxxxx == 0) {
  784. delay($delaybl);
  785. }
  786.  
  787. $delay = rand($thoigianmin, $thoigianmax);
  788. delay($delay);
  789. }
  790. }
  791. }
  792. //likecmt
  793. if ($listlikecmt !== NULL) {
  794. $idlikecmt = $listlikecmt[$lap]["id"];
  795. $type = $listlikecmt[$lap]["type"];
  796. if ($idlikecmt !== '') {
  797. if ($type == 'LIKE') {
  798. like($access_token, $idlikecmt, $cookie);
  799. } else {
  800. camxuc($idlikecmt, $type, $cookie);
  801. }
  802. $nhanpage = nhantien($type.'CMT', $idlikecmt, $tokenacc);
  803. if ($nhanpage["success"] == 200) {
  804. $xu = $nhanpage["data"]["xu"];
  805. $xujob = $nhanpage["data"]["msg"];
  806. $dem++;
  807. hoanthanh($dem, $type.' CMT', 'ĐÃ ẨN ID' , $xujob, $xu);
  808. if ($dem >= $dungtool) {
  809. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  810. $stop = trim(fgets(STDIN));
  811. if ($stop == "n") {
  812. $dungtool = 999999;
  813. echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  814. echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của Danh\n";
  815. exit;
  816. } else {
  817. echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  818. $chaythem = trim (fgets(STDIN));
  819. $dungtool = $dungtool + $chaythem;
  820. }
  821. echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  822. $themtk = trim (fgets(STDIN));
  823. if ($themtk == "moi") {
  824. $spam = 1;
  825. $themtk = 1;
  826. $khocookie = [];
  827. break;
  828. } else {
  829. continue;
  830. }
  831. }
  832. if ($dem % $doinick == 0) {
  833. $spam = 1; break;
  834. }
  835. if ($dem % $xxxxx == 0) {
  836. delay($delaybl);
  837. }
  838.  
  839. $delay = rand($thoigianmin, $thoigianmax);
  840. delay($delay);
  841. }
  842. }
  843. }
  844. //group
  845. if ($listgr !== NULL) {
  846. $idgr = $listgr[$lap]["id"];
  847. if ($idgr !== '') {
  848. joingr($idgr, $cookie);
  849. $nhancmt = nhantien('GROUP', $idgr, $tokenacc);
  850. if ($nhancmt["success"] == 200) {
  851. $xu = $nhangr["data"]["xu"];
  852. $xujob = $nhangr["data"]["msg"];
  853. $dem++;
  854. hoanthanh($dem, 'GROUP ', 'ĐÃ ẨN ID' , $xujob, $xu);
  855. if ($dem >= $dungtool) {
  856. echo"\033[1;91mBạn Đã Làm Xong \033[1;93m".$dem."\033[1;91m Nhiệm Vụ, Bạn Có Muốn Tiếp Tục Không (y/n): \033[1;93m";
  857. $stop = trim(fgets(STDIN));
  858. if ($stop == "n") {
  859. $dungtool = 999999;
  860. echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
  861. echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của Danh\n";
  862. exit;
  863. } else {
  864. echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
  865. $chaythem = trim (fgets(STDIN));
  866. $dungtool = $dungtool + $chaythem;
  867. }
  868. echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (moi/cu): $vang";
  869. $themtk = trim (fgets(STDIN));
  870. if ($themtk == "moi") {
  871. $spam = 1;
  872. $themtk = 1;
  873. $khocookie = [];
  874. break;
  875. } else {
  876. continue;
  877. }
  878. }
  879. if ($dem % $doinick == 0) {
  880. $spam = 1; break;
  881. }
  882. if ($dem % $xxxxx == 0) {
  883. delay($delaybl);
  884. }
  885.  
  886. $delay = rand($thoigianmin, $thoigianmax);
  887. delay($delay);
  888. }
  889. }}
  890. }
  891. }}}
  892. function api($url) {
  893. $head = array(
  894. "Host: traodoisub.com",
  895. "cache-control: max-age=0",
  896. "upgrade-insecure-requests: 1",
  897. "user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/E7FBAF",
  898. "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",
  899. "sec-fetch-site: none",
  900. "sec-fetch-mode: navigate",
  901. "sec-fetch-user: ?1",
  902. "sec-fetch-dest: document",
  903. //"accept-encoding: gzip, deflate, br",
  904. "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",
  905. );
  906. $ch = curl_init();
  907. curl_setopt_array($ch, array(
  908. CURLOPT_URL => $url,
  909. CURLOPT_CUSTOMREQUEST => "GET",
  910. CURLOPT_HTTPHEADER => $head,
  911. CURLOPT_SSL_VERIFYPEER => FALSE,
  912. CURLOPT_RETURNTRANSFER => 1
  913. ));
  914. $get = curl_exec($ch);
  915. curl_close($ch);
  916. return json_decode($get, true);
  917. }
  918. function nhantien($type, $id, $tokenacc) {
  919. $nhan = file_get_contents("https://traodoisub.com/api/coin/?type=$type&id=$id&access_token=$tokenacc");
  920. return json_decode($nhan, true);
  921. }
  922. function follow($access_token, $idtest, $cookie) {
  923. $ch = curl_init();
  924. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idtest.'/subscribers');
  925. $head[] = "Connection: keep-alive";
  926. $head[] = "Keep-Alive: 300";
  927. $head[] = "authority: m.facebook.com";
  928. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  929. $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";
  930. $head[] = "cache-control: max-age=0";
  931. $head[] = "upgrade-insecure-requests: 1";
  932. $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";
  933. $head[] = "sec-fetch-site: none";
  934. $head[] = "sec-fetch-mode: navigate";
  935. $head[] = "sec-fetch-user: ?1";
  936. $head[] = "sec-fetch-dest: document";
  937. 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');
  938. curl_setopt($ch, CURLOPT_ENCODING, '');
  939. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  940. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  941. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  942. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  943. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  944. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  945. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  946. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  947. $data = array('access_token' => $access_token);
  948. curl_setopt($ch, CURLOPT_POST, count($data));
  949. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  950. $access = curl_exec($ch);
  951. curl_close($ch);
  952. return json_decode($access);
  953. }
  954.  
  955.  
  956. function share($access_token, $id) {
  957. $ch = curl_init();
  958. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  959. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v2.0/me/feed');
  960. 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');
  961. $data = array(
  962. 'privacy' => '{"value":"EVERYONE"}',
  963. 'message' => '',
  964. 'link' => 'https://mbasic.facebook.com/'.$id.'',
  965. 'access_token' => $access_token
  966. );
  967. curl_setopt($ch, CURLOPT_POST, count($data));
  968. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  969. $a = json_decode(curl_exec($ch), true);
  970. curl_close($ch);
  971. return $a;
  972. }
  973. function like($access_token, $id, $cookie) {
  974. $ch = curl_init();
  975. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  976. $head[] = "Connection: keep-alive";
  977. $head[] = "Keep-Alive: 300";
  978. $head[] = "authority: m.facebook.com";
  979. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  980. $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";
  981. $head[] = "cache-control: max-age=0";
  982. $head[] = "upgrade-insecure-requests: 1";
  983. $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";
  984. $head[] = "sec-fetch-site: none";
  985. $head[] = "sec-fetch-mode: navigate";
  986. $head[] = "sec-fetch-user: ?1";
  987. $head[] = "sec-fetch-dest: document";
  988. 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');
  989. curl_setopt($ch, CURLOPT_ENCODING, '');
  990. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  991. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  992. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  993. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  994. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  995. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  996. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  997. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  998. $data = array('access_token' => $access_token);
  999. curl_setopt($ch, CURLOPT_POST, count($data));
  1000. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  1001. $access = curl_exec($ch);
  1002. curl_close($ch);
  1003. return json_decode($access);
  1004.  
  1005. }
  1006. function cmt($access_token, $idcmt, $cookie, $msg) {
  1007. $ch = curl_init();
  1008. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/comments');
  1009. $head[] = "Connection: keep-alive";
  1010. $head[] = "Keep-Alive: 300";
  1011. $head[] = "authority: m.facebook.com";
  1012. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1013. $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";
  1014. $head[] = "cache-control: max-age=0";
  1015. $head[] = "upgrade-insecure-requests: 1";
  1016. $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";
  1017. $head[] = "sec-fetch-site: none";
  1018. $head[] = "sec-fetch-mode: navigate";
  1019. $head[] = "sec-fetch-user: ?1";
  1020. $head[] = "sec-fetch-dest: document";
  1021. 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');
  1022. curl_setopt($ch, CURLOPT_ENCODING, '');
  1023. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1024. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1025. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1026. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1027. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1028. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1029. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1030. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  1031. $data = array('message' => $msg, 'access_token' => $access_token);
  1032. curl_setopt($ch, CURLOPT_POST, count($data));
  1033. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  1034. $access = curl_exec($ch);
  1035. curl_close($ch);
  1036. return json_decode($access);
  1037. }
  1038. function page($idpage, $cookie) {
  1039. $ch = curl_init();
  1040. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$idpage);
  1041. $head[] = "Connection: keep-alive";
  1042. $head[] = "Keep-Alive: 300";
  1043. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1044. $head[] = "Accept-Language: en-us,en;q=0.5";
  1045. 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');
  1046. curl_setopt($ch, CURLOPT_ENCODING, '');
  1047. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1048. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1049. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1050. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1051. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1052. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1053. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1054. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1055. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  1056. :'));
  1057. $page = curl_exec($ch);
  1058. if (explode('&amp;refid=', explode('pageSuggestionsOnLiking=1&amp;gfid=', $page)[1])[0]) {
  1059. $get = explode('&amp;refid=', explode('pageSuggestionsOnLiking=1&amp;gfid=', $page)[1])[0];
  1060. $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$idpage.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  1061. curl_setopt($ch, CURLOPT_URL, $link);
  1062. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1063. curl_exec($ch);
  1064. }
  1065. curl_close($ch);
  1066.  
  1067. }
  1068. function camxuc($idcx, $type, $cookie) {
  1069. $ch = curl_init();
  1070. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$idcx);
  1071. $head[] = "Connection: keep-alive";
  1072. $head[] = "Keep-Alive: 300";
  1073. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1074. $head[] = "Accept-Language: en-us,en;q=0.5";
  1075. 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');
  1076. curl_setopt($ch, CURLOPT_ENCODING, '');
  1077. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1078. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1079. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1080. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1081. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1082. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1083. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1084. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1085. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  1086. :'));
  1087. $cx = curl_exec($ch);
  1088. $haha = explode('<a href="', $cx);
  1089. if ($type == 'LOVE') {
  1090. $haha2 = explode('" style="display:block"', $haha[2])[0];
  1091. } else if ($type == 'WOW') {
  1092. $haha2 = explode('" style="display:block"', $haha[5])[0];
  1093. } else if ($type == 'HAHA') {
  1094. $haha2 = explode('" style="display:block"', $haha[4])[0];
  1095. } else if ($type == 'SAD') {
  1096. $haha2 = explode('" style="display:block"', $haha[6])[0];
  1097. } else {
  1098. $haha2 = explode('" style="display:block"', $haha[7])[0];
  1099. }
  1100. $link2 = html_entity_decode($haha2);
  1101. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  1102. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1103. curl_exec($ch);
  1104. curl_close($ch);
  1105. }
  1106. function hoanthanh($dem, $type, $id, $xujob, $xu) {
  1107. $maul = rand(31, 37);
  1108. $maui = "\033[1;".$maul."m";
  1109. $a = "\033[1;91m 『\033[0;33m\033[41mDanh Võ\033[0m\033[1;91m』"."\033[1;93m ● \033[1;91m[\033[1;93m".$dem."\033[1;91m] ● \033[1;92m".date("H:i")."\033[1;91m ●\033[1;96m $type\033[1;97m ● \033[1;92m$id\033[0m\033[1;91m ●".$xujob."\033[1;37m ● \033[1;92m".$xu."\033[0m\e[0m\n";
  1110. $len = strlen($a);
  1111. for ($x = 0; $x < $len; $x++) {
  1112. echo $a[$x];
  1113. usleep(1000);
  1114. }
  1115. }
  1116. function delay($delay) {
  1117. for ($time = $delay; $time > -1; $time--) {
  1118. echo "\r\033[1;92m〘\033[1;94mDanh \033[1;31mVõ\033[1;93m〙(☞^o^) ☞\033[0;33m👉 \033[0;37m Lo \033[0;31m |\033[0;33m $time\033[0;31m | ";
  1119. usleep(150000);
  1120.  
  1121. echo "\r\033[1;91m〘\033[1;95mDanh \033[1;32mVõ\033[1;94m〙(☞^o^) ☞\033[0;33m 👉 \033[0;37m Load \033[0;31m |\033[0;33m $time\033[0;31m | ";
  1122. usleep(150000);
  1123. echo "\r\033[1;92m〘\033[1;94mDanh \033[1;31mVõ\033[1;93m〙(☞^o^) ☞\033[0;33m 👉 \033[0;37m Loading❤ \033[0;31m |\033[0;33m $time\033[0;31m | ";
  1124. usleep(150000);
  1125. echo "\r\033[1;94m〘\033[1;92mDanh \033[1;37mVõ\033[1;92m〙(☞^o^) ☞\033[0;33m 👉 \033[0;37m Loading❤️❤ \033[0;31m |\033[0;33m $time\033[0;31m | ";
  1126. usleep(150000);
  1127. echo "\r\033[1;95m〘\033[1;95mDanh \033[1;32mVõ\033[1;94m〙(☞^o^) ☞\033[0;33m 👉\033[0;37m Loading❤️❤️❤️ \033[0;31m |\033[0;33m $time\033[0;31m | ";
  1128. usleep(150000);
  1129. echo "\r\033[1;95m〘\033[1;94mDanh \033[1;31mVõ\033[1;93m〙(☞^o^) ☞\033[0;33m 👉\033[0;37m Loading❤️❤️❤️❤️ \033[0;31m |\033[0;33m $time\033[0;31m | ";
  1130. usleep(150000);
  1131. echo "\r\033[1;95m〘\033[1;92mDanh \033[1;37mVõ\033[1;92m〙(☞^o^) ☞\033[0;33m 👉\033[0;37m Loading❤️❤️❤️❤️❤️\033[0;31m |\033[0;33m $time\033[0;31m | ";
  1132. usleep(100000);
  1133. echo "\r \r";
  1134. }}
  1135. function laytoken($cookie) {
  1136. $ch = curl_init();
  1137. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  1138. $head[] = "Connection: keep-alive";
  1139. $head[] = "Keep-Alive: 300";
  1140. $head[] = "authority: m.facebook.com";
  1141. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1142. $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";
  1143. $head[] = "cache-control: max-age=0";
  1144. $head[] = "upgrade-insecure-requests: 1";
  1145. $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";
  1146. $head[] = "sec-fetch-site: none";
  1147. $head[] = "sec-fetch-mode: navigate";
  1148. $head[] = "sec-fetch-user: ?1";
  1149. $head[] = "sec-fetch-dest: document";
  1150. 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');
  1151. curl_setopt($ch, CURLOPT_ENCODING, '');
  1152. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1153. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1154. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1155. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1156. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1157. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1158. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1159. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  1160. $access = curl_exec($ch);
  1161. curl_close($ch);
  1162. if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0]) {
  1163. $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0];
  1164. }
  1165. return $access_token;
  1166. }
  1167. function joingr($id, $cookie) {
  1168. $ch = curl_init();
  1169. $head_fb = array(
  1170. "Host:mbasic.facebook.com",
  1171. "cache-control:max-age=0",
  1172. "upgrade-insecure-requests:1",
  1173. "save-data:on",
  1174. "user-agent:Mozilla/5.0 (Linux; Android 10; RMX1929) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Mobile Safari/537.36",
  1175. "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",
  1176. "sec-fetch-site:cross-site",
  1177. "sec-fetch-mode:navigate",
  1178. "sec-fetch-user:?1",
  1179. "sec-fetch-dest:document",
  1180. "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",
  1181. "cookie:".$cookie);
  1182. curl_setopt_array ($ch, array (
  1183. CURLOPT_URL => "https://mbasic.facebook.com/groups/$id?_rdr",
  1184. CURLOPT_FOLLOWLOCATION => false,
  1185. CURLOPT_RETURNTRANSFER => 1,
  1186. CURLOPT_POST => 1,
  1187. CURLOPT_HTTPGET => true,
  1188. CURLOPT_SSL_VERIFYPEER => 0,
  1189. CURLOPT_HTTPHEADER => $head_fb,
  1190. CURLOPT_HEADER => true,
  1191. CURLOPT_ENCODING => TRUE));
  1192. $data = curl_exec($ch);
  1193. // var_dump($data);
  1194. if (strpos($data, "xs=deleted") == true) {
  1195. echo ($red."Cookie die rồi\n");
  1196. }
  1197. $tìm = explode("/a/group/join/?", $data);
  1198. $tìm1 = explode('"', $tìm[1]);
  1199. $fb = explode('name="fb_dtsg" value="', $data);
  1200. $fb = explode('"', $fb[1]);
  1201. $fbdtsg = htmlspecialchars_decode($fb[0]);
  1202. $jaz = explode('name="jazoest" value="', $data);
  1203. $jaz = explode('"', $jaz[1]);
  1204. $url = "https://mbasic.facebook.com/a/group/join/?".htmlspecialchars_decode($tìm1[0]);
  1205. $data = "fb_dtsg=$fbdtsg&jazoest=".$jaz[0];
  1206. curl_setopt_array ($ch, array (
  1207. CURLOPT_URL => $url,
  1208. CURLOPT_RETURNTRANSFER => 1,
  1209. CURLOPT_CUSTOMREQUEST => "POST",
  1210. CURLOPT_POSTFIELDS => $data,
  1211. CURLOPT_SSL_VERIFYPEER => 0,
  1212. CURLOPT_HTTPHEADER => $head_fb));
  1213. $xxx = curl_exec($ch);
  1214. }
  1215. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement