Advertisement
danhcltx

cokie

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