Advertisement
danhcltx

Untitled

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