Advertisement
danhcltx

Untitled

Aug 6th, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.49 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. $blue="\033[0;36m";
  9. $white= "\033[0;37m";
  10. $blueb="\033[1;34m";
  11. $greenb="\033[1;32m";
  12. $yellowb="\033[1;33m";
  13. $aqua="\033[36;40m";
  14. $pink="\033[35;40m";
  15. $banner="\r
  16. \033[0;32m
  17. \033[1;92m
  18.  
  19. $blueb ♪♪ Luật Facebook Anh Chơi Bằng 359 !
  20. Đấm Sập Wall Những Kẻ Nói Yêu Em -)
  21. Yêu Nhau Hai Chữ Chung Tình!
  22. Chia Tay Thấy Chữ Không Tìm Thấy Trang 😎
  23. Lỡ Một Ngày Em Theo Thằng Khác 😞
  24. Anh Không Buồn Cũng Không Khóc Đâu Em :)
  25. Đành Ngậm Ngùi Nhìn Wall Em Lần Cuối 😀
  26. Rồi Mỉn Cười Lập Nick Mới Đi Em !😚 ♪♪\n$ress";
  27. sleep(5);
  28. echo $blue, "Sever Tool: Đang Hoạt Động....Loading Tool";
  29. sleep(3);
  30. @system('clear');
  31.  
  32.  
  33.  
  34.  
  35. "\n";
  36. //config
  37. {
  38. @system('clear');
  39. echo $banner;
  40. sleep(5);
  41. $listnv = [];
  42.  
  43.  
  44. $checkkey = file('https://huy00.000webhostapp.com/key');
  45. $lock=file_get_contents('https://huy00.000webhostapp.com/lock');
  46. $keylock=md5(htmlspecialchars($lock));
  47. echo $res;
  48. if (md5('lock') != $keylock) {
  49. sleep(1);
  50. echo $red."Server Đã Ngừng Hoạt Động !!!\n".$red;
  51. exit($red."Vui Lòng Mua tool ở zalo :0826357191 !!!\n".$red);
  52.  
  53. @system('clear');
  54. }
  55. else{
  56.  
  57. sleep(1);
  58. echo "\n";
  59. while (true) {
  60. echo "
  61.  
  62. \033[1;36mNhập Api Key: \033[35;40m";
  63. $makey = trim(fgets(STDIN));
  64. if ($makey == "$checkkey[0]")
  65.  
  66. {
  67. echo "\033[1;32m Loading Tool....";
  68. echo "\n";
  69. @system('clear');
  70. break;
  71. } else {
  72. echo "\033[1;31m Sai Key ! (Mua Key Tại: Zalo:0839777255)";
  73. echo "\n";
  74. }
  75. }
  76. echo $blue."
  77.  
  78. $blue
  79. ⭐ Ăn Quả Nhớ Kẻ Trồng Cây
  80. Lấy Tool Thì Nhớ Người Cho Mà Dùng ⭐
  81. - Minh Huy Tv -
  82.  
  83. $white- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $yellowb
  84. Đừng Nhập Tài Khoản Tại Đây -> $greenb";;
  85. $_SESSION["username"]=trim(fgets(STDIN));
  86. echo $white."- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $yellowb
  87. Đừng Nhập Mật Khẩu Tại Đây -> $greenb";
  88. $_SESSION['password']=trim(fgets(STDIN));
  89. echo $white."- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $yellowb
  90. Đừng Nhập Cookie Facebook Tại Đây -> $greenb";
  91. $cookie=trim(fgets(STDIN));
  92. }
  93. $ch=curl_init();
  94. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  95. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  96. curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  97. 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');
  98. $login =array('username' => $_SESSION['username'],'password' => $_SESSION['password'],'submit' => ' Đăng Nhập');
  99. curl_setopt($ch, CURLOPT_POST,count($login));
  100. curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
  101. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  102. $source=curl_exec($ch);
  103. curl_close($ch);
  104. if ($source != 1 && $source != ''){
  105. @system('clear');
  106.  
  107. echo $yellow." ⭐🌸⭐🌸⭐ĐÃ NHẬN THẤY TINH TRÙNG VÀ TRỨNG!!!⭐🌸⭐🌸⭐
  108. TOOL BY MINH HUY TV | UPDATE At Youtube Kevin Mã
  109.  
  110. ========================================================
  111. $green ♪♪ MINH HUY TV !!! ♪♪ | $red Yêu Trang Suốt Đời:3 |
  112. $white ========================================================
  113.  
  114. $yellow 🌸| ⭐ |SUPORT FACEBOOK: ZALO -> 0839777255 | ⭐ | FB: fb.com/minhhuytv | ⭐ | 🌸
  115.  
  116. ==============================================================
  117. Việt Nam Number 1 | Hoàng Sa Trường Sa Là Của Việt Nam
  118. YOUTUBE: KEVIN MÃ - LINH NHI OFFCIAL - MINH HUY TV
  119. ==============================================================
  120. $white ---------------------------------------- ᕦ( ͡° ͜ʖ ͡°)ᕤ
  121.  
  122. ╔╗─╔╗╔╗─╔╗╔╗──╔╗╔═══╗╔═══╗╔═══╗╔════╗╔═══╗╔══╗
  123. ║║─║║║║─║║║╚╗╔╝║╚╗╔╗║║╔══╝║╔═╗║╚══╗═║║╔═╗║╚╣─╝
  124. ║╚═╝║║║─║║╚╗╚╝╔╝─║║║║║╚══╗║╚═╝║──╔╝╔╝║║─║║─║║─
  125. $green ║╔═╗║║║─║║─╚╗╔╝──║║║║║╔══╝║╔══╝─╔╝╔╝─║╚═╝║─║║─
  126. ║║─║║║╚═╝║──║║──╔╝╚╝║║╚══╗║║───╔╝═╚═╗║╔═╗║╔╣─╗
  127. ╚╝─╚╝╚═══╝──╚╝──╚═══╝╚═══╝╚╝───╚════╝╚╝─╚╝╚══╝
  128.  
  129. $yellow==============================================================
  130.  
  131. $white
  132. ♡ ∩_∩
  133. („• ֊ •„) ♡
  134. ┏━∪∪━━━━━━━━━━━━━━┓
  135. ♡ ♪♪ MINH HUY TV !!! ⠀♪♪ 。 ♡
  136. ┗━━━━━━━━━━━━━━━━━┛
  137.  
  138. ";
  139.  
  140. sleep(3,5);
  141. @system('clear');
  142.  
  143. " ╔╗─╔╗╔╗─╔╗╔╗──╔╗╔═══╗╔═══╗╔═══╗╔════╗╔═══╗╔══╗
  144. ║║─║║║║─║║║╚╗╔╝║╚╗╔╗║║╔══╝║╔═╗║╚══╗═║║╔═╗║╚╣─╝
  145. ║╚═╝║║║─║║╚╗╚╝╔╝─║║║║║╚══╗║╚═╝║──╔╝╔╝║║─║║─║║─
  146. $green ║╔═╗║║║─║║─╚╗╔╝──║║║║║╔══╝║╔══╝─╔╝╔╝─║╚═╝║─║║─
  147. ║║─║║║╚═╝║──║║──╔╝╚╝║║╚══╗║║───╔╝═╚═╗║╔═╗║╔╣─╗
  148. ╚╝─╚╝╚═══╝──╚╝──╚═══╝╚═══╝╚╝───╚════╝╚╝─╚╝╚══╝ ";
  149.  
  150.  
  151.  
  152. $user = $_SESSION["username"];
  153.  
  154.  
  155.  
  156.  
  157.  
  158. echo $yellowb."
  159. ╔╗─╔╗╔╗─╔╗╔╗──╔╗╔═══╗╔═══╗╔═══╗╔════╗╔═══╗╔══╗
  160. ║║─║║║║─║║║╚╗╔╝║╚╗╔╗║║╔══╝║╔═╗║╚══╗═║║╔═╗║╚╣─╝
  161. ║╚═╝║║║─║║╚╗╚╝╔╝─║║║║║╚══╗║╚═╝║──╔╝╔╝║║─║║─║║─
  162. $pink ║╔═╗║║║─║║─╚╗╔╝──║║║║║╔══╝║╔══╝─╔╝╔╝─║╚═╝║─║║─
  163. ║║─║║║╚═╝║──║║──╔╝╚╝║║╚══╗║║───╔╝═╚═╗║╔═╗║╔╣─╗
  164. ╚╝─╚╝╚═══╝──╚╝──╚═══╝╚═══╝╚╝───╚════╝╚╝─╚╝╚══╝
  165. $greenb
  166. [ √ ] LẤY TOOL QUAY CLIP NHỚ GHI NGUỒN NHÉ!
  167. [ √ ] Copyright By Kevin Mã (Huy)
  168. $white
  169. ~ $red [$yellow √ $red] $blue => Chế Độ Auto Like [1/0] -> $greenb";
  170. if (trim(fgets(STDIN)) == '1'){
  171. array_push($listnv,'like');
  172. echo $yellowb."Time Delay Mỗi Lần Like -> $greenb";
  173. $_SESSION['delaylike']=trim(fgets(STDIN));
  174. if($_SESSION['delaylike'] < 0)
  175. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  176. }
  177. echo $white."~ $red [$yellow √ $red] $blue => Chế Độ Auto Follow [1/0] -> $greenb";
  178. if (trim(fgets(STDIN)) == '1'){
  179. array_push($listnv,'sub');
  180. echo $yellowb."Time Delay Mỗi Lần Follow -> $greenb";
  181. $_SESSION['delaysub']=trim(fgets(STDIN));
  182. if($_SESSION['delaysub'] < 0)
  183. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  184. }
  185. echo $white."~ $red [$yellow √ $red] $blue => Chế Độ Auto Comment [1/0] -> $greenb";
  186. if (trim(fgets(STDIN)) == '1'){
  187. array_push($listnv,'cmt');
  188. echo $yellowb."Time Delay Mỗi Lần Comment -> $greenb";
  189. $_SESSION['delaycmt']=trim(fgets(STDIN));
  190. if($_SESSION['delaycmt'] < 0)
  191. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  192. }
  193. echo $white."~ $red [$yellow √ $red] $blue => Chế Độ Auto Like Page [1/0] -> $greenb";
  194. if (trim(fgets(STDIN)) == '1'){
  195. array_push($listnv,'page');
  196. echo $yellowb."Time Delay Mỗi Lần Like Page -> $greenb";
  197. $_SESSION['delaypage']=trim(fgets(STDIN));
  198. if($_SESSION['delaypage'] < 0)
  199. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  200. }
  201. echo $white."~ $red [$yellow √ $red] $blue => Chế Độ Auto CX [1/0] -> $greenb";
  202. if (trim(fgets(STDIN)) == '1'){
  203. array_push($listnv,'cx');
  204. echo $yellow."Time Delay Mỗi Lần CX -> $greenb";
  205. $_SESSION['delaycx']=trim(fgets(STDIN));
  206. if($_SESSION['delaycx'] < 0)
  207. {exit($red."ÍT NHẤT 1 GIÂY\n");}
  208. }
  209. if (count($listnv) == 0){exit($red." Không Có Nhiệm Vụ Nào Được Chọn! Vui Lòng Chạy Lại Tool");}
  210.  
  211. echo $yellowb."Thời Gian Chờ Crush Thủ Dâm (>20S) -> $aqua";
  212. $_SESSION['j']=trim(fgets(STDIN));
  213. if($_SESSION['j'] < 0)
  214. {exit($red."Tối Thiểu 20 giây\n");}
  215. echo $yellowb."Bao Nhiêu Job Thì Tool Dừng? (>500 Job) -> $greenb";
  216.  
  217. $_SESSION['i']=trim(fgets(STDIN));
  218. if($_SESSION['i'] < 0)
  219. {exit($red."Tối Thiểu 1 Lần\n");}
  220. }else{
  221. exit($red."Sai Tài Khoản + Mật Khẩu Kìa Bố 😏!");
  222. }
  223.  
  224. #get_token
  225. $ch=curl_init();
  226. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  227. $head[] = "Connection: keep-alive";
  228. $head[] = "Keep-Alive: 300";
  229. $head[] = "authority: m.facebook.com";
  230. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  231. $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";
  232. $head[] = "cache-control: max-age=0";
  233. $head[] = "upgrade-insecure-requests: 1";
  234. $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";
  235. $head[] = "sec-fetch-site: none";
  236. $head[] = "sec-fetch-mode: navigate";
  237. $head[] = "sec-fetch-user: ?1";
  238. $head[] = "sec-fetch-dest: document";
  239. 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');
  240. curl_setopt($ch, CURLOPT_ENCODING, '');
  241. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  242. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  243. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  244. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  245. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  246. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  247. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  248. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  249. $access = curl_exec($ch);
  250. curl_close($ch);
  251. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0]){
  252. $access_token = explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
  253. if(json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'}){
  254. $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
  255. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  256. }else{
  257. exit($red."Acc Blocked, Please Re-Enter Tool and Add New Acc to Tds Configuration");
  258. }
  259. $h = datnick($user,$idfb);
  260. $xu = file_get_contents('https://traodoisub.com/scr/test3.php?user='.$user);
  261. if ($h == '1'){
  262. $i=1;
  263. @system('clear');
  264. while ($i <= $_SESSION['i']){
  265. $rand = $listnv[array_rand($listnv,1)];
  266. if ($rand == 'like'){
  267. $list = getnv('like',$user);
  268. $check = count($list);
  269.  
  270. foreach ($list as $id) {
  271. $g = like($access_token,$id,$cookie);
  272. if ($g->{'error'}->{'code'} == 368){
  273. exit($red."Đã Ăn Cứt Rồi Đếy🤣");
  274. }
  275. $s = nhantien('like',$id);
  276. if ($s == 2){$stt = $stt +1; echo $blue."[ $stt ] [$user] $red • $pink [LIKE] $red • $green ".$id." $red • $blue+ 300 Xu $yellowb Vào Tài Khoản $user ";}
  277. echo "\n";
  278. sleep($_SESSION['delaylike']);
  279. }
  280. }else if($rand == 'sub'){
  281. $list = getnv('follow',$user);
  282. $check = count($list);
  283. if ($check == 0){echo $red." "; $i++; continue;}
  284. foreach ($list as $id) {
  285. $g = follow($access_token,$id,$cookie);
  286. if ($g->{'error'}->{'code'} == 368){
  287. exit($red." Hết Nhiệm Vụ Vui Lòng Chạy Lại Tool Và Chọn Nhiệm Vụ Khác");
  288. }
  289. $s = nhantien('sub',$id);
  290. if ($s == 2)$stt = $stt +1;echo $blue."[ $stt ] [$user] $red • $pink [FOLLOW] $red • $green ".$id." $red • $blue+ 600 Xu $yellowb Vào Tài Khoản $user ";}
  291. echo "\n";
  292. sleep($_SESSION['delaysub']);
  293. }
  294. else if($rand == 'page'){
  295. $list = getnv('likepage',$user);
  296. $check = count($list);
  297. if ($check == 0){echo $red." "; $i++; continue;}
  298. foreach ($list as $id) {
  299. page($id,$cookie);
  300. $s = nhantien('page',$id);
  301. if ($s == 2){$xu = $xu + 600; echo $blue."[ $stt ] [$user] $red • [PAGE] $red • $green ".$id." $red • $blue+ 600 Xu $yellowb Vào Tài Khoản $user ";}
  302. echo "\n";
  303. sleep($_SESSION['delaypage']);
  304. }
  305. }else if($rand == 'cx'){
  306. $list = getnv('camxuc',$user);
  307. $check = count($list);
  308. if ($check == 0){echo $yellow." "; $i++; continue;}
  309.  
  310. foreach ($list as $id => $key) {
  311. $id = $key->{'id'};
  312. $type = $key->{'type'};
  313. camxuc($id,$type,$cookie);
  314. $s = nhantiencx($type,$id);
  315. if ($s == 2){$xu = $xu + 400; echo $blue."[ $stt ] [$user] $red • [CX] $red • $green ".$id." $red • $blue+ 400 Xu $yellowb Vào Tài Khoản $user ";}
  316. echo "\n";
  317. sleep($_SESSION['delaycx']);
  318. }
  319. }
  320. else{
  321. $list = getnv('cmt',$user);
  322. $check = count($list);
  323. if ($check == 0){echo $red." "; $i++; continue;}
  324. foreach ($list as $id => $key) {
  325. $uid = $key->{'id'};
  326. $msg = $key->{'nd'};
  327. $g = cmt($access_token,$uid,$cookie,$msg);
  328. if ($g->{'error'}->{'code'} == 368){
  329. exit($red."Đã bị block vui lòng chạy lại tool");
  330. }
  331. $s = nhantien('cmt',$uid);
  332. if ($s == 2){$xu = $xu + 800; echo $blue."[ $stt ] [$user] $red • [COMMENT] $red • $green ".$id." $red • $blue+ 800 Xu $yellowb Vào Tài Khoản $user ";}
  333. echo "\n";
  334. sleep($_SESSION['delaycmt']);
  335. }
  336. }
  337. $i++;
  338. echo $red." ";
  339. for ($x = 0; $x <= $_SESSION['j']; $x++) {
  340. sleep(1);
  341. }
  342. echo " ";
  343. }
  344. }else{exit($red."Cấu hình thất bại, vui lòng thêm id: $id vào cấu hình");}
  345. }else{exit($red."Cookie die!!");}
  346. }
  347. function follow($access_token,$id,$cookie){
  348. $ch=curl_init();
  349. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
  350. $head[] = "Connection: keep-alive";
  351. $head[] = "Keep-Alive: 300";
  352. $head[] = "authority: m.facebook.com";
  353. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  354. $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";
  355. $head[] = "cache-control: max-age=0";
  356. $head[] = "upgrade-insecure-requests: 1";
  357. $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";
  358. $head[] = "sec-fetch-site: none";
  359. $head[] = "sec-fetch-mode: navigate";
  360. $head[] = "sec-fetch-user: ?1";
  361. $head[] = "sec-fetch-dest: document";
  362. 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');
  363. curl_setopt($ch, CURLOPT_ENCODING, '');
  364. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  365. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  366. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  367. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  368. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  369. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  370. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  371. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  372. $data = array('access_token' => $access_token);
  373. curl_setopt($ch, CURLOPT_POST,count($data));
  374. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  375. $access = curl_exec($ch);
  376. curl_close($ch);
  377. return json_decode($access);
  378. }
  379. function like($access_token,$id,$cookie){
  380. $ch=curl_init();
  381. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  382. $head[] = "Connection: keep-alive";
  383. $head[] = "Keep-Alive: 300";
  384. $head[] = "authority: m.facebook.com";
  385. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  386. $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";
  387. $head[] = "cache-control: max-age=0";
  388. $head[] = "upgrade-insecure-requests: 1";
  389. $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";
  390. $head[] = "sec-fetch-site: none";
  391. $head[] = "sec-fetch-mode: navigate";
  392. $head[] = "sec-fetch-user: ?1";
  393. $head[] = "sec-fetch-dest: document";
  394. 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');
  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_VERIFYPEER, FALSE);
  400. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  401. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  402. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  403. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  404. $data = array('access_token' => $access_token);
  405. curl_setopt($ch, CURLOPT_POST,count($data));
  406. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  407. $access = curl_exec($ch);
  408. curl_close($ch);
  409. return json_decode($access);
  410. }
  411. function cmt($access_token,$id,$cookie,$msg){
  412. $ch=curl_init();
  413. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
  414. $head[] = "Connection: keep-alive";
  415. $head[] = "Keep-Alive: 300";
  416. $head[] = "authority: m.facebook.com";
  417. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  418. $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";
  419. $head[] = "cache-control: max-age=0";
  420. $head[] = "upgrade-insecure-requests: 1";
  421. $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";
  422. $head[] = "sec-fetch-site: none";
  423. $head[] = "sec-fetch-mode: navigate";
  424. $head[] = "sec-fetch-user: ?1";
  425. $head[] = "sec-fetch-dest: document";
  426. 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');
  427. curl_setopt($ch, CURLOPT_ENCODING, '');
  428. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  429. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  430. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  431. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  432. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  433. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  434. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  435. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  436. $data = array('message' => $msg,'access_token' => $access_token);
  437. curl_setopt($ch, CURLOPT_POST,count($data));
  438. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  439. $access = curl_exec($ch);
  440. curl_close($ch);
  441. return json_decode($access);
  442. }
  443. function page($id,$cookie){
  444. $ch = curl_init();
  445. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  446. $head[] = "Connection: keep-alive";
  447. $head[] = "Keep-Alive: 300";
  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 (explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0]){
  464. $get = explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0];
  465. $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$id.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  466. curl_setopt($ch, CURLOPT_URL, $link);
  467. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  468. curl_exec($ch);
  469. }
  470. curl_close($ch);
  471.  
  472. }
  473. function camxuc($id,$type,$cookie){
  474. $ch = curl_init();
  475. if(strpos($id,'_')){
  476. $uid = explode('_',$id, 2);
  477. $id2 = 'story.php?story_fbid='.$uid[1].'&id='.$uid[0];
  478. }else{
  479. $id2 = $id;
  480. }
  481. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id2);
  482. $head[] = "Connection: keep-alive";
  483. $head[] = "Keep-Alive: 300";
  484. $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  485. $head[] = "Accept-Language: en-us,en;q=0.5";
  486. curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
  487. curl_setopt($ch, CURLOPT_ENCODING, '');
  488. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  489. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  490. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  491. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  492. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  493. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  494. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  495. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  496. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  497. :'));
  498. $page = curl_exec($ch);
  499. if ($id2 != $id && explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0]){
  500. $get = explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0];
  501. }else{
  502. $get = $id2;
  503. }
  504. $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$get;
  505. curl_setopt($ch, CURLOPT_URL, $link);
  506. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  507. $cx = curl_exec($ch);
  508. $haha = explode('<a href="',$cx);
  509. if ($type == 'LOVE'){
  510. $haha2 = explode('" style="display:block"',$haha[2])[0];
  511. }else if ($type == 'WOW'){
  512. $haha2 = explode('" style="display:block"',$haha[5])[0];
  513. }else if ($type == 'HAHA'){
  514. $haha2 = explode('" style="display:block"',$haha[4])[0];
  515. }else if ($type == 'SAD'){
  516. $haha2 = explode('" style="display:block"',$haha[6])[0];
  517. }else{
  518. $haha2 = explode('" style="display:block"',$haha[7])[0];
  519. }
  520. $link2 = html_entity_decode($haha2);
  521.  
  522. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  523. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  524. curl_exec($ch);
  525. curl_close($ch);
  526. }
  527. function getnv($loai,$user){
  528. $list = file_get_contents('https://traodoisub.com/scr/api_job.php?chucnang='.$loai.'&user='.$user);
  529. return json_decode($list);
  530. }
  531. function datnick($user,$id){
  532. $xxx = file_get_contents('https://traodoisub.com/scr/api_dat.php?user='.$user.'&idfb='.$id);
  533. return $xxx;
  534. }
  535. function nhantien($loai,$id){
  536. $ch=curl_init();
  537. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantien'.$loai.'.php');
  538. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  539. $tdsxu=array('id' => $id);
  540. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  541. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  542. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  543. $xu=curl_exec($ch);
  544. curl_close($ch);
  545. return $xu;
  546. }
  547. function nhantiencx($loai,$id){
  548. $ch=curl_init();
  549. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantiencx.php');
  550. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  551. $tdsxu=array('id' => $id, 'loaicx' => $loai);
  552. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  553. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  554. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  555. $xu=curl_exec($ch);
  556. curl_close($ch);
  557. return $xu;
  558. }
  559.  
  560. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement