L

tdsck.php

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