Advertisement
Vngosu7

Untitled

Jul 14th, 2021
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.01 KB | None | 0 0
  1. date_default_timezone_set("Asia/Ho_Chi_Minh");
  2. error_reporting(0);
  3. session_start();
  4. $end="\033[0m";
  5. $whiteb="\033[1;37m";
  6. $ress = "\033[0;32m";
  7. $res = "\033[0;33m";
  8. $red = "\033[0;31m";
  9. $green = "\033[0;37m";
  10. $yellow = "\033[0;33m";
  11. $white = "\033[0;33m";
  12. $xnhac = "\033[1;96m";
  13. $den = "\033[1;90m";
  14. $do = "\033[1;91m";
  15. $luc = "\033[1;92m";
  16. $vang = "\033[1;93m";
  17. $xduong = "\033[1;94m";
  18. $hong = "\033[1;95m";
  19. $trang = "\033[1;97m";
  20. $nenden = "\033[40m";
  21. $xanhd = "\033[0;36m";
  22. $nendo = "\033[41m";
  23. $nenxanh = "\033[42m";
  24. $nenvang = "\033[43m";
  25. $nenblue = "\033[44m";
  26. $nenPurpe = "\033[45m";
  27. $nenCyan = "\033[46m";
  28. $nentrang = "\033[47m";
  29. $UGreen = "\033[4;32m";
  30. @system('clear');
  31. echo $vang."\n";
  32.  
  33. $t=
  34. $hong."\033[1; _ ___ __ ___________ _____ _____ _ __ ___________ ";
  35. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  36. usleep(2000);
  37. }
  38. echo $xduong."\n";
  39. $t=
  40. $trang."\033[1; | | | \ \ / / |_ _| ___ \_ _/ __ \| | / /| ___| ___ \ ";
  41. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  42. usleep(2000);
  43. }
  44. echo $xnhac."\n";
  45. $t=
  46. $trang."\033[1; | | | |\ V / | | | |_/ / | | | / \/| |/ / | |__ | |_/ / ";
  47. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  48. usleep(2000);
  49. }
  50. echo $hong."\n";
  51. $t=
  52. $trang."\033[1; | | | | \ / | | | / | | | | | \ | __|| / ";
  53. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  54. usleep(2000);
  55. }
  56. echo $do."\n";
  57. $t=
  58. $trang."\033[1; | |_| | | | | | | |\ \ _| |_| \__/\| |\ \| |___| |\ \ ";
  59. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  60. usleep(2000);
  61. }
  62. echo $luc."\n";
  63. $t=
  64. $trang."\033[1; \___/ \_/ \_/ \_| \_|\___/ \____/\_| \_/\____/\_| \_| ";
  65.  
  66. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  67. usleep(2000);
  68.  
  69. }
  70. echo $do."\n";
  71.  
  72. $t="\033[1; \033[47m TOOLS \033[0m\n";
  73.  
  74. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  75. usleep(20000);
  76. }
  77.  
  78.  
  79. echo $vang."=====================================================\n";
  80. echo $do." [".$luc."Bản Quyền".$do."] ";usleep(200000);echo $vang."Uy Tricker ";
  81. echo $do." [".$luc."ZaLo".$do."]";usleep(300000);
  82. echo $vang." 037.553.0461";
  83. echo "\n";
  84. echo " ".$do."[".$luc."Ví MoMo".$do."]";usleep(300000);echo $vang." 037.553.0461";
  85. echo "\n";
  86. echo $vang."=====================================================\n";
  87.  
  88.  
  89. echo $trang." ".$nentrang.$do."Vào Google Gõ 'My User Agent' Để Lấy!!!$end\n";
  90. echo "\e[1;95m┌─[\e[1;37m\e[1;42m Nhập USER AGENT\e[0m\e[1;95m]
  91. └──╼ \e[1;39mU\e[1;36mT\e[1;91mK : $vang ";
  92. $useragent = trim(fgets(STDIN));
  93. $head[] = "Connection: keep-alive";
  94. $head[] = "Keep-Alive: 300";
  95. $head[] = "authority: m.facebook.com";
  96. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  97. $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";
  98. $head[] = "cache-control: max-age=0";
  99. $head[] = "upgrade-insecure-requests: 1";
  100. $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";
  101. $head[] = "sec-fetch-site: none";
  102. $head[] = "sec-fetch-mode: navigate";
  103. $head[] = "sec-fetch-user: ?1";
  104. $head[] = "sec-fetch-dest: document";
  105.  
  106. while(true){
  107. echo $do."[".$luc."●".$do."] ".$trang."=> ".$nentrang.$xduong."Nhập Cookie Facebook Cần Làm:$end $luc";
  108. $cookie=trim(fgets(STDIN));
  109. $access = cookie($cookie,$useragent);
  110. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0]){
  111. $access_token=explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
  112. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  113. break;
  114. }else{ exit($BRed." Cookie Sai\n");}
  115. }
  116. while(true){
  117.  
  118. $banbe =[];
  119. $listbv = getbaiviet($cookie,$access_token,$useragent,'me')->{'data'};
  120. $listbb = getbanbe($access_token,$useragent)->{'data'};
  121. foreach ($listbb as $idbb){
  122. $idbb = $idbb->{'id'};
  123. array_push($banbe,$idbb);
  124. }
  125. while(true){
  126.  
  127. system('clear');
  128. usleep(100000);
  129. $so =0;
  130. $so1 = 0;
  131.  
  132. echo $vang."\n";
  133.  
  134. $t=
  135. $hong."\033[1; _ ___ __ ___________ _____ _____ _ __ ___________ ";
  136. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  137. usleep(2000);
  138. }
  139. echo $xduong."\n";
  140. $t=
  141. $trang."\033[1; | | | \ \ / / |_ _| ___ \_ _/ __ \| | / /| ___| ___ \ ";
  142. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  143. usleep(2000);
  144. }
  145. echo $xnhac."\n";
  146. $t=
  147. $trang."\033[1; | | | |\ V / | | | |_/ / | | | / \/| |/ / | |__ | |_/ / ";
  148. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  149. usleep(2000);
  150. }
  151. echo $hong."\n";
  152. $t=
  153. $trang."\033[1; | | | | \ / | | | / | | | | | \ | __|| / ";
  154. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  155. usleep(2000);
  156. }
  157. echo $do."\n";
  158. $t=
  159. $trang."\033[1; | |_| | | | | | | |\ \ _| |_| \__/\| |\ \| |___| |\ \ ";
  160. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  161. usleep(2000);
  162. }
  163. echo $luc."\n";
  164. $t=
  165. $trang."\033[1; \___/ \_/ \_/ \_| \_|\___/ \____/\_| \_/\____/\_| \_| ";
  166.  
  167. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  168. usleep(2000);
  169.  
  170. }
  171. echo $do."\n";
  172.  
  173. $t="\033[1; \033[47m TOOLS \033[0m\n";
  174.  
  175. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  176. usleep(20000);
  177. }
  178.  
  179.  
  180. echo $vang."=====================================================\n";
  181. echo $do." [".$luc."Bản Quyền".$do."] ";usleep(200000);echo $vang."Uy Tricker ";
  182. echo $do." [".$luc."ZaLo".$do."]";usleep(300000);
  183. echo $vang." 037.553.0461";
  184. echo "\n";
  185. echo " ".$do."[".$luc."Ví MoMo".$do."]";usleep(300000);echo $vang." 037.553.0461";
  186. echo "\n";
  187. echo $vang."=====================================================\n";
  188.  
  189.  
  190. usleep(300);
  191. echo $do."[".$luc."●".$do."] ".$trang."=> ".$xnhac."Danh Sách FB Đã Tương Tác Với Bạn 🌍\n\n";
  192. foreach ($listbv as $key => $list){
  193. $id = $list->{'id'};if (strstr($id,'_')){$idbv = explode('_',$id)[1];}
  194. $like = demlike($cookie,$access_token,$idbv,$useragent)->{'data'};
  195. if(!empty($like)){
  196. foreach ($like as $key2=> $likes){
  197. $id = $likes->{'id'}; $name = $likes->{'name'};
  198. if(in_array($id,$banbe) == true){$so++;
  199. $banbe = \array_diff($banbe, [$id]);
  200. echo $do."[".$vang.$so.$do."]".$xnhac." Facebook: $nendo$vang$name$end ID $nentrang$xduong$idbv$end\n";
  201. $ran = rand(1,5);
  202. echo $luc."➜ Đã Tương Tác Với Bạn Trong".$xanhd." $ran ".$luc."Tháng Qua\n\n";
  203. }
  204. }}
  205. }
  206. $tt = count($banbe);
  207. echo $trang."\n ➜ ".$nentrang.$den."$tt$end".$nenden." $end".$nentrang.$do."Thằng Chưa Tương Tác Lần Nào $end\n\n";
  208. echo $vang."=====================================================\n";
  209. echo $Blue."\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]$white =>$lime Bạn Muốn Xóa Bao Nhiêu Bạn : ".$BYellow;
  210. $xoa = trim(fgets(STDIN));
  211. echo $Blue."\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]$white =>$lime Delay Một Lần Xoá : $BYellow";
  212. $_SESSION['giaay']=trim(fgets(STDIN));
  213.  
  214. echo $vang."=====================================================\n";
  215. foreach ($banbe as $id=>$key){
  216. $uid = $key;
  217. $g = xoabanbe($cookie,$uid,$useragent);
  218. $so1++;
  219. echo $do."[".$BCyan.$so1.$do."]".$do." Đã Xóa ".$den.$uid.$do." Ra Khỏi Danh Sách Bạn Bè\n";
  220. $input = array($tmd1="\033[1;46m",$tmd2="\033[1;36m",$tmd3="\033[1;37m",$tmd4="\033[1;37m",$tmd5="\033[0;31m",$tmd6="\033[1;31m",$tmd7="\033[0;32m",$tmd8="\033[1;32m",$tmd9="\033[0;33m",$tmd10="\033[1;33m",$tmd11="\033[0;34m",$tmd12="\033[1;34m",$tmd13="\033[0;35m",$tmd14="\033[1;35m",$tmd15="\033[0;36m",$tmd16="\033[1;36m");
  221.  
  222. $rand_keys = array_rand($input, 15);
  223. if ($_SESSION['giaay'] < 1) {
  224.  
  225. } elseif ( $_SESSION['giaay'] > 1) {
  226.  
  227. for($i = $_SESSION['giaay'];$i>-1;$i--) {
  228. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy T \033[1;91m |\033[1;93m $x\033[1;91m | ";
  229. usleep(150000);
  230.  
  231. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tr.. \033[0;31m |\033[0;33m $x\033[0;31m | ";
  232. usleep(150000);
  233. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tri... \033[0;31m |\033[0;33m $x\033[0;31m | ";
  234. usleep(150000);
  235. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tric.... .\033[0;31m |\033[0;33m $x\033[0;31m | ";
  236. usleep(150000);
  237. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Trick..... \033[0;31m |\033[0;33m $x\033[0;31m | ";
  238. usleep(150000);
  239. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tricke........ \033[0;31m |\033[0;33m $x\033[0;31m | ";
  240. usleep(150000);
  241. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉\033[0;37m Uy Tricker..............\033[0;31m |\033[0;33m $x\033[0;31m | ";
  242. usleep(100000);
  243. echo "\r \r";}
  244.  
  245. }
  246. if ($so1 == $xoa){
  247. echo "\033[1;32mĐã Xóa Tổng: \033[1;35m".$xoa." Bạn Bè\n";
  248. break;sleep(5);
  249. }
  250. } unset($so);break;
  251. }break;
  252.  
  253. }
  254.  
  255.  
  256. function huyfollow($cookie,$id,$useragent){
  257. $ch = curl_init();
  258. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  259. $head[] = "Connection: keep-alive";
  260. $head[] = "Keep-Alive: 300";
  261. $head[] = "authority: m.facebook.com";
  262. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  263. $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";
  264. $head[] = "cache-control: max-age=0";
  265. $head[] = "upgrade-insecure-requests: 1";
  266. $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";
  267. $head[] = "sec-fetch-site: none";
  268. $head[] = "sec-fetch-mode: navigate";
  269. $head[] = "sec-fetch-user: ?1";
  270. $head[] = "sec-fetch-dest: document";
  271. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  272. curl_setopt($ch, CURLOPT_ENCODING, '');
  273. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  274. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  275. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  276. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  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. $n = curl_exec($ch);
  282. $lin = explode('">Bỏ theo dõi',explode('/a/subscriptions/remove?', $n)[1])[0];
  283. $link = str_replace('&amp;', '&', $lin);
  284. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/subscriptions/remove?".$link);
  285. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  286. $n = curl_exec($ch);
  287. curl_close($ch);
  288. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  289. }
  290. function getidunfl($cookie,$idfb,$useragent){
  291. $ch = curl_init();
  292. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/?'.http_build_query(array( 'collection_token'=> $idfb.':2356318349:33', '_rdr'=> '')));
  293. $head[] = "Connection: keep-alive";
  294. $head[] = "Keep-Alive: 300";
  295. $head[] = "authority: m.facebook.com";
  296. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  297. $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";
  298. $head[] = "cache-control: max-age=0";
  299. $head[] = "upgrade-insecure-requests: 1";
  300. $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";
  301. $head[] = "sec-fetch-site: none";
  302. $head[] = "sec-fetch-mode: navigate";
  303. $head[] = "sec-fetch-user: ?1";
  304. $head[] = "sec-fetch-dest: document";
  305. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  306. curl_setopt($ch, CURLOPT_ENCODING, '');
  307. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  308. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  309. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  310. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  311. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  312. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  313. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  314. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  315. $n = curl_exec($ch);
  316. $lin = explode('collection',explode('/timeline/app_collection/more/?collection_token', $n)[1])[0];
  317. $link = str_replace('&amp;','&',$lin);
  318. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/more/?collection_token'.$link.'collection');
  319. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  320. $m = curl_exec($ch);
  321. curl_close($ch);
  322. $liss = [];
  323. $n = explode('\">\u003Cspan',explode('href=\"\/',$m)[1])[0];
  324. if ($n == ''){$bb = '1'; $liss = '1';}else{$bb = '2';}
  325. while($bb == '2'){$i++;
  326. $uid = explode('\">\u003Cspan',explode('href=\"\/',$m)[($i)])[0];
  327. if (strlen($uid) < 100){
  328. array_push($liss, $uid);}
  329. if ($uid == ''){break;}
  330. }
  331. return $liss;
  332. }
  333. function bolikepage($cookie,$id,$useragent){
  334. $ch = curl_init();
  335. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  336. $head[] = "Connection: keep-alive";
  337. $head[] = "Keep-Alive: 300";
  338. $head[] = "authority: m.facebook.com";
  339. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  340. $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";
  341. $head[] = "cache-control: max-age=0";
  342. $head[] = "upgrade-insecure-requests: 1";
  343. $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";
  344. $head[] = "sec-fetch-site: none";
  345. $head[] = "sec-fetch-mode: navigate";
  346. $head[] = "sec-fetch-user: ?1";
  347. $head[] = "sec-fetch-dest: document";
  348. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  349. curl_setopt($ch, CURLOPT_ENCODING, '');
  350. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  351. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  352. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  353. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  354. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  355. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  356. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  357. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  358. $n = curl_exec($ch);
  359. $lin = explode('" class="',explode('/a/profile.php?unfan', $n)[1])[0];
  360. $link = str_replace('&amp;', '&', $lin);
  361.  
  362. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/profile.php?unfan".$link);
  363. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  364. $n = curl_exec($ch);
  365. curl_close($ch);
  366. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  367. }
  368. function xacnhanbanbe($cookie,$id,$useragent){
  369. $ch = curl_init();
  370. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  371. $head[] = "Connection: keep-alive";
  372. $head[] = "Keep-Alive: 300";
  373. $head[] = "authority: m.facebook.com";
  374. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  375. $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";
  376. $head[] = "cache-control: max-age=0";
  377. $head[] = "upgrade-insecure-requests: 1";
  378. $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";
  379. $head[] = "sec-fetch-site: none";
  380. $head[] = "sec-fetch-mode: navigate";
  381. $head[] = "sec-fetch-user: ?1";
  382. $head[] = "sec-fetch-dest: document";
  383. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  384. curl_setopt($ch, CURLOPT_ENCODING, '');
  385. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  386. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  387. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  388. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  389. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  390. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  391. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  392. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  393. $n = curl_exec($ch);
  394. $lin = explode('" class="',explode('/a/mobile/friends/profile_add_friend.php?', $n)[1])[0];
  395. $link = str_replace('&amp;', '&', $lin);
  396.  
  397. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/mobile/friends/profile_add_friend.php?".$link);
  398. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  399. $n = curl_exec($ch);
  400. curl_close($ch);
  401. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  402. }
  403. function xemlikepage($cookie,$access_token,$useragent){
  404. $ch=curl_init();
  405. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/likes?access_token='.$access_token.'&limit=5000&fields=name,id');
  406. $head[] = "Connection: keep-alive";
  407. $head[] = "Keep-Alive: 300";
  408. $head[] = "authority: m.facebook.com";
  409. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  410. $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";
  411. $head[] = "cache-control: max-age=0";
  412. $head[] = "upgrade-insecure-requests: 1";
  413. $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";
  414. $head[] = "sec-fetch-site: none";
  415. $head[] = "sec-fetch-mode: navigate";
  416. $head[] = "sec-fetch-user: ?1";
  417. $head[] = "sec-fetch-dest: document";
  418. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  419. curl_setopt($ch, CURLOPT_ENCODING, '');
  420. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  421. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  422. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  423. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  424. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  425. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  426. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  427. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  428. $access = curl_exec($ch);
  429. curl_close($ch);
  430. return json_decode($access);
  431. }
  432. function addbanbe($cookie,$access_token,$useragent){
  433. $ch=curl_init();
  434. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/friendrequests?access_token='.$access_token.'&limit=5000&fields=from.name');
  435. $head[] = "Connection: keep-alive";
  436. $head[] = "Keep-Alive: 300";
  437. $head[] = "authority: m.facebook.com";
  438. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  439. $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";
  440. $head[] = "cache-control: max-age=0";
  441. $head[] = "upgrade-insecure-requests: 1";
  442. $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";
  443. $head[] = "sec-fetch-site: none";
  444. $head[] = "sec-fetch-mode: navigate";
  445. $head[] = "sec-fetch-user: ?1";
  446. $head[] = "sec-fetch-dest: document";
  447. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  448. curl_setopt($ch, CURLOPT_ENCODING, '');
  449. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  450. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  451. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  452. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  453. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  454. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  455. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  456. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  457. $access = curl_exec($ch);
  458. curl_close($ch);
  459. return json_decode($access);
  460. }
  461. function getbaiviet($cookie,$access_token,$useragent,$idfb){
  462. $ch=curl_init();
  463. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idfb.'/posts?limit=1000&fields=id,name&access_token='.$access_token);
  464. $head[] = "Connection: keep-alive";
  465. $head[] = "Keep-Alive: 300";
  466. $head[] = "authority: m.facebook.com";
  467. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  468. $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";
  469. $head[] = "cache-control: max-age=0";
  470. $head[] = "upgrade-insecure-requests: 1";
  471. $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";
  472. $head[] = "sec-fetch-site: none";
  473. $head[] = "sec-fetch-mode: navigate";
  474. $head[] = "sec-fetch-user: ?1";
  475. $head[] = "sec-fetch-dest: document";
  476. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  477. curl_setopt($ch, CURLOPT_ENCODING, '');
  478. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  479. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  480. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  481. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  482. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  483. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  484. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  485. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  486. $access = curl_exec($ch);
  487. curl_close($ch);
  488. return json_decode($access);
  489. }
  490. function demlike($cookie,$access_token,$idpost,$useragent){
  491. $ch=curl_init();
  492. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v1.0/'.$idpost.'/likes?access_token='.$access_token.'&pretty=1&limit=5000');
  493. $head[] = "Connection: keep-alive";
  494. $head[] = "Keep-Alive: 300";
  495. $head[] = "authority: m.facebook.com";
  496. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  497. $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";
  498. $head[] = "cache-control: max-age=0";
  499. $head[] = "upgrade-insecure-requests: 1";
  500. $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";
  501. $head[] = "sec-fetch-site: none";
  502. $head[] = "sec-fetch-mode: navigate";
  503. $head[] = "sec-fetch-user: ?1";
  504. $head[] = "sec-fetch-dest: document";
  505. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  506. curl_setopt($ch, CURLOPT_ENCODING, '');
  507. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  508. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  509. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  510. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  511. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  512. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  513. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  514. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  515. $access = curl_exec($ch);
  516. curl_close($ch);
  517. return json_decode($access);
  518. }
  519. function getbanbe($access_token,$useragent){
  520. $ch = curl_init();
  521. curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/me/friends/?access_token='.$access_token);
  522. $head[] = "Connection: keep-alive";
  523. $head[] = "Keep-Alive: 300";
  524. $head[] = "authority: m.facebook.com";
  525. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  526. $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";
  527. $head[] = "cache-control: max-age=0";
  528. $head[] = "upgrade-insecure-requests: 1";
  529. $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";
  530. $head[] = "sec-fetch-site: none";
  531. $head[] = "sec-fetch-mode: navigate";
  532. $head[] = "sec-fetch-user: ?1";
  533. $head[] = "sec-fetch-dest: document";
  534. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  535. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  536. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  537. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  538. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  539. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  540. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  541. curl_setopt($ch, CURLOPT_ENCODING,'');
  542. return json_decode(curl_exec($ch));
  543. curl_close($ch);
  544. }
  545. function xoabanbe($cookie,$id,$useragent){
  546. $ch = curl_init();
  547. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/profile.php?id='.$id);
  548. $head[] = "Connection: keep-alive";
  549. $head[] = "Keep-Alive: 300";
  550. $head[] = "authority: m.facebook.com";
  551. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  552. $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";
  553. $head[] = "cache-control: max-age=0";
  554. $head[] = "upgrade-insecure-requests: 1";
  555. $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";
  556. $head[] = "sec-fetch-site: none";
  557. $head[] = "sec-fetch-mode: navigate";
  558. $head[] = "sec-fetch-user: ?1";
  559. $head[] = "sec-fetch-dest: document";
  560. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  561. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  562. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  563. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  564. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  565. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  566. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  567. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  568. curl_setopt($ch, CURLOPT_ENCODING,'');
  569. $list = curl_exec($ch);
  570. $data1 = explode('" autocomplete=',explode('name="fb_dtsg" value="',$list)[1])[0];
  571. $data2= explode('" autocomplete=',explode('name="jazoest" value="',$list)[1])[0];
  572. $data = http_build_query(array('fb_dtsg'=>$data1,'jazoest'=>$data2,'friend_id'=>$id ,'unref'=>'profile_gear','confirm'=>'Xác nhận'));
  573. $head[] = 'content-length: '.strlen($data);
  574. $head[] = 'refer: https://mbasic.facebook.com/removefriend.php?friend_id='.$id.'&unref=profile_gear&refid=17';
  575. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/a/removefriend.php');
  576. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  577. curl_setopt($ch, CURLOPT_POST, 1);
  578. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  579. $h = curl_exec($ch);
  580. curl_close($ch);
  581. }
  582. function cookie($cookie,$useragent){
  583. $ch = curl_init();
  584. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  585. $head[] = "Connection: keep-alive";
  586. $head[] = "Keep-Alive: 300";
  587. $head[] = "authority: m.facebook.com";
  588. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  589. $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";
  590. $head[] = "cache-control: max-age=0";
  591. $head[] = "upgrade-insecure-requests: 1";
  592. $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";
  593. $head[] = "sec-fetch-site: none";
  594. $head[] = "sec-fetch-mode: navigate";
  595. $head[] = "sec-fetch-user: ?1";
  596. $head[] = "sec-fetch-dest: document";
  597. curl_setopt($ch, CURLOPT_USERAGENT,$useragent );
  598. curl_setopt($ch, CURLOPT_ENCODING, '');
  599. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  600. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  601. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  602. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  603. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  604. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  605. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  606. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  607. $access = curl_exec($ch);
  608. curl_close($ch);
  609. return $access;
  610. }
  611. function gettt($cookie,$useragent){
  612. $ch = curl_init();
  613. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/home.php');
  614. $head[] = "Connection: keep-alive";
  615. $head[] = "Keep-Alive: 300";
  616. $head[] = "authority: m.facebook.com";
  617. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  618. $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";
  619. $head[] = "cache-control: max-age=0";
  620. $head[] = "upgrade-insecure-requests: 1";
  621. $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";
  622. $head[] = "sec-fetch-site: none";
  623. $head[] = "sec-fetch-mode: navigate";
  624. $head[] = "sec-fetch-user: ?1";
  625. $head[] = "sec-fetch-dest: document";
  626. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; Android 9; LGM-V300L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.185 Mobile Safari/537.36');
  627. curl_setopt($ch, CURLOPT_ENCODING, '');
  628. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  629. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  630. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  631. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  632. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  633. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  634. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  635. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  636. $n = curl_exec($ch);
  637. $lin = explode('">Thích</a><span',explode('a/like.php?', $n)[1])[0];
  638. $link = str_replace('&amp;', '&', $lin);
  639. $url = "https://mbasic.facebook.com/a/like.php?".$link;
  640. curl_setopt($ch, CURLOPT_URL, $url);
  641. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  642. $ccc = curl_exec($ch);
  643. return explode('</title><meta',explode('head><title>',$ccc)[1])[0];
  644. curl_close($ch);
  645.  
  646. }
  647. function cmt($cookie,$msg,$id,$useragent){
  648. $ch = curl_init();
  649. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  650. $head[] = "Connection: keep-alive";
  651. $head[] = "Keep-Alive: 300";
  652. $head[] = "authority: m.facebook.com";
  653. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  654. $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";
  655. $head[] = "cache-control: max-age=0";
  656. $head[] = "upgrade-insecure-requests: 1";
  657. $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";
  658. $head[] = "sec-fetch-site: none";
  659. $head[] = "sec-fetch-mode: navigate";
  660. $head[] = "sec-fetch-user: ?1";
  661. $head[] = "sec-fetch-dest: document";
  662. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  663. curl_setopt($ch, CURLOPT_ENCODING, '');
  664. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  665. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  666. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  667. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  668. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  669. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  670. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  671. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  672. $m = curl_exec($ch);
  673. $lin = explode('">Viết bình luận...',explode('/a/comment.php?',$m)[1])[0];
  674. $link1 = explode('"><input type="',$lin)[0];
  675. $link = str_replace('&amp;', '&', $link1);
  676. $data1 = explode('" autocomplete="',explode('name="fb_dtsg" value="',$lin)[1])[0];
  677. $data2= explode('" autocomplete="',explode('name="jazoest" value="',$lin)[1])[0];
  678. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/comment.php?".$link);
  679. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  680. $dat= http_build_query(array('fb_dtsg'=> $data1, 'jazoest'=> $data2, 'comment_text'=> $msg));
  681. curl_setopt($ch, CURLOPT_POST, 1);
  682. curl_setopt($ch, CURLOPT_POSTFIELDS, $dat);
  683. $n = curl_exec($ch);
  684. curl_close($ch);
  685. return
  686. explode('</title><meta',explode('head><title>',$n)[1])[0];
  687. }
  688. function page($id,$cookie,$useragent){
  689. $ch = curl_init();
  690. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  691. $head[] = "Connection: keep-alive";
  692. $head[] = "Keep-Alive: 300";
  693. $head[] = "authority: m.facebook.com";
  694. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  695. $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";
  696. $head[] = "cache-control: max-age=0";
  697. $head[] = "upgrade-insecure-requests: 1";
  698. $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";
  699. $head[] = "sec-fetch-site: none";
  700. $head[] = "sec-fetch-mode: navigate";
  701. $head[] = "sec-fetch-user: ?1";
  702. $head[] = "sec-fetch-dest: document";
  703. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  704. curl_setopt($ch, CURLOPT_ENCODING, '');
  705. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  706. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  707. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  708. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  709. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  710. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  711. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  712. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  713. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  714. :'));
  715. $page = curl_exec($ch);
  716. if (explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0]){
  717. $get = explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0];
  718. $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$id.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  719. curl_setopt($ch, CURLOPT_URL, $link);
  720. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  721. curl_exec($ch);
  722. }
  723. curl_close($ch);
  724.  
  725. }
  726. function camxuc($cookie,$id,$useragent,$type){
  727. $ch = curl_init();
  728. if(strpos($id,'_')){
  729. $uid = explode('_',$id, 2);
  730. $id2 = 'story.php?story_fbid='.$uid[1].'&id='.$uid[0];
  731. }else{
  732. $id2 = $id;
  733. }
  734. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id2);
  735. $head[] = "Connection: keep-alive";
  736. $head[] = "Keep-Alive: 300";
  737. $head[] = "authority: m.facebook.com";
  738. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  739. $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";
  740. $head[] = "cache-control: max-age=0";
  741. $head[] = "upgrade-insecure-requests: 1";
  742. $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";
  743. $head[] = "sec-fetch-site: none";
  744. $head[] = "sec-fetch-mode: navigate";
  745. $head[] = "sec-fetch-user: ?1";
  746. $head[] = "sec-fetch-dest: document";
  747. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  748. curl_setopt($ch, CURLOPT_ENCODING, '');
  749. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  750. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  751. curl_setopt($ch, CURLOPT_HEADER,true );
  752. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  753. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  754. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  755. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  756. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  757. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  758. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  759. :'));
  760. $page = curl_exec($ch);
  761. if (preg_match('~Location: (.*)~i', $result, $match)) {
  762. $location = trim($match[1]);
  763. $link = 'https://mbasic.facebook.com'.explode('facebook.com',$location)[1];
  764. return array('link' => $link);
  765. }else{
  766. if ($id2 != $id && explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0]){
  767. $get = explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0];
  768. }else{
  769. $get = $id2;
  770. }
  771. $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$get;
  772. curl_setopt($ch, CURLOPT_URL, $link);
  773. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  774. $cx = curl_exec($ch);
  775. $HAHA = explode('<a href="',$cx);
  776. if ($type == 'LOVE'){
  777. $haha2 = explode('" style="display:block"',$haha[2])[0];
  778. }else if ($type == 'WOW '){
  779. $haha2 = explode('" style="display:block"',$haha[5])[0];
  780. }else if ($type == 'Thả Haha'){
  781. $haha2 = explode('" style="display:block"',$haha[4])[0];
  782. }else if ($type == 'SAD '){
  783. $haha2 = explode('" style="display:block"',$haha[6])[0];
  784. }else{
  785. $haha2 = explode('" style="display:block"',$haha[7])[0];
  786. }
  787. $link2 = html_entity_decode($haha2);
  788.  
  789. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  790. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  791. curl_exec($ch);
  792. curl_close($ch);
  793. }
  794. }
  795. function camxuc1($cookie,$link,$useragent,$type){
  796. $ch = curl_init();
  797. curl_setopt($ch, CURLOPT_URL, $link);
  798. $head[] = "Connection: keep-alive";
  799. $head[] = "Keep-Alive: 300";
  800. $head[] = "authority: m.facebook.com";
  801. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  802. $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";
  803. $head[] = "cache-control: max-age=0";
  804. $head[] = "upgrade-insecure-requests: 1";
  805. $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";
  806. $head[] = "sec-fetch-site: none";
  807. $head[] = "sec-fetch-mode: navigate";
  808. $head[] = "sec-fetch-user: ?1";
  809. $head[] = "sec-fetch-dest: document";
  810. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  811. curl_setopt($ch, CURLOPT_ENCODING, '');
  812. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  813. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  814. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  815. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  816. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  817. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  818. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  819. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  820. $m = curl_exec($ch);
  821. if ($type == 'LIKE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=1',$m)[1])[0];
  822. $link4 = '&amp;reaction_type=1'.$link2;
  823. }
  824. if ($type == 'THUONG'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=16',$m)[1])[0];
  825. $link4 = '&amp;reaction_type=16'.$link2;
  826. }
  827. if ($type == 'LOVE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=2',$m)[1])[0];
  828. $link4 = '&amp;reaction_type=2'.$link2;
  829. }
  830. if ($type == 'WOW' ){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=3',$m)[1])[0];
  831. $link4 = '&amp;reaction_type=3'.$link2;
  832. }
  833. if ($type == 'Thả Haha'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=4',$m)[1])[0];
  834. $link4 = '&amp;reaction_type=4'.$link2;
  835. }
  836. if ($type == 'SAD'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=7',$m)[1])[0];
  837. $link4 = '&amp;reaction_type=7'.$link2;
  838. }
  839. if ($type == ''){$link2= explode('" style="display:block"',explode('&amp;reaction_type=8')[1])[0];
  840. $link4 = '&amp;reaction_type=8'.$link2;
  841. }
  842. $link3 = explode('&amp;reaction_type=',explode('<a href="/ufi/reaction/?',$m)[1])[0];
  843. $link5 = str_replace('&amp;', '&', $link3.$link4);
  844. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?".$link5);
  845. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  846. $n = curl_exec($ch);
  847. curl_close($ch);
  848. return
  849. explode('</title><meta',explode('head><title>',$n)[1])[0];
  850. }
  851. function datnicktds($user,$idfb){
  852. $ch=curl_init();
  853. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
  854. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/api_dat.php?user='.$user.'&idfb='.$idfb);
  855. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  856. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; Android 11; Pixel 2 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36");
  857. $h = curl_exec($ch);
  858. return json_decode($h);
  859. }
  860. function nhantientds($loai,$id){
  861. $ch=curl_init();
  862. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantien'.$loai.'.php');
  863. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  864. $tdsxu=array('id' => $id);
  865. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  866. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  867. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  868. $xu=curl_exec($ch);
  869. curl_close($ch);
  870. return $xu;
  871. }
  872. function nhantiencxtds($loai,$id){
  873. $ch=curl_init();
  874. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantiencx.php');
  875. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  876. $tdsxu=array('id' => $id, 'loaicx' => $loai);
  877. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  878. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  879. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  880. $xu=curl_exec($ch);
  881. curl_close($ch);
  882. return $xu;
  883. }
  884. function getcookietds($user,$pass){
  885. $ch=curl_init();
  886. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  887. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  888. curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  889. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  890. $login =array('username' => $user,'password' => $pass,'submit' => ' ĐĂNG NHẬP');
  891. curl_setopt($ch, CURLOPT_POST,count($login));
  892. curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
  893. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  894. $source=curl_exec($ch);
  895. curl_close($ch);
  896. return $source;
  897. }
  898. function getnvtds($loai,$user){
  899. $ch = curl_init();
  900. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  901. curl_setopt($ch,CURLOPT_URL,'https://traodoisub.com/scr/api_job.php?chucnang='.$loai.'&user='.$user);
  902. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  903. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; Android 11; Pixel 2 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36");
  904. $list = curl_exec($ch);
  905. curl_close($ch);
  906. return json_decode($list);
  907. }
  908. function followtoken($access_token,$id,$useragent){
  909. $ch=curl_init();
  910. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
  911. $head[] = "Connection: keep-alive";
  912. $head[] = "Keep-Alive: 300";
  913. $head[] = "authority: m.facebook.com";
  914. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  915. $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";
  916. $head[] = "cache-control: max-age=0";
  917. $head[] = "upgrade-insecure-requests: 1";
  918. $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";
  919. $head[] = "sec-fetch-site: none";
  920. $head[] = "sec-fetch-mode: navigate";
  921. $head[] = "sec-fetch-user: ?1";
  922. $head[] = "sec-fetch-dest: document";
  923. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  924. curl_setopt($ch, CURLOPT_ENCODING, '');
  925. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  926. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  927. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  928. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  929. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  930. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  931. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  932. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  933. $data = array('access_token' => $access_token);
  934. curl_setopt($ch, CURLOPT_POST,count($data));
  935. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  936. $access = curl_exec($ch);
  937. curl_close($ch);
  938. return json_decode($access);
  939. }
  940. function liketoken($access_token,$id,$useragent){
  941. $ch=curl_init();
  942. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  943. $head[] = "Connection: keep-alive";
  944. $head[] = "Keep-Alive: 300";
  945. $head[] = "authority: m.facebook.com";
  946. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  947. $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";
  948. $head[] = "cache-control: max-age=0";
  949. $head[] = "upgrade-insecure-requests: 1";
  950. $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";
  951. $head[] = "sec-fetch-site: none";
  952. $head[] = "sec-fetch-mode: navigate";
  953. $head[] = "sec-fetch-user: ?1";
  954. $head[] = "sec-fetch-dest: document";
  955. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  956. curl_setopt($ch, CURLOPT_ENCODING, '');
  957. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  958. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  959. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  960. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  961. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  962. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  963. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  964. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  965. $data = array('access_token' => $access_token);
  966. curl_setopt($ch, CURLOPT_POST,count($data));
  967. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  968. $access = curl_exec($ch);
  969. curl_close($ch);
  970. return json_decode($access);
  971. }
  972. function cmttoken($access_token,$id,$msg,$useragent){
  973. $ch=curl_init();
  974. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
  975. $head[] = "Connection: keep-alive";
  976. $head[] = "Keep-Alive: 300";
  977. $head[] = "authority: m.facebook.com";
  978. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  979. $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";
  980. $head[] = "cache-control: max-age=0";
  981. $head[] = "upgrade-insecure-requests: 1";
  982. $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";
  983. $head[] = "sec-fetch-site: none";
  984. $head[] = "sec-fetch-mode: navigate";
  985. $head[] = "sec-fetch-user: ?1";
  986. $head[] = "sec-fetch-dest: document";
  987. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  988. curl_setopt($ch, CURLOPT_ENCODING, '');
  989. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  990. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  991. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  992. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  993. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  994. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  995. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  996. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  997. $data = array('message' => $msg,'access_token' => $access_token);
  998. curl_setopt($ch, CURLOPT_POST,count($data));
  999. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  1000. $access = curl_exec($ch);
  1001. curl_close($ch);
  1002. return json_decode($access);
  1003. }
  1004. function gethome($cookie,$useragent){
  1005. $ch = curl_init();
  1006. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/home.php');
  1007. $head[] = "Connection: keep-alive";
  1008. $head[] = "Keep-Alive: 300";
  1009. $head[] = "authority: m.facebook.com";
  1010. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1011. $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";
  1012. $head[] = "cache-control: max-age=0";
  1013. $head[] = "upgrade-insecure-requests: 1";
  1014. $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";
  1015. $head[] = "sec-fetch-site: none";
  1016. $head[] = "sec-fetch-mode: navigate";
  1017. $head[] = "sec-fetch-user: ?1";
  1018. $head[] = "sec-fetch-dest: document";
  1019. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  1020. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  1021. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  1022. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  1023. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  1024. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  1025. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  1026. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  1027. curl_setopt($ch, CURLOPT_ENCODING,'');
  1028. return curl_exec($ch);
  1029. curl_close($ch);
  1030. }
  1031. function camxuctuongtac($cookie,$link,$useragent,$type){
  1032. $ch = curl_init();
  1033. curl_setopt($ch, CURLOPT_URL, $link);
  1034. $head[] = "Connection: keep-alive";
  1035. $head[] = "Keep-Alive: 300";
  1036. $head[] = "authority: m.facebook.com";
  1037. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1038. $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";
  1039. $head[] = "cache-control: max-age=0";
  1040. $head[] = "upgrade-insecure-requests: 1";
  1041. $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";
  1042. $head[] = "sec-fetch-site: none";
  1043. $head[] = "sec-fetch-mode: navigate";
  1044. $head[] = "sec-fetch-user: ?1";
  1045. $head[] = "sec-fetch-dest: document";
  1046. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  1047. curl_setopt($ch, CURLOPT_ENCODING, '');
  1048. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1049. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1050. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1051. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1052. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1053. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1054. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1055. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1056. $m = curl_exec($ch);
  1057. if ($type == 'LIKE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=1',$m)[1])[0];
  1058. $link4 = '&amp;reaction_type=1'.$link2;
  1059. }
  1060. if ($type == 'THUONG'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=16',$m)[1])[0];
  1061. $link4 = '&amp;reaction_type=16'.$link2;
  1062. }
  1063. if ($type == 'LOVE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=2',$m)[1])[0];
  1064. $link4 = '&amp;reaction_type=2'.$link2;
  1065. }
  1066. if ($type == 'WOW' ){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=3',$m)[1])[0];
  1067. $link4 = '&amp;reaction_type=3'.$link2;
  1068. }
  1069. if ($type == 'HAHA'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=4',$m)[1])[0];
  1070. $link4 = '&amp;reaction_type=4'.$link2;
  1071. }
  1072. if ($type == 'SAD'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=7',$m)[1])[0];
  1073. $link4 = '&amp;reaction_type=7'.$link2;
  1074. }
  1075. if ($type == ''){$link2= explode('" style="display:block"',explode('&amp;reaction_type=8')[1])[0];
  1076. $link4 = '&amp;reaction_type=8'.$link2;
  1077. }
  1078. $link3 = explode('&amp;reaction_type=',explode('<a href="/ufi/reaction/?',$m)[1])[0];
  1079. $link5 = str_replace('&amp;', '&', $link3.$link4);
  1080. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?".$link5);
  1081. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1082. $n = curl_exec($ch);
  1083. curl_close($ch);
  1084. return
  1085. explode('</title><meta',explode('head><title>',$n)[1])[0];}
  1086. function gettiephome($cookie,$linktiep,$useragent){
  1087. $ch = curl_init();
  1088. curl_setopt($ch, CURLOPT_URL,$linktiep);
  1089. $head[] = "Connection: keep-alive";
  1090. $head[] = "Keep-Alive: 300";
  1091. $head[] = "authority: m.facebook.com";
  1092. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1093. $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";
  1094. $head[] = "cache-control: max-age=0";
  1095. $head[] = "upgrade-insecure-requests: 1";
  1096. $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";
  1097. $head[] = "sec-fetch-site: none";
  1098. $head[] = "sec-fetch-mode: navigate";
  1099. $head[] = "sec-fetch-user: ?1";
  1100. $head[] = "sec-fetch-dest: document";
  1101. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  1102. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  1103. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  1104. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  1105. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  1106. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  1107. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  1108. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  1109. curl_setopt($ch, CURLOPT_ENCODING,'');
  1110. return curl_exec($ch);
  1111. curl_close($ch);
  1112. }
  1113. function thembanbe($cookie,$url,$useragent){
  1114. $ch = curl_init();
  1115. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/friends/center/mbasic/?fb_ref=tn&sr=1&ref_component=mbasic_home_header&ref_page=MFriendsCenterMBasicController');
  1116. $head[] = "Connection: keep-alive";
  1117. $head[] = "Keep-Alive: 300";
  1118. $head[] = "authority: m.facebook.com";
  1119. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1120. $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";
  1121. $head[] = "cache-control: max-age=0";
  1122. $head[] = "upgrade-insecure-requests: 1";
  1123. $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";
  1124. $head[] = "sec-fetch-site: none";
  1125. $head[] = "sec-fetch-mode: navigate";
  1126. $head[] = "sec-fetch-user: ?1";
  1127. $head[] = "sec-fetch-dest: document";
  1128. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  1129. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  1130. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  1131. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  1132. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  1133. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  1134. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  1135. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  1136. curl_setopt($ch, CURLOPT_ENCODING,'');
  1137. $list = curl_exec($ch);
  1138. $link = explode('" class="',explode('/a/mobile/friends/add_friend.php?',$list)[1])[0];
  1139. $link2 = 'https://mbasic.facebook.com/a/mobile/friends/add_friend.php?'.str_replace('&amp;','&',$link);
  1140. curl_setopt($ch, CURLOPT_URL, $link2);
  1141. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1142. curl_exec($ch);
  1143. curl_close($ch);
  1144. return explode('&hf',explode('id=',$link2)[1])[0];
  1145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement