Advertisement
Vngosu7

Untitled

Jul 14th, 2021
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.27 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. $BGreen = "\033[1;32m";
  31.  
  32. $green="\033[1;32m";
  33. $wait = $green."Đợi";
  34. $xnhac = "\033[1;96m";
  35. $res="\033[0m";
  36. $red="\033[1;31m";
  37. $yellow="\033[1;93m";
  38. $lightblue="\033[1;35m";
  39. $bluelight="\033[1;34m";
  40. $blue="\033[1;36m";
  41. $purple="\e[35m";
  42. $end="\033[0m";
  43. $do="\033[1;91m";
  44. $luc="\033[1;92m";
  45. $vang="\033[1;93m";
  46. $xduong="\033[1;94m";
  47. $hong="\033[1;95m";
  48. $trang="\033[1;97m";
  49. $BBlack="\033[1;30m" ;
  50. $BRed="\033[1;31m" ;
  51. $BGreen="\033[1;32m" ;
  52. $BYellow="\033[1;33m" ;
  53. $BBlue="\033[1;34m" ;
  54. $BPurple="\033[1;35m" ;
  55. $BCyan="\033[1;36m" ;
  56. $BWhite="\033[1;37m" ;
  57. $Blue = "\033[1;96m";
  58. $res="\033[0m";
  59. $end="\033[0m";
  60. $red="\033[1;31m";
  61. $xanh="\033[1;32m";
  62. $cyan="\033[1;36m";
  63. $yellow="\033[1;33m";
  64. $turquoise="\033[1;34m";
  65. $maugi="\033[1;35m";
  66. $white= "\033[1;37m";
  67. $BLACK_BOLD = "\033[1;30m";
  68. $den = "\033[1;90m";
  69. $red="\033[1;31m";
  70. $Blue="\033[1;34m";
  71. $green="\033[1;32m";
  72. $greenb="\033[1;32m";
  73. $yellow="\033[1;33m";
  74. $yellowb="\033[1;33m";
  75. $syan="\033[1;36m";
  76. $blue="\033[1;34m";
  77. $blueb="\033[1;34m";
  78. $purple="\033[1;35m";
  79. $purpleb="\033[1;35m";
  80. $lightblue="\033[1;36m";
  81. $lightblue="\033[1;35m";
  82. $lightblueb="\033[1;36m";
  83.  
  84. $banner =" \033[1;97m╭───────────────────────────────────╮
  85. \033[1;32m[\033[1;31m✿\033[1;32m] \033[1;36mFacebook:\033[1;37m ՙՙ ՙՙ ✓
  86. \033[1;32m[\033[1;31m✿\033[1;32m] \033[1;36mZalo: \033[1;37m 037.553.0461 ✓
  87. \033[1;32m[\033[1;31m✿\033[1;32m] \033[1;36mGmail: \033[1;37m vngosu7@gmail.com ✓ \033[1;97m ╰───────────────────────────────────╯ ";
  88. echo" \n";
  89. $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");
  90. $rand_keys = array_rand($input, 10);
  91. $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");
  92. $rand_keys = array_rand($input, 15);
  93. $end="\033[0m";
  94. $black="\033[1;30m";
  95. $blackb="\033[1;30m";
  96. $white="\033[1;37m";
  97. $whiteb="\033[1;37m";
  98. $red="\033[1;31m";
  99. $Blue="\033[1;31m";
  100. $green="\033[1;32m";
  101. $greenb="\033[1;32m";
  102. $yellow="\033[1;33m";
  103. $yellowb="\033[1;33m";
  104. $syan="\033[1;36m";
  105. $blue="\033[1;34m";
  106. $blueb="\033[1;34m";
  107. $purple="\033[1;35m";
  108. $purpleb="\033[1;35m";
  109. $lightblue="\033[1;36m";
  110. $lightblue="\033[1;35m";
  111. $lightblueb="\033[1;36m";
  112. $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");
  113. $rand_keys = array_rand($input, 10);
  114. $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");
  115. $rand_keys = array_rand($input, 15);
  116. $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";
  117. $head[] = "Connection: keep-alive";
  118. $head[] = "Keep-Alive: 300";
  119. $head[] = "authority: m.facebook.com";
  120. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  121. $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";
  122. $head[] = "cache-control: max-age=0";
  123. $head[] = "upgrade-insecure-requests: 1";
  124. $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";
  125. $head[] = "sec-fetch-site: none";
  126. $head[] = "sec-fetch-mode: navigate";
  127. $head[] = "sec-fetch-user: ?1";
  128. $head[] = "sec-fetch-dest: document";
  129.  
  130. while(true){
  131. system('clear');
  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. echo $do."[".$luc."●".$do."] ".$trang."=> ".$xnhac."Điền Cookie Acc Cần Làm: $vang";
  191. $cookie=trim(fgets(STDIN));
  192. $access = cookie($cookie,$useragent);
  193. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0]){
  194. $access_token=explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
  195. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  196. break;
  197. }else{ exit($BRed." Cookie Sai\n");}
  198. }
  199.  
  200. echo"\n";
  201. unset($so); unset($_SESSION['giaay']);unset($nhap);
  202. system('clear');
  203. echo $vang."\n";
  204.  
  205. $t=
  206. $hong."\033[1; _ ___ __ ___________ _____ _____ _ __ ___________ ";
  207. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  208. usleep(2000);
  209. }
  210. echo $xduong."\n";
  211. $t=
  212. $trang."\033[1; | | | \ \ / / |_ _| ___ \_ _/ __ \| | / /| ___| ___ \ ";
  213. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  214. usleep(2000);
  215. }
  216. echo $xnhac."\n";
  217. $t=
  218. $trang."\033[1; | | | |\ V / | | | |_/ / | | | / \/| |/ / | |__ | |_/ / ";
  219. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  220. usleep(2000);
  221. }
  222. echo $hong."\n";
  223. $t=
  224. $trang."\033[1; | | | | \ / | | | / | | | | | \ | __|| / ";
  225. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  226. usleep(2000);
  227. }
  228. echo $do."\n";
  229. $t=
  230. $trang."\033[1; | |_| | | | | | | |\ \ _| |_| \__/\| |\ \| |___| |\ \ ";
  231. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  232. usleep(2000);
  233. }
  234. echo $luc."\n";
  235. $t=
  236. $trang."\033[1; \___/ \_/ \_/ \_| \_|\___/ \____/\_| \_/\____/\_| \_| ";
  237.  
  238. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  239. usleep(2000);
  240.  
  241. }
  242. echo $do."\n";
  243.  
  244. $t="\033[1; \033[47m TOOLS \033[0m\n";
  245.  
  246. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  247. usleep(20000);
  248. }
  249.  
  250.  
  251. echo $vang."=====================================================\n";
  252. echo $do." [".$luc."Bản Quyền".$do."] ";usleep(200000);echo $vang."Uy Tricker ";
  253. echo $do." [".$luc."ZaLo".$do."]";usleep(300000);
  254. echo $vang." 037.553.0461";
  255. echo "\n";
  256. echo " ".$do."[".$luc."Ví MoMo".$do."]";usleep(300000);echo $vang." 037.553.0461";
  257. echo "\n";
  258. echo $vang."=====================================================\n";
  259.  
  260.  
  261. echo "\e[1;95m┌─[\e[1;37m\e[1;42mNhập Số Bạn Bè Cần Thêm\e[0m\e[1;95m]
  262. └──╼ \e[1;39mU\e[1;36mT\e[1;91mK : $vang ";
  263. $cangui=trim(fgets(STDIN));
  264. echo "\e[1;95m┌─[\e[1;37m\e[1;42mNhập Time Delay\e[0m\e[1;95m]
  265. └──╼ \e[1;39mU\e[1;36mT\e[1;91mK : $vang ";
  266. $_SESSION['giaay']=trim(fgets(STDIN));
  267. echo $vang."=====================================================\n";
  268.  
  269. while($ii < $cangui){$ii++;$so++;
  270. $n = thembanbe($cookie,$url,$useragent);
  271. echo $BYellow."[".$do.$so.$BYellow."]$xnhac Bạn Đã Gửi Lời Kết Bạn Cho ID: ".$BLACK_BOLD.$n."\n";
  272. if ($_SESSION['giaay'] < 1) {
  273. } elseif ( $_SESSION['giaay'] > 1) {
  274. for($i = $_SESSION['giaay'];$i>-1;$i--) {
  275. 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 | ";
  276. usleep(150000);
  277.  
  278. 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 | ";
  279. usleep(150000);
  280. 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 | ";
  281. usleep(150000);
  282. 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 | ";
  283. usleep(150000);
  284. 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 | ";
  285. usleep(150000);
  286. 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 | ";
  287. usleep(150000);
  288. 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 | ";
  289. usleep(100000);
  290. echo "\r \r";}
  291. }
  292. }
  293.  
  294.  
  295. function huyfollow($cookie,$id,$useragent){
  296. $ch = curl_init();
  297. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  298. $head[] = "Connection: keep-alive";
  299. $head[] = "Keep-Alive: 300";
  300. $head[] = "authority: m.facebook.com";
  301. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  302. $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";
  303. $head[] = "cache-control: max-age=0";
  304. $head[] = "upgrade-insecure-requests: 1";
  305. $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";
  306. $head[] = "sec-fetch-site: none";
  307. $head[] = "sec-fetch-mode: navigate";
  308. $head[] = "sec-fetch-user: ?1";
  309. $head[] = "sec-fetch-dest: document";
  310. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  311. curl_setopt($ch, CURLOPT_ENCODING, '');
  312. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  313. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  314. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  315. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  316. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  317. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  318. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  319. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  320. $n = curl_exec($ch);
  321. $lin = explode('">Bỏ theo dõi',explode('/a/subscriptions/remove?', $n)[1])[0];
  322. $link = str_replace('&amp;', '&', $lin);
  323. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/subscriptions/remove?".$link);
  324. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  325. $n = curl_exec($ch);
  326. curl_close($ch);
  327. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  328. }
  329. function getidunfl($cookie,$idfb,$useragent){
  330. $ch = curl_init();
  331. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/?'.http_build_query(array( 'collection_token'=> $idfb.':2356318349:33', '_rdr'=> '')));
  332. $head[] = "Connection: keep-alive";
  333. $head[] = "Keep-Alive: 300";
  334. $head[] = "authority: m.facebook.com";
  335. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  336. $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";
  337. $head[] = "cache-control: max-age=0";
  338. $head[] = "upgrade-insecure-requests: 1";
  339. $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";
  340. $head[] = "sec-fetch-site: none";
  341. $head[] = "sec-fetch-mode: navigate";
  342. $head[] = "sec-fetch-user: ?1";
  343. $head[] = "sec-fetch-dest: document";
  344. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  345. curl_setopt($ch, CURLOPT_ENCODING, '');
  346. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  347. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  348. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  349. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  350. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  351. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  352. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  353. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  354. $n = curl_exec($ch);
  355. $lin = explode('collection',explode('/timeline/app_collection/more/?collection_token', $n)[1])[0];
  356. $link = str_replace('&amp;','&',$lin);
  357. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/more/?collection_token'.$link.'collection');
  358. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  359. $m = curl_exec($ch);
  360. curl_close($ch);
  361. $liss = [];
  362. $n = explode('\">\u003Cspan',explode('href=\"\/',$m)[1])[0];
  363. if ($n == ''){$bb = '1'; $liss = '1';}else{$bb = '2';}
  364. while($bb == '2'){$i++;
  365. $uid = explode('\">\u003Cspan',explode('href=\"\/',$m)[($i)])[0];
  366. if (strlen($uid) < 100){
  367. array_push($liss, $uid);}
  368. if ($uid == ''){break;}
  369. }
  370. return $liss;
  371. }
  372. function bolikepage($cookie,$id,$useragent){
  373. $ch = curl_init();
  374. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  375. $head[] = "Connection: keep-alive";
  376. $head[] = "Keep-Alive: 300";
  377. $head[] = "authority: m.facebook.com";
  378. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  379. $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";
  380. $head[] = "cache-control: max-age=0";
  381. $head[] = "upgrade-insecure-requests: 1";
  382. $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";
  383. $head[] = "sec-fetch-site: none";
  384. $head[] = "sec-fetch-mode: navigate";
  385. $head[] = "sec-fetch-user: ?1";
  386. $head[] = "sec-fetch-dest: document";
  387. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  388. curl_setopt($ch, CURLOPT_ENCODING, '');
  389. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  390. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  391. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  392. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  393. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  394. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  395. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  396. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  397. $n = curl_exec($ch);
  398. $lin = explode('" class="',explode('/a/profile.php?unfan', $n)[1])[0];
  399. $link = str_replace('&amp;', '&', $lin);
  400.  
  401. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/profile.php?unfan".$link);
  402. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  403. $n = curl_exec($ch);
  404. curl_close($ch);
  405. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  406. }
  407. function xacnhanbanbe($cookie,$id,$useragent){
  408. $ch = curl_init();
  409. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  410. $head[] = "Connection: keep-alive";
  411. $head[] = "Keep-Alive: 300";
  412. $head[] = "authority: m.facebook.com";
  413. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  414. $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";
  415. $head[] = "cache-control: max-age=0";
  416. $head[] = "upgrade-insecure-requests: 1";
  417. $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";
  418. $head[] = "sec-fetch-site: none";
  419. $head[] = "sec-fetch-mode: navigate";
  420. $head[] = "sec-fetch-user: ?1";
  421. $head[] = "sec-fetch-dest: document";
  422. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  423. curl_setopt($ch, CURLOPT_ENCODING, '');
  424. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  425. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  426. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  427. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  428. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  429. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  430. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  431. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  432. $n = curl_exec($ch);
  433. $lin = explode('" class="',explode('/a/mobile/friends/profile_add_friend.php?', $n)[1])[0];
  434. $link = str_replace('&amp;', '&', $lin);
  435.  
  436. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/mobile/friends/profile_add_friend.php?".$link);
  437. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  438. $n = curl_exec($ch);
  439. curl_close($ch);
  440. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  441. }
  442. function xemlikepage($cookie,$access_token,$useragent){
  443. $ch=curl_init();
  444. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/likes?access_token='.$access_token.'&limit=5000&fields=name,id');
  445. $head[] = "Connection: keep-alive";
  446. $head[] = "Keep-Alive: 300";
  447. $head[] = "authority: m.facebook.com";
  448. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  449. $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";
  450. $head[] = "cache-control: max-age=0";
  451. $head[] = "upgrade-insecure-requests: 1";
  452. $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";
  453. $head[] = "sec-fetch-site: none";
  454. $head[] = "sec-fetch-mode: navigate";
  455. $head[] = "sec-fetch-user: ?1";
  456. $head[] = "sec-fetch-dest: document";
  457. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  458. curl_setopt($ch, CURLOPT_ENCODING, '');
  459. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  460. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  461. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  462. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  463. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  464. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  465. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  466. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  467. $access = curl_exec($ch);
  468. curl_close($ch);
  469. return json_decode($access);
  470. }
  471. function addbanbe($cookie,$access_token,$useragent){
  472. $ch=curl_init();
  473. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/friendrequests?access_token='.$access_token.'&limit=5000&fields=from.name');
  474. $head[] = "Connection: keep-alive";
  475. $head[] = "Keep-Alive: 300";
  476. $head[] = "authority: m.facebook.com";
  477. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  478. $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";
  479. $head[] = "cache-control: max-age=0";
  480. $head[] = "upgrade-insecure-requests: 1";
  481. $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";
  482. $head[] = "sec-fetch-site: none";
  483. $head[] = "sec-fetch-mode: navigate";
  484. $head[] = "sec-fetch-user: ?1";
  485. $head[] = "sec-fetch-dest: document";
  486. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  487. curl_setopt($ch, CURLOPT_ENCODING, '');
  488. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  489. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  490. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  491. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  492. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  493. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  494. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  495. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  496. $access = curl_exec($ch);
  497. curl_close($ch);
  498. return json_decode($access);
  499. }
  500. function getbaiviet($cookie,$access_token,$useragent,$idfb){
  501. $ch=curl_init();
  502. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idfb.'/posts?limit=1000&fields=id,name&access_token='.$access_token);
  503. $head[] = "Connection: keep-alive";
  504. $head[] = "Keep-Alive: 300";
  505. $head[] = "authority: m.facebook.com";
  506. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  507. $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";
  508. $head[] = "cache-control: max-age=0";
  509. $head[] = "upgrade-insecure-requests: 1";
  510. $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";
  511. $head[] = "sec-fetch-site: none";
  512. $head[] = "sec-fetch-mode: navigate";
  513. $head[] = "sec-fetch-user: ?1";
  514. $head[] = "sec-fetch-dest: document";
  515. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  516. curl_setopt($ch, CURLOPT_ENCODING, '');
  517. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  518. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  519. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  520. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  521. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  522. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  523. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  524. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  525. $access = curl_exec($ch);
  526. curl_close($ch);
  527. return json_decode($access);
  528. }
  529. function demlike($cookie,$access_token,$idpost,$useragent){
  530. $ch=curl_init();
  531. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v1.0/'.$idpost.'/likes?access_token='.$access_token.'&pretty=1&limit=5000');
  532. $head[] = "Connection: keep-alive";
  533. $head[] = "Keep-Alive: 300";
  534. $head[] = "authority: m.facebook.com";
  535. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  536. $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";
  537. $head[] = "cache-control: max-age=0";
  538. $head[] = "upgrade-insecure-requests: 1";
  539. $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";
  540. $head[] = "sec-fetch-site: none";
  541. $head[] = "sec-fetch-mode: navigate";
  542. $head[] = "sec-fetch-user: ?1";
  543. $head[] = "sec-fetch-dest: document";
  544. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  545. curl_setopt($ch, CURLOPT_ENCODING, '');
  546. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  547. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  548. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  549. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  550. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  551. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  552. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  553. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  554. $access = curl_exec($ch);
  555. curl_close($ch);
  556. return json_decode($access);
  557. }
  558. function getbanbe($access_token,$useragent){
  559. $ch = curl_init();
  560. curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/me/friends/?access_token='.$access_token);
  561. $head[] = "Connection: keep-alive";
  562. $head[] = "Keep-Alive: 300";
  563. $head[] = "authority: m.facebook.com";
  564. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  565. $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";
  566. $head[] = "cache-control: max-age=0";
  567. $head[] = "upgrade-insecure-requests: 1";
  568. $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";
  569. $head[] = "sec-fetch-site: none";
  570. $head[] = "sec-fetch-mode: navigate";
  571. $head[] = "sec-fetch-user: ?1";
  572. $head[] = "sec-fetch-dest: document";
  573. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  574. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  575. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  576. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  577. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  578. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  579. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  580. curl_setopt($ch, CURLOPT_ENCODING,'');
  581. return json_decode(curl_exec($ch));
  582. curl_close($ch);
  583. }
  584. function xoabanbe($cookie,$id,$useragent){
  585. $ch = curl_init();
  586. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/profile.php?id='.$id);
  587. $head[] = "Connection: keep-alive";
  588. $head[] = "Keep-Alive: 300";
  589. $head[] = "authority: m.facebook.com";
  590. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  591. $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";
  592. $head[] = "cache-control: max-age=0";
  593. $head[] = "upgrade-insecure-requests: 1";
  594. $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";
  595. $head[] = "sec-fetch-site: none";
  596. $head[] = "sec-fetch-mode: navigate";
  597. $head[] = "sec-fetch-user: ?1";
  598. $head[] = "sec-fetch-dest: document";
  599. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  600. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  601. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  602. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  603. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  604. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  605. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  606. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  607. curl_setopt($ch, CURLOPT_ENCODING,'');
  608. $list = curl_exec($ch);
  609. $data1 = explode('" autocomplete=',explode('name="fb_dtsg" value="',$list)[1])[0];
  610. $data2= explode('" autocomplete=',explode('name="jazoest" value="',$list)[1])[0];
  611. $data = http_build_query(array('fb_dtsg'=>$data1,'jazoest'=>$data2,'friend_id'=>$id ,'unref'=>'profile_gear','confirm'=>'Xác nhận'));
  612. $head[] = 'content-length: '.strlen($data);
  613. $head[] = 'refer: https://mbasic.facebook.com/removefriend.php?friend_id='.$id.'&unref=profile_gear&refid=17';
  614. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/a/removefriend.php');
  615. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  616. curl_setopt($ch, CURLOPT_POST, 1);
  617. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  618. $h = curl_exec($ch);
  619. curl_close($ch);
  620. }
  621. function cookie($cookie,$useragent){
  622. $ch = curl_init();
  623. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  624. $head[] = "Connection: keep-alive";
  625. $head[] = "Keep-Alive: 300";
  626. $head[] = "authority: m.facebook.com";
  627. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  628. $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";
  629. $head[] = "cache-control: max-age=0";
  630. $head[] = "upgrade-insecure-requests: 1";
  631. $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";
  632. $head[] = "sec-fetch-site: none";
  633. $head[] = "sec-fetch-mode: navigate";
  634. $head[] = "sec-fetch-user: ?1";
  635. $head[] = "sec-fetch-dest: document";
  636. curl_setopt($ch, CURLOPT_USERAGENT,$useragent );
  637. curl_setopt($ch, CURLOPT_ENCODING, '');
  638. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  639. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  640. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  641. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  642. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  643. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  644. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  645. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  646. $access = curl_exec($ch);
  647. curl_close($ch);
  648. return $access;
  649. }
  650.  
  651. function gethome($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_TIMEOUT,60);
  667. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  668. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  669. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  670. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  671. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  672. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  673. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  674. curl_setopt($ch, CURLOPT_ENCODING,'');
  675. return curl_exec($ch);
  676. curl_close($ch);
  677. }
  678. function camxuctuongtac($cookie,$link,$useragent,$type){
  679. $ch = curl_init();
  680. curl_setopt($ch, CURLOPT_URL, $link);
  681. $head[] = "Connection: keep-alive";
  682. $head[] = "Keep-Alive: 300";
  683. $head[] = "authority: m.facebook.com";
  684. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  685. $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";
  686. $head[] = "cache-control: max-age=0";
  687. $head[] = "upgrade-insecure-requests: 1";
  688. $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";
  689. $head[] = "sec-fetch-site: none";
  690. $head[] = "sec-fetch-mode: navigate";
  691. $head[] = "sec-fetch-user: ?1";
  692. $head[] = "sec-fetch-dest: document";
  693. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  694. curl_setopt($ch, CURLOPT_ENCODING, '');
  695. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  696. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  697. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  698. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  699. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  700. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  701. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  702. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  703. $m = curl_exec($ch);
  704. if ($type == 'LIKE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=1',$m)[1])[0];
  705. $link4 = '&amp;reaction_type=1'.$link2;
  706. }
  707. if ($type == 'THUONG'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=16',$m)[1])[0];
  708. $link4 = '&amp;reaction_type=16'.$link2;
  709. }
  710. if ($type == 'LOVE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=2',$m)[1])[0];
  711. $link4 = '&amp;reaction_type=2'.$link2;
  712. }
  713. if ($type == 'WOW' ){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=3',$m)[1])[0];
  714. $link4 = '&amp;reaction_type=3'.$link2;
  715. }
  716. if ($type == 'HAHA'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=4',$m)[1])[0];
  717. $link4 = '&amp;reaction_type=4'.$link2;
  718. }
  719. if ($type == 'SAD'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=7',$m)[1])[0];
  720. $link4 = '&amp;reaction_type=7'.$link2;
  721. }
  722. if ($type == ''){$link2= explode('" style="display:block"',explode('&amp;reaction_type=8')[1])[0];
  723. $link4 = '&amp;reaction_type=8'.$link2;
  724. }
  725. $link3 = explode('&amp;reaction_type=',explode('<a href="/ufi/reaction/?',$m)[1])[0];
  726. $link5 = str_replace('&amp;', '&', $link3.$link4);
  727. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?".$link5);
  728. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  729. $n = curl_exec($ch);
  730. curl_close($ch);
  731. return
  732. explode('</title><meta',explode('head><title>',$n)[1])[0];}
  733. function gettiephome($cookie,$linktiep,$useragent){
  734. $ch = curl_init();
  735. curl_setopt($ch, CURLOPT_URL,$linktiep);
  736. $head[] = "Connection: keep-alive";
  737. $head[] = "Keep-Alive: 300";
  738. $head[] = "authority: m.facebook.com";
  739. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  740. $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";
  741. $head[] = "cache-control: max-age=0";
  742. $head[] = "upgrade-insecure-requests: 1";
  743. $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";
  744. $head[] = "sec-fetch-site: none";
  745. $head[] = "sec-fetch-mode: navigate";
  746. $head[] = "sec-fetch-user: ?1";
  747. $head[] = "sec-fetch-dest: document";
  748. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  749. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  750. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  751. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  752. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  753. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  754. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  755. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  756. curl_setopt($ch, CURLOPT_ENCODING,'');
  757. return curl_exec($ch);
  758. curl_close($ch);
  759. }
  760. function thembanbe($cookie,$url,$useragent){
  761. $ch = curl_init();
  762. 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');
  763. $head[] = "Connection: keep-alive";
  764. $head[] = "Keep-Alive: 300";
  765. $head[] = "authority: m.facebook.com";
  766. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  767. $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";
  768. $head[] = "cache-control: max-age=0";
  769. $head[] = "upgrade-insecure-requests: 1";
  770. $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";
  771. $head[] = "sec-fetch-site: none";
  772. $head[] = "sec-fetch-mode: navigate";
  773. $head[] = "sec-fetch-user: ?1";
  774. $head[] = "sec-fetch-dest: document";
  775. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  776. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  777. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  778. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  779. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  780. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  781. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  782. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  783. curl_setopt($ch, CURLOPT_ENCODING,'');
  784. $list = curl_exec($ch);
  785. $link = explode('" class="',explode('/a/mobile/friends/add_friend.php?',$list)[1])[0];
  786. $link2 = 'https://mbasic.facebook.com/a/mobile/friends/add_friend.php?'.str_replace('&amp;','&',$link);
  787. curl_setopt($ch, CURLOPT_URL, $link2);
  788. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  789. curl_exec($ch);
  790. curl_close($ch);
  791. return explode('&hf',explode('id=',$link2)[1])[0];
  792. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement