Advertisement
danhcltx

Untitled

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