Advertisement
danhcltx

Untitled

Jul 13th, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.56 KB | None | 0 0
  1. error_reporting(0);
  2. session_start();
  3. //color
  4. $ress = "\033[0;32m";
  5. $res = "\033[0;33m";
  6. $red = "\033[0;31m";
  7. $green = "\033[0;37m";
  8. $nau= "\e[38;5;94m";
  9. $white = "\033[0;33m";
  10. $banner = "\r";
  11. $xnhac = "\033[1;96m";
  12. $den = "\033[1;90m";
  13. $do = "\033[1;91m";
  14. $luc = "\033[1;92m";
  15. $vang = "\033[1;93m";
  16. $xduong = "\033[1;94m";
  17. $hong = "\033[1;95m";
  18. $trang = "\033[1;97m";
  19. $y2="\033[0;33m";
  20. $white= "\033[0;37m";
  21. $cyan= "\e[1;36m";
  22. $blue="\e[1;34m";
  23. $ngreen="\033[42m";
  24. $ngreen="\033[42m";
  25. $maul=rand(31,37);
  26. $maui="\033[1;".$maul."m";
  27. $banner="\r
  28.  
  29. \e[1;36m ██████╗ █████╗ ████╗ ██╗██╗ ██╗
  30. \033[1;32m██╔══██╗██╔══██╗██╔██╗ ██║██║ ██║
  31. \033[1;33m██║ ██║███████║██║ ██╗ ██║████████║
  32. \033[1;31m██║ ██║██╔══██║██║ ██╗██║██╔═══██║
  33. \033[1;95m██████╔╝██║ ██║██║ ████║██║ ██║
  34. \033[1;94m╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
  35.  
  36.  
  37. \n";
  38. @system('rm TDS.txt');
  39. @system('clear');
  40. echo $banner;
  41. {echo $green."CHÀO MỪNG BẠN ĐÃ ĐẾN VỚI TOOL CÀY XU TĐS \n$ress";
  42. sleep(1);
  43. @system('clear');
  44. sleep(0,3);
  45. $listnv = [];
  46. echo $white."============================[ \033[0;32mĐĂNG NHẬP VÀO TRAO ĐỔI SUB \033[0;37m]===============================\n\n";
  47. echo $white."[ + ] TÀI KHOẢN TDS: $green";
  48. $_SESSION["username"]=trim(fgets(STDIN));
  49. echo $white."[ + ] MẬT KHẨU TDS: $green";
  50. $_SESSION['password']=trim(fgets(STDIN));
  51. echo $white."[ + ] NHẬP COOKIE FB: $green";
  52. $cookie=trim(fgets(STDIN));
  53. echo"$res\n";
  54. $ch=curl_init();
  55. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  56. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  57. curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  58. curl_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');
  59. $login =array('username' => $_SESSION['username'],'password' => $_SESSION['password'],'submit' => ' Đăng Nhập');
  60. curl_setopt($ch, CURLOPT_POST,count($login));
  61. curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
  62. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  63. $source=curl_exec($ch);
  64. curl_close($ch);
  65. sleep(1);
  66. @system('clear');
  67. echo $banner;
  68. if ($source != 1 && $source != ''){
  69. echo $green."ĐĂNG NHẬP THÀNH CÔNG\n\n";
  70. $user = $_SESSION["username"];
  71. echo $white."[ + ] CHÀO MỪNG TÀI KHOẢN\033[0;32m ".$user." \033[0;37mĐÃ VÀO TOOL TRAO ĐỔI SUB CHỌN y HOẶC n ĐỂ CHẠY\n\n";
  72. echo $white."[ + ] NHIỆM VỤ LIKE BÀI VIẾT: $green";
  73. if (trim(fgets(STDIN)) == 'y'){
  74. array_push($listnv,'like');
  75. echo $white."[ + ] THỜI GIAN LÀM NHIỆM VỤ ( ÍT NHẤT 1 GIÂY ) $green";
  76. $_SESSION['delaylike']=trim(fgets(STDIN));
  77. if($_SESSION['delaylike'] < 1)
  78. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  79. }
  80. echo $white."[ + ] NHIỆM VỤ FOLLOW: $green";
  81. if (trim(fgets(STDIN)) == 'y'){
  82. array_push($listnv,'sub');
  83. echo $white."[ + ] THỜI GIAN LÀM NHIỆM VỤ ( ÍT NHẤT 1 GIÂY ) $green";
  84. $_SESSION['delaysub']=trim(fgets(STDIN));
  85. if($_SESSION['delaysub'] < 1)
  86. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  87. }
  88. echo $white."[ + ] NHIỆM VỤ BÌNH LUẬN BÀI VIẾT: $green";
  89. if (trim(fgets(STDIN)) == 'y'){
  90. array_push($listnv,'cmt');
  91. echo $white."[ + ] THỜI GIAN LÀM NHIỆM VỤ ( ÍT NHẤT 1 GIÂY ) $green";
  92. $_SESSION['delaycmt']=trim(fgets(STDIN));
  93. if($_SESSION['delaycmt'] < 1)
  94. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  95. }
  96. echo $white."[ + ] NHIỆM VỤ LIKE FANPAGE: $green";
  97. if (trim(fgets(STDIN)) == 'y'){
  98. array_push($listnv,'page');
  99. echo $white."[ + ] THỜI GIAN LÀM NHIỆM VỤ ( ÍT NHẤT 1 GIÂY ) $green";
  100. $_SESSION['delaypage']=trim(fgets(STDIN));
  101. if($_SESSION['delaypage'] < 1)
  102. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  103. }
  104. echo $white."[ + ] NHIỆM VỤ CẢM XÚC BÀI VIẾT: $green";
  105. if (trim(fgets(STDIN)) == 'y'){
  106. array_push($listnv,'cx');
  107. echo $white."[ + ] THỜI GIAN LÀM NHIỆM VỤ ( ÍT NHẤT 1 GIÂY ) $green";
  108. $_SESSION['delaycx']=trim(fgets(STDIN));
  109. if($_SESSION['delaycx'] < 1)
  110. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  111. }
  112. if (count($listnv) == 0){exit($red."VUI LÒNG CHỌN ÍT NHẤT 1 NHIỆM VỤ");}
  113.  
  114. echo $white."[ + ] THỜI GIAN NGHỈ TRÁNH BỊ BLOCK ( ÍT NHẤT 10 GIÂY ): $green";
  115. $_SESSION['j']=trim(fgets(STDIN));
  116. if($_SESSION['j'] < 10)
  117. {exit($red."ÍT NHẤT 10 GIÂY\n");}
  118. echo $white."[ + ] SỐ LẦN CHẠY: $green";
  119. $_SESSION['i']=trim(fgets(STDIN));
  120. if($_SESSION['i'] < 1)
  121. {exit($red."Tối Thiểu 1 Lần\n");}
  122. }else{
  123. exit($red."ĐĂNG NHẬP THẤT BẠI, KIỂM TRA LẠI TÀI KHOẢN VÀ MẬT KHẨU");
  124. }
  125. echo $white."========================================================================================\n\n";
  126. #get_token
  127. $ch=curl_init();
  128. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  129. $head[] = "Connection: keep-alive";
  130. $head[] = "Keep-Alive: 300";
  131. $head[] = "authority: m.facebook.com";
  132. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  133. $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";
  134. $head[] = "cache-control: max-age=0";
  135. $head[] = "upgrade-insecure-requests: 1";
  136. $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";
  137. $head[] = "sec-fetch-site: none";
  138. $head[] = "sec-fetch-mode: navigate";
  139. $head[] = "sec-fetch-user: ?1";
  140. $head[] = "sec-fetch-dest: document";
  141. 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');
  142. curl_setopt($ch, CURLOPT_ENCODING, '');
  143. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  144. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  145. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  146. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  147. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  148. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  149. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  150. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  151. $access = curl_exec($ch);
  152. curl_close($ch);
  153. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0]){
  154. $access_token = explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
  155. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  156. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  157. }else{
  158. exit($red."COOKIE DIE!!?!");
  159. }
  160. $h = datnick($user,$idfb);
  161. $xu = file_get_contents('https://traodoisub.com/scr/test3.php?user='.$user);
  162. echo $white."[ + ] CHÀO BẠN\033[0;32m ".$user." \033[0;37mSỐ XU CỦA BẠN HIỆN TẠI LÀ:\033[0;32m ".$xu." XU \n";
  163. echo $white."[ + ] BẠN ĐANG CẤU HÌNH VỚI ID:\033[0;32m ".$idfb." \033[0;37mĐỂ LÀM NHIỆM VỤ\n\n";
  164. if ($h == '1'){
  165. $i=1;
  166. while ($i <= $_SESSION['i']){
  167. $rand = $listnv[array_rand($listnv,1)];
  168. if ($rand == 'like'){
  169. $list = getnv('like',$user);
  170. $check = count($list);
  171. if ($check == 0){echo $red."HẾT NHIỆM VỤ\n"; $i++; continue;}
  172. echo $green."[ + ] ĐÃ TÌM THẤY ".$check." NHIỆM VỤ LIKE\n\n";
  173. foreach ($list as $id) {
  174. $g = like($access_token,$id,$cookie);
  175. if ($g->{'error'}->{'code'} == 368){
  176. exit($red."ĐÃ BỊ BLOCK\n");
  177. }
  178. $s = nhantien('like',$id);
  179. if ($s == 2){$stt=$stt+1;$xu = $xu + 300; echo $yellow."[$stt] $white | $green [LIKE] $white | $green THÀNH CÔNG ID: ".ĐÃ CHE ID." $white | $green + 300 XU $white | $green ".$xu." XU";}
  180. else{echo $red."[LIKE] | THẤT BẠI ID ".$id.$green;}
  181. echo "\n";
  182. sleep($_SESSION['delaylike']);
  183. }
  184. }else if($rand == 'sub'){
  185. $list = getnv('follow',$user);
  186. $check = count($list);
  187. if ($check == 0){echo $red."Hết nhiệm vụ!\n"; $i++; continue;}
  188. echo $green."[ + ] ĐÃ TÌM THẤY ".$check." NHIỆM VỤ FOLLOW\n\n";
  189. foreach ($list as $id) {
  190. $g = follow($access_token,$id,$cookie);
  191. if ($g->{'error'}->{'code'} == 368){
  192. exit($red."ĐÃ BỊ BLOCK\n");
  193. }
  194. $s = nhantien('sub',$id);
  195. if ($s == 2){$stt=$stt+1;$xu = $xu + 600;echo $yellow."[$stt] $white | $green [FOLLOW] $white | $green THÀNH CÔNG ID: ".Đã Che ID." $white | $green + 600 XU $white | $green ".$xu." XU";}
  196. else{echo $red."[FOLLOW] | THẤT BẠI ID ".$id.$green;}
  197. echo "\n";
  198. sleep($_SESSION['delaysub']);
  199. }
  200. }else if($rand == 'page'){
  201. $list = getnv('likepage',$user);
  202. $check = count($list);
  203. if ($check == 0){echo $red."Hết nhiệm vụ!\n"; $i++; continue;}
  204. echo $green."[ + ] ĐÃ TÌM THẤY ".$check." NHIỆM VỤ LIKE FANPAGE\n\n";
  205. foreach ($list as $id) {
  206. page($id,$cookie);
  207. $s = nhantien('page',$id);
  208. if ($s == 2){$stt=$stt+1;$xu = $xu + 600; echo $yellow."[$stt] $white | $green [PAGE] $white | $green THÀNH CÔNG ID: ".ĐÃ CHE ID." $white | $green + 600 XU $white | $green ".$xu." XU";}
  209. else{echo $red."[PAGE] | THẤT BẠI ID ".$id.$green;}
  210. echo "\n";
  211. sleep($_SESSION['delaypage']);
  212. }
  213. }else if($rand == 'cx'){
  214. $list = getnv('camxuc',$user);
  215. $check = count($list);
  216. if ($check == 0){echo $red."Hết nhiệm vụ!\n"; $i++; continue;}
  217. echo $green."[ + ] ĐÃ TÌM THẤY ".$check." NHIỆM VỤ CẢM XÚC\n\n";
  218. foreach ($list as $id => $key) {
  219. $id = $key->{'id'};
  220. $type = $key->{'type'};
  221. camxuc($id,$type,$cookie);
  222. $s = nhantiencx($type,$id);
  223. if ($s == 2){$stt=$stt+1;$xu = $xu + 400; echo $yellow."[$stt] $white | $green [$type] $white | $green THÀNH CÔNG ID: ".ĐÃ CHE ID." $white | $green + 400 XU $white | $green ".$xu." XU";}
  224. else{echo $red."[$type] | THẤT BẠI ID ".$id.$green;}
  225. echo "\n";
  226. sleep($_SESSION['delaycx']);
  227. }
  228. }
  229. else{
  230. $list = getnv('cmt',$user);
  231. $check = count($list);
  232. if ($check == 0){echo $red."Hết nhiệm vụ!\n"; $i++; continue;}
  233. echo $green."[ + ] ĐÃ TÌM THẤY ".$check." NHIỆM VỤ CMT\n\n";
  234. foreach ($list as $id => $key) {
  235. $uid = $key->{'id'};
  236. $msg = $key->{'nd'};
  237. $g = cmt($access_token,$uid,$cookie,$msg);
  238. if ($g->{'error'}->{'code'} == 368){
  239. exit($red."ĐÃ BỊ BLOCK\n");
  240. }
  241. $s = nhantien('cmt',$uid);
  242. if ($s == 2){$stt=$stt+1;$xu = $xu + 800; echo $yellow."[$stt] $white | $green [CMT] $white | $green THÀNH CÔNG ID: ".ĐÃ CHE ID." $white | $green + 800 XU $white | $green ".$xu." XU";}
  243. else{echo $red."[CMT] | THẤT BẠI ID ".$id.$green;}
  244. echo "\n";
  245. sleep($_SESSION['delaycmt']);
  246. }
  247. }
  248. $i++;
  249. echo $red."THỜI GIAN NGHỈ ĐỂ TRÁNH BLOCK".$_SESSION['j']." GIÂY:";
  250. echo $white."==========================================================================================================================\n\n";
  251. }
  252. }else{exit($red."CẤU HÌNH THẤT BẠI, VUI LÒNG THÊM ID: ".$idfb." VÀO CẤU HÌNH");}
  253. }else{exit($red."COOKIE DIE RỒI!!");}
  254. }
  255. function follow($access_token,$id,$cookie){
  256. $ch=curl_init();
  257. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
  258. $head[] = "Connection: keep-alive";
  259. $head[] = "Keep-Alive: 300";
  260. $head[] = "authority: m.facebook.com";
  261. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  262. $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";
  263. $head[] = "cache-control: max-age=0";
  264. $head[] = "upgrade-insecure-requests: 1";
  265. $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";
  266. $head[] = "sec-fetch-site: none";
  267. $head[] = "sec-fetch-mode: navigate";
  268. $head[] = "sec-fetch-user: ?1";
  269. $head[] = "sec-fetch-dest: document";
  270. 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');
  271. curl_setopt($ch, CURLOPT_ENCODING, '');
  272. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  273. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  274. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  275. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  276. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  277. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  278. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  279. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  280. $data = array('access_token' => $access_token);
  281. curl_setopt($ch, CURLOPT_POST,count($data));
  282. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  283. $access = curl_exec($ch);
  284. curl_close($ch);
  285. return json_decode($access);
  286. }
  287. function like($access_token,$id,$cookie){
  288. $ch=curl_init();
  289. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  290. $head[] = "Connection: keep-alive";
  291. $head[] = "Keep-Alive: 300";
  292. $head[] = "authority: m.facebook.com";
  293. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  294. $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";
  295. $head[] = "cache-control: max-age=0";
  296. $head[] = "upgrade-insecure-requests: 1";
  297. $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";
  298. $head[] = "sec-fetch-site: none";
  299. $head[] = "sec-fetch-mode: navigate";
  300. $head[] = "sec-fetch-user: ?1";
  301. $head[] = "sec-fetch-dest: document";
  302. 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');
  303. curl_setopt($ch, CURLOPT_ENCODING, '');
  304. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  305. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  306. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  307. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  308. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  309. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  310. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  311. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  312. $data = array('access_token' => $access_token);
  313. curl_setopt($ch, CURLOPT_POST,count($data));
  314. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  315. $access = curl_exec($ch);
  316. curl_close($ch);
  317. return json_decode($access);
  318. }
  319. function cmt($access_token,$id,$cookie,$msg){
  320. $ch=curl_init();
  321. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
  322. $head[] = "Connection: keep-alive";
  323. $head[] = "Keep-Alive: 300";
  324. $head[] = "authority: m.facebook.com";
  325. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  326. $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";
  327. $head[] = "cache-control: max-age=0";
  328. $head[] = "upgrade-insecure-requests: 1";
  329. $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";
  330. $head[] = "sec-fetch-site: none";
  331. $head[] = "sec-fetch-mode: navigate";
  332. $head[] = "sec-fetch-user: ?1";
  333. $head[] = "sec-fetch-dest: document";
  334. 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');
  335. curl_setopt($ch, CURLOPT_ENCODING, '');
  336. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  337. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  338. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  339. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  340. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  341. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  342. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  343. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  344. $data = array('message' => $msg,'access_token' => $access_token);
  345. curl_setopt($ch, CURLOPT_POST,count($data));
  346. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  347. $access = curl_exec($ch);
  348. curl_close($ch);
  349. return json_decode($access);
  350. }
  351. function page($id,$cookie){
  352. $ch = curl_init();
  353. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  354. $head[] = "Connection: keep-alive";
  355. $head[] = "Keep-Alive: 300";
  356. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  357. $head[] = "Accept-Language: en-us,en;q=0.5";
  358. curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  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_VERIFYHOST, FALSE);
  364. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  365. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  366. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  367. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  368. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  369. :'));
  370. $page = curl_exec($ch);
  371. if (explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0]){
  372. $get = explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0];
  373. $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$id.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  374. curl_setopt($ch, CURLOPT_URL, $link);
  375. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  376. curl_exec($ch);
  377. }
  378. curl_close($ch);
  379.  
  380. }
  381. function camxuc($id,$type,$cookie){
  382. $ch = curl_init();
  383. if(strpos($id,'_')){
  384. $uid = explode('_',$id, 2);
  385. $id2 = 'story.php?story_fbid='.$uid[1].'&id='.$uid[0];
  386. }else{
  387. $id2 = $id;
  388. }
  389. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id2);
  390. $head[] = "Connection: keep-alive";
  391. $head[] = "Keep-Alive: 300";
  392. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  393. $head[] = "Accept-Language: en-us,en;q=0.5";
  394. curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  395. curl_setopt($ch, CURLOPT_ENCODING, '');
  396. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  397. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  398. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  399. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  400. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  401. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  402. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  403. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  404. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  405. :'));
  406. $page = curl_exec($ch);
  407. if ($id2 != $id && explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0]){
  408. $get = explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0];
  409. }else{
  410. $get = $id2;
  411. }
  412. $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$get;
  413. curl_setopt($ch, CURLOPT_URL, $link);
  414. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  415. $cx = curl_exec($ch);
  416. $haha = explode('<a href="',$cx);
  417. if ($type == 'LOVE'){
  418. $haha2 = explode('" style="display:block"',$haha[2])[0];
  419. }else if ($type == 'WOW'){
  420. $haha2 = explode('" style="display:block"',$haha[5])[0];
  421. }else if ($type == 'HAHA'){
  422. $haha2 = explode('" style="display:block"',$haha[4])[0];
  423. }else if ($type == 'SAD'){
  424. $haha2 = explode('" style="display:block"',$haha[6])[0];
  425. }else{
  426. $haha2 = explode('" style="display:block"',$haha[7])[0];
  427. }
  428. $link2 = html_entity_decode($haha2);
  429.  
  430. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  431. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  432. curl_exec($ch);
  433. curl_close($ch);
  434. }
  435. function getnv($loai,$user){
  436. $list = file_get_contents('https://traodoisub.com/scr/api_job.php?chucnang='.$loai.'&user='.$user);
  437. return json_decode($list);
  438. }
  439. function datnick($user,$id){
  440. $xxx = file_get_contents('https://traodoisub.com/scr/api_dat.php?user='.$user.'&idfb='.$id);
  441. return $xxx;
  442. }
  443. function nhantien($loai,$id){
  444. $ch=curl_init();
  445. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantien'.$loai.'.php');
  446. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  447. $tdsxu=array('id' => $id);
  448. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  449. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  450. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  451. $xu=curl_exec($ch);
  452. curl_close($ch);
  453. return $xu;
  454. }
  455. function nhantiencx($loai,$id){
  456. $ch=curl_init();
  457. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantiencx.php');
  458. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  459. $tdsxu=array('id' => $id, 'loaicx' => $loai);
  460. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  461. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  462. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  463. $xu=curl_exec($ch);
  464. curl_close($ch);
  465. return $xu;
  466. }
  467.  
  468. ?>
  469.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement