Advertisement
Vngosu7

Untitled

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