· 5 years ago · Dec 27, 2020, 04:52 PM
1<?php
2@system('clear');
3$blueb="\033[1;34m";
4$res="\033[0m";
5$red="\033[0;31m";
6$green="\033[0;32m";
7$greenb="\033[1;32m";
8$yellow="\033[0;33m";
9$yellowb="\033[1;33m";
10$white="\033[0;37m";
11$aqua="\033[36;40m";
12$pink="\033[35;40m";
13error_reporting(0);
14session_start();
15print "\033[0;33m
16 ██╗ ██╗███████╗██╗ ██╗ ██████╗ ██╗
17 ██║ ██║██╔════╝██║ ██║ ██╔═══██╗ ██║
18 ███████║█████╗ ██║ ██║ ██║ ██║ ██║
19 ██╔══██║██╔══╝ ██║ ██║ ██║ ██║ ╚═╝
20 ██║ ██║███████╗███████╗███████╗╚██████╔╝ ██╗
21 ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚═╝
22[+] Chào Mừng Bạn Đến Với Tool Auto TDS v4.0 (Stable) - 21/12/2020
23[+] Có 2 Bản Tool ( Stable và Dev ) Tìm Hiểu Thêm Tại Website Dưới
24[+] Tool Đã Được Kiểm Tra Kỹ Trước Khi Phát Hành Chịnh Thức
25[+] Được Xây Dựng Trên API Của TRAODOISUB.COM Sử Dụng Ngôn Ngữ PHP
26[+] Phát Triển Bởi Nguyễn Duy Quân (@ndq82005)- (Encoded)
27[+] Mọi Ý Kiến Góp Ý Vui Lòng Gửi Về (ndq0908@gmail.com)
28-------------------------------------------------------------------
29";
30//key
31$checkkey = file('https://duyquantds.000webhostapp.com/key');
32$lock=file_get_contents('https://duyquantds.000webhostapp.com/lock');
33$keylock=md5(htmlspecialchars($lock));
34echo $res;
35if (md5('lock') != $keylock) {
36 sleep(1);
37 echo $red."[+] Server Đã Ngừng Hoạt Động - Hoặc Kiểm Tra Lại Kết Nối Mạng\n".$red;
38exit($red."[+] Cập Nhật Phiên Bản Mới Tại (https://duyquan.tk/)\n".$red);
39
40@system('clear');
41}
42 else{
43 echo $yellow."[+] Đang Kết Nối Tới Server - Đang Hoạt Động$res";
44}
45sleep(1);
46echo "\n";
47while (true) {
48 echo "\033[1;32m[+] Nhập Active Key: \033[1;33m";
49 $makey = trim(fgets(STDIN));
50 if ($makey == $checkkey[0])
51
52 {
53 echo "\033[1;32m[+] Key Chính Xác - Vui Lòng Chờ Trong Giây Lát ...";
54 echo "\n";
55 break;
56 } else {
57 echo "\033[0;31m[+] Active Key Không Đúng Hoặc Máy Chủ Đã Ngừng Hoạt Động - Hãy Kiểm Tra Lại ...";
58 echo "\n";
59 }
60}
61//config
62sleep(2);
63@system("clear");
64sleep(3);
65print "\033[0;33m
66 ██╗ ██████╗ ██████╗ ██╗███╗ ██╗
67 ██║ ██╔═══██╗██╔════╝ ██║████╗ ██║
68 ██║ ██║ ██║██║ ███╗██║██╔██╗ ██║
69 ██║ ██║ ██║██║ ██║██║██║╚██╗██║
70 ███████╗╚██████╔╝╚██████╔╝██║██║ ╚████║
71 ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝
72[+] Đăng Nhập Vào Hệ Thống Để Có Thể Sử Dụng Tool Nhé !
73-------------------------------------------------------------------
74";
75
76sleep(1);
77$listnv = [];
78echo $white."[+] Tài Khoản TDS: $green";
79$_SESSION["username"]=trim(fgets(STDIN));
80echo $white."[+] Mật Khẩu TDS: $green";
81$_SESSION['password']=trim(fgets(STDIN));
82echo $white."[+] Cookie FB: $green";
83$cookie=trim(fgets(STDIN));
84echo"$res";
85$ch=curl_init();
86curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
87curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
88curl_setopt($ch, CURLOPT_COOKIEJAR, "ANDROID STUDIO.txt");
89curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
90$login =array('username' => $_SESSION['username'],'password' => $_SESSION['password'],'submit' => ' Đăng Nhập');
91curl_setopt($ch, CURLOPT_POST,count($login));
92curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
93curl_setopt($ch, CURLOPT_COOKIEFILE, "ANDROID STUDIO.txt");
94$source=curl_exec($ch);
95curl_close($ch);
96if ($source != 1 && $source != ''){
97 @system('clear');
98 print "\033[0;33m
99 ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗
100 ██╔════╝██╔═══██╗████╗ ██║██╔════╝██║██╔════╝
101 ██║ ██║ ██║██╔██╗ ██║█████╗ ██║██║ ███╗
102 ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║██║ ██║
103 ╚██████╗╚██████╔╝██║ ╚████║██║ ██║╚██████╔╝
104 ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝
105[+] Thiết Lập Chức Năng Hợp Lý Và Tránh Block Tính Năng ...
106[+] Nếu Chọn Chức Năng Bất Kỳ Hãy Gõ 'ok' Nếu Không Hãy Enter Bỏ Qua
107-------------------------------------------------------------------
108";
109 echo $green."[+] Tài Khoản Đã Được Ghi Nhận\n";
110 $user = $_SESSION["username"];
111 echo $green."[+] Vui Lòng Chọn Nhiệm Vụ ...\n";
112 echo $yellow."[+] Nhiệm Vụ Auto Like (ok/enter): $green";
113 if (trim(fgets(STDIN)) == 'ok'){
114 array_push($listnv,'like');
115 echo $yellow."[+] Delay Like : $green";
116 $_SESSION['delaylike']=trim(fgets(STDIN));
117 if($_SESSION['delaylike'] < 0)
118 {exit($red." Đã Bỏ Qua Nhiệm Vụ Like\n");}
119 }
120 echo $yellow."[+] Nhiệm Vụ Auto Follow (ok/enter): $green";
121 if (trim(fgets(STDIN)) == 'ok'){
122 array_push($listnv,'sub');
123 echo $yellow."[+] Delay Sub : $green";
124 $_SESSION['delaysub']=trim(fgets(STDIN));
125 if($_SESSION['delaysub'] < 0)
126 {exit($red." Đã Bỏ Qua Nhiệm Vụ Follow\n");}
127 }
128 echo $yellow."[+] Nhiệm Vụ Auto Cmt (ok/enter): $green";
129 if (trim(fgets(STDIN)) == 'ok'){
130 array_push($listnv,'cmt');
131 echo $yellow."[+] Delay CMT : $green";
132 $_SESSION['delaycmt']=trim(fgets(STDIN));
133 if($_SESSION['delaycmt'] < 0)
134 {exit($red." Đã Bỏ Qua Nhiệm Vụ Cmt\n");}
135 }
136 echo $yellow."[+] Nhiệm Vụ Auto Like Page (ok/enter): $green";
137 if (trim(fgets(STDIN)) == 'ok'){
138 array_push($listnv,'page');
139 echo $yellow."Delay Page : $green";
140 $_SESSION['delaypage']=trim(fgets(STDIN));
141 if($_SESSION['delaypage'] < 0)
142 {exit($red." Đã Bỏ Qua Nhiệm Vụ Like Page\n");}
143 }
144 echo $yellow."[+] Nhiệm Vụ Reaction (ok/enter): $green";
145 if (trim(fgets(STDIN)) == 'ok'){
146 array_push($listnv,'cx');
147 echo $yellow."[+] Delay Reaction : $green";
148 $_SESSION['delaycx']=trim(fgets(STDIN));
149 if($_SESSION['delaycx'] < 0)
150 {exit($red." Đã Bỏ Qua Nhiệm Vụ Reaction\n");}
151 }
152 if (count($listnv) == 0){exit($red."[+] Hãy Chọn Ít Nhất Một Nhiệm Vụ - Vui Lòng Khởi Động Lại Tool ...");}
153
154 echo $yellow."[+] Delay Chống Block : $green";
155 $_SESSION['j']=trim(fgets(STDIN));
156 if($_SESSION['j'] < 0)
157 {exit($red."[+] Nên Để Tối Thiểu 15 giây\n");}
158 echo $yellow."[+] Số Lần Chạy ( 99999999999 ): $green";
159 $_SESSION['i']=trim(fgets(STDIN));
160 if($_SESSION['i'] < 0)
161 {exit($red."[+] Tối Thiểu 1 Lần\n");}
162}else{
163 exit($red."[+] Xảy Ra Lỗi Không Mong Muốn - Vui Lòng Kiểm Tra Và Thử Lại ...");
164}
165#get_token
166$ch=curl_init();
167curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
168$head[] = "Connection: keep-alive";
169$head[] = "Keep-Alive: 200";
170$head[] = "authority: m.facebook.com";
171$head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
172$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";
173$head[] = "cache-control: max-age=0";
174$head[] = "upgrade-insecure-requests: 1";
175$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";
176$head[] = "sec-fetch-site: none";
177$head[] = "sec-fetch-mode: navigate";
178$head[] = "sec-fetch-user: ?1";
179$head[] = "sec-fetch-dest: document";
180curl_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');
181curl_setopt($ch, CURLOPT_ENCODING, '');
182curl_setopt($ch, CURLOPT_COOKIE, $cookie);
183curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
184curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
185curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
186curl_setopt($ch, CURLOPT_TIMEOUT, 60);
187curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
188curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
189curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
190$access = curl_exec($ch);
191curl_close($ch);
192if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0]){
193$access_token = explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
194if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
195 $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
196}else{
197 exit($red."Cookie die!!");
198}
199$h = datnick($user,$idfb);
200$xu = file_get_contents('https://traodoisub.com/scr/test3.php?user='.$user);
201if ($h == '1'){
202 $i=1;
203 @system("clear");
204$b="\033[1;35m";
205$red="\033[1;31m";
206$green="\033[1;32m";
207$puti="\033[1;37m";
208sleep(5);
209print "\033[0;33m
210 █████╗ ██╗ ██╗████████╗ ██████╗
211 ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗
212 ███████║██║ ██║ ██║ ██║ ██║
213 ██╔══██║██║ ██║ ██║ ██║ ██║
214 ██║ ██║╚██████╔╝ ██║ ╚██████╔╝
215 ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝
216[+] Chào Bạn ! Bạn Đang Sử Dụng Tool TDS V3.0 Cập Nhật 21/12/2020
217[+] Nếu Có Bất Kỳ Góp Ý Nào Vui Lòng Liên Hệ Mình Vào Link Dưới :
218[+] https://facebook.com/ndq82005 hoặc ndq0908@gmail.com
219-------------------------------------------------------------------
220";
221 while ($i <= $_SESSION['i']){
222 $rand = $listnv[array_rand($listnv,1)];
223 if ($rand == 'like'){
224 $list = getnv('like',$user);
225 $check = count($list);
226 if ($check == 0){echo $red."|"; $i++; continue;}
227 echo $green."[+] Đã Tìm thấy ".$check." Nhiệm Vụ!\n";
228 foreach ($list as $id) {
229 $g = like($access_token,$id,$cookie);
230 if ($g->{'error'}->{'code'} == 368){
231 exit($red."[+] Đã Bị Block Tính Năng - Vui Lòng Cấu Hình Tài Khoản FB Khác !");
232 }
233 $s = nhantien('like',$id);
234 if ($s == 2){$xu = $xu + 300; echo $white."[+] [LIKE]|$green ID:".$id." -> $white Thành Công$green +300 xu -> ".$white.$xu;}
235 sleep($_SESSION['delaylike']);
236 echo "
237";
238 }
239 }else if($rand == 'sub'){
240 $list = getnv('follow',$user);
241 $check = count($list);
242 if ($check == 0){echo $red."[+] Hết Nhiệm Vụ - Đang Tìm Kiếm ...\n"; $i++; continue;}
243 echo $green."[+] Tìm thấy ".$check." Nhiệm Vụ !!!\n";
244 foreach ($list as $id) {
245 $g = follow($access_token,$id,$cookie);
246 if ($g->{'error'}->{'code'} == 368){
247 exit($red."[+] Đã Bị Block Tính Năng - Vui Lòng Cấu Hình Tài Khoản FB Khác !");
248 }
249 $s = nhantien('sub',$id);
250 if ($s == 2){$xu = $xu + 600;echo $white."[+] [FOLLOW]|$green ID:".$id." -> $white Thành Công$green +600 xu -> ".$white.$xu;}
251 sleep($_SESSION['delaysub']);
252 echo "
253";
254 }
255 }else if($rand == 'page'){
256 $list = getnv('likepage',$user);
257 $check = count($list);
258 if ($check == 0){echo $red."[+] Hết Nhiệm Vụ - Đang Tìm Kiếm ...\n"; $i++; continue;}
259 echo $green."[+] Tìm thấy ".$check." Nhiệm Vụ !!!\n";
260 foreach ($list as $id) {
261 page($id,$cookie);
262 $s = nhantien('page',$id);
263 if ($s == 2){$xu = $xu + 600; echo $white."[PAGE]|$green ID:".$id." -> $white Thành Công$green +600 xu -> ".$white.$xu;}
264 sleep($_SESSION['delaypage']);
265 echo "\n";
266 }
267 }else if($rand == 'cx'){
268 $list = getnv('camxuc',$user);
269 $check = count($list);
270 if ($check == 0){echo $red."|"; $i++; continue;}
271 echo $green."[+] Tìm thấy ".$check." Nhiệm Vụ !!!\n";
272 foreach ($list as $id => $key) {
273 $id = $key->{'id'};
274 $type = $key->{'type'};
275 camxuc($id,$type,$cookie);
276 $s = nhantiencx($type,$id);
277 if ($s == 2){$xu = $xu + 400; echo $white."[$type]|$green ID:".$id." -> $white Thành Công$green +400 xu -> ".$white.$xu;}
278 sleep($_SESSION['delaycx']);
279 echo "\n";
280 }
281 }
282 else{
283 $list = getnv('cmt',$user);
284 $check = count($list);
285 if ($check == 0){echo $red."[+] Hết Nhiệm Vụ - Đang Tìm Kiếm ...\n"; $i++; continue;}
286 echo $green."[+] Tìm thấy ".$check." Nhiệm Vụ !!!\n";
287 foreach ($list as $id => $key) {
288 $uid = $key->{'id'};
289 $msg = $key->{'nd'};
290 $g = cmt($access_token,$uid,$cookie,$msg);
291 if ($g->{'error'}->{'code'} == 368){
292 exit($red."[+] Đã Bị Block Tính Năng - Vui Lòng Cấu Hình Tài Khoản FB Khác !");
293 }
294 $s = nhantien('cmt',$uid);
295 if ($s == 2){$xu = $xu + 600; echo $white."[CMT]|$green ID:".$uid." -> $white Thành Công$green +600 xu -> ".$white.$xu;}
296 sleep($_SESSION['delaycmt']);
297 }
298 echo "\n";
299 }
300 $i++;
301 echo $red."Delay ".$_SESSION['j']." giây:";
302 for ($x = 0; $x <= $_SESSION['j']; $x++) {
303 echo $green."|";
304 sleep(1);
305 }
306 echo "\n";
307 }
308}else{exit($red."Cấu Hình Thất Bại Vui Lòng Thêm: $id Vào TDS");}
309}else{exit($red."Cookie Die !...");}
310
311function follow($access_token,$id,$cookie){
312 $ch=curl_init();
313 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
314 $head[] = "Connection: keep-alive";
315 $head[] = "Keep-Alive: 200";
316 $head[] = "authority: m.facebook.com";
317 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
318 $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";
319 $head[] = "cache-control: max-age=0";
320 $head[] = "upgrade-insecure-requests: 1";
321 $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";
322 $head[] = "sec-fetch-site: none";
323 $head[] = "sec-fetch-mode: navigate";
324 $head[] = "sec-fetch-user: ?1";
325 $head[] = "sec-fetch-dest: document";
326 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');
327 curl_setopt($ch, CURLOPT_ENCODING, '');
328 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
329 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
330 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
331 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
332 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
333 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
334 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
335 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
336 $data = array('access_token' => $access_token);
337 curl_setopt($ch, CURLOPT_POST,count($data));
338 curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
339 $access = curl_exec($ch);
340 curl_close($ch);
341 return json_decode($access);
342}
343function like($access_token,$id,$cookie){
344 $ch=curl_init();
345 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
346 $head[] = "Connection: keep-alive";
347 $head[] = "Keep-Alive: 200";
348 $head[] = "authority: m.facebook.com";
349 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
350 $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";
351 $head[] = "cache-control: max-age=0";
352 $head[] = "upgrade-insecure-requests: 1";
353 $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";
354 $head[] = "sec-fetch-site: none";
355 $head[] = "sec-fetch-mode: navigate";
356 $head[] = "sec-fetch-user: ?1";
357 $head[] = "sec-fetch-dest: document";
358 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');
359 curl_setopt($ch, CURLOPT_ENCODING, '');
360 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
361 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
362 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
363 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
364 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
365 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
366 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
367 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
368 $data = array('access_token' => $access_token);
369 curl_setopt($ch, CURLOPT_POST,count($data));
370 curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
371 $access = curl_exec($ch);
372 curl_close($ch);
373 return json_decode($access);
374}
375function cmt($access_token,$id,$cookie,$msg){
376 $ch=curl_init();
377 curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
378 $head[] = "Connection: keep-alive";
379 $head[] = "Keep-Alive: 200";
380 $head[] = "authority: m.facebook.com";
381 $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
382 $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";
383 $head[] = "cache-control: max-age=0";
384 $head[] = "upgrade-insecure-requests: 1";
385 $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";
386 $head[] = "sec-fetch-site: none";
387 $head[] = "sec-fetch-mode: navigate";
388 $head[] = "sec-fetch-user: ?1";
389 $head[] = "sec-fetch-dest: document";
390 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');
391 curl_setopt($ch, CURLOPT_ENCODING, '');
392 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
393 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
394 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
395 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
396 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
397 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
398 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
399 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
400 $data = array('message' => $msg,'access_token' => $access_token);
401 curl_setopt($ch, CURLOPT_POST,count($data));
402 curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
403 $access = curl_exec($ch);
404 curl_close($ch);
405 return json_decode($access);
406}
407function page($id,$cookie){
408 $ch = curl_init();
409 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
410 $head[] = "Connection: keep-alive";
411 $head[] = "Keep-Alive: 200";
412 $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
413 $head[] = "Accept-Language: en-us,en;q=0.5";
414 curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
415 curl_setopt($ch, CURLOPT_ENCODING, '');
416 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
417 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
418 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
419 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
420 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
421 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
422 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
423 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
424 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
425 :'));
426 $page = curl_exec($ch);
427 if (explode('&refid=',explode('pageSuggestionsOnLiking=1&gfid=',$page)[1])[0]){
428 $get = explode('&refid=',explode('pageSuggestionsOnLiking=1&gfid=',$page)[1])[0];
429 $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$id.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
430 curl_setopt($ch, CURLOPT_URL, $link);
431 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
432 curl_exec($ch);
433 }
434 curl_close($ch);
435
436}
437function camxuc($id,$type,$cookie){
438 $ch = curl_init();
439 if(strpos($id,'_')){
440 $uid = explode('_',$id, 2);
441 $id2 = 'story.php?story_fbid='.$uid[1].'&id='.$uid[0];
442 }else{
443 $id2 = $id;
444 }
445 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id2);
446 $head[] = "Connection: keep-alive";
447 $head[] = "Keep-Alive: 200";
448 $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
449 $head[] = "Accept-Language: en-us,en;q=0.5";
450 curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
451 curl_setopt($ch, CURLOPT_ENCODING, '');
452 curl_setopt($ch, CURLOPT_COOKIE, $cookie);
453 curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
454 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
455 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
456 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
457 curl_setopt($ch, CURLOPT_TIMEOUT, 60);
458 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
459 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
460 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
461 :'));
462 $page = curl_exec($ch);
463 if ($id2 != $id && explode('&origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0]){
464 $get = explode('&origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0];
465 }else{
466 $get = $id2;
467 }
468 $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$get;
469 curl_setopt($ch, CURLOPT_URL, $link);
470 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
471 $cx = curl_exec($ch);
472 $haha = explode('<a href="',$cx);
473 if ($type == 'LOVE'){
474 $haha2 = explode('" style="display:block"',$haha[2])[0];
475 }else if ($type == 'WOW'){
476 $haha2 = explode('" style="display:block"',$haha[5])[0];
477 }else if ($type == 'HAHA'){
478 $haha2 = explode('" style="display:block"',$haha[4])[0];
479 }else if ($type == 'SAD'){
480 $haha2 = explode('" style="display:block"',$haha[6])[0];
481 }else{
482 $haha2 = explode('" style="display:block"',$haha[7])[0];
483 }
484 $link2 = html_entity_decode($haha2);
485
486 curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
487 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
488 curl_exec($ch);
489 curl_close($ch);
490}
491function getnv($loai,$user){
492 $list = file_get_contents('https://traodoisub.com/scr/api_job.php?chucnang='.$loai.'&user='.$user);
493 return json_decode($list);
494}
495function datnick($user,$id){
496 $xxx = file_get_contents('https://traodoisub.com/scr/api_dat.php?user='.$user.'&idfb='.$id);
497 return $xxx;
498}
499function nhantien($loai,$id){
500 $ch=curl_init();
501 curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantien'.$loai.'.php');
502 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
503 $tdsxu=array('id' => $id);
504 curl_setopt($ch, CURLOPT_POST,count($tdsxu));
505 curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
506 curl_setopt($ch, CURLOPT_COOKIEFILE, "ANDROID STUDIO.txt");
507 $xu=curl_exec($ch);
508 curl_close($ch);
509 return $xu;
510}
511function nhantiencx($loai,$id){
512 $ch=curl_init();
513 curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantiencx.php');
514 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
515 $tdsxu=array('id' => $id, 'loaicx' => $loai);
516 curl_setopt($ch, CURLOPT_POST,count($tdsxu));
517 curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
518 curl_setopt($ch, CURLOPT_COOKIEFILE, "ANDROID STUDIO.txt");
519 $xu=curl_exec($ch);
520 curl_close($ch);
521 return $xu;
522}
523
524?>