danhcltx

Ttc token

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