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