Advertisement
Vngosu7

Untitled

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