Advertisement
Vngosu7

Untitled

Jul 14th, 2021
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.92 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ố Người 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. if ($datv == $so){unset($so);break;}
  239. $follow = getidunfl($cookie,$idfb,$useragent);
  240. while($follow != '1' and $so <= $datv ){
  241. foreach ($follow as $id){
  242. $so++;
  243. $name = huyfollow($cookie,$id,$useragent);
  244. echo $BYellow."[".$BCyan.$so.$BYellow."]".$do."Đã Bỏ Follow \033[1;96m".$name." \033[1;91mThành Công\n";
  245. for ($time = $delay; $time > -1; $time--) {
  246. 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 | ";
  247. usleep(150000);
  248.  
  249. 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 | ";
  250. usleep(150000);
  251. 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 | ";
  252. usleep(150000);
  253. 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 | ";
  254. usleep(150000);
  255. 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 | ";
  256. usleep(150000);
  257. 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 | ";
  258. usleep(150000);
  259. 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 | ";
  260. usleep(100000);
  261. echo "\r \r";
  262. }
  263. if ($datv == $so){break;}
  264. }
  265. $follow = getidunfl($cookie,$idfb,$useragent);
  266.  
  267. if ($datv <= $so or $follow == '1' ){break;}
  268. } echo $BYellow." Đã Unfollow Xong $so Người\n ";
  269. sleep(5);
  270. break;
  271. }
  272.  
  273. function huyfollow($cookie,$id,$useragent){
  274. $ch = curl_init();
  275. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  276. $head[] = "Connection: keep-alive";
  277. $head[] = "Keep-Alive: 300";
  278. $head[] = "authority: m.facebook.com";
  279. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  280. $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";
  281. $head[] = "cache-control: max-age=0";
  282. $head[] = "upgrade-insecure-requests: 1";
  283. $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";
  284. $head[] = "sec-fetch-site: none";
  285. $head[] = "sec-fetch-mode: navigate";
  286. $head[] = "sec-fetch-user: ?1";
  287. $head[] = "sec-fetch-dest: document";
  288. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  289. curl_setopt($ch, CURLOPT_ENCODING, '');
  290. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  291. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  292. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  293. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  294. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  295. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  296. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  297. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  298. $n = curl_exec($ch);
  299. $lin = explode('">Bỏ theo dõi',explode('/a/subscriptions/remove?', $n)[1])[0];
  300. $link = str_replace('&amp;', '&', $lin);
  301. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/subscriptions/remove?".$link);
  302. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  303. $n = curl_exec($ch);
  304. curl_close($ch);
  305. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  306. }
  307. function getidunfl($cookie,$idfb,$useragent){
  308. $ch = curl_init();
  309. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/?'.http_build_query(array( 'collection_token'=> $idfb.':2356318349:33', '_rdr'=> '')));
  310. $head[] = "Connection: keep-alive";
  311. $head[] = "Keep-Alive: 300";
  312. $head[] = "authority: m.facebook.com";
  313. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  314. $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";
  315. $head[] = "cache-control: max-age=0";
  316. $head[] = "upgrade-insecure-requests: 1";
  317. $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";
  318. $head[] = "sec-fetch-site: none";
  319. $head[] = "sec-fetch-mode: navigate";
  320. $head[] = "sec-fetch-user: ?1";
  321. $head[] = "sec-fetch-dest: document";
  322. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  323. curl_setopt($ch, CURLOPT_ENCODING, '');
  324. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  325. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  326. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  327. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  328. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  329. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  330. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  331. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  332. $n = curl_exec($ch);
  333. $lin = explode('collection',explode('/timeline/app_collection/more/?collection_token', $n)[1])[0];
  334. $link = str_replace('&amp;','&',$lin);
  335. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/more/?collection_token'.$link.'collection');
  336. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  337. $m = curl_exec($ch);
  338. curl_close($ch);
  339. $liss = [];
  340. $n = explode('\">\u003Cspan',explode('href=\"\/',$m)[1])[0];
  341. if ($n == ''){$bb = '1'; $liss = '1';}else{$bb = '2';}
  342. while($bb == '2'){$i++;
  343. $uid = explode('\">\u003Cspan',explode('href=\"\/',$m)[($i)])[0];
  344. if (strlen($uid) < 100){
  345. array_push($liss, $uid);}
  346. if ($uid == ''){break;}
  347. }
  348. return $liss;
  349. }
  350. function bolikepage($cookie,$id,$useragent){
  351. $ch = curl_init();
  352. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  353. $head[] = "Connection: keep-alive";
  354. $head[] = "Keep-Alive: 300";
  355. $head[] = "authority: m.facebook.com";
  356. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  357. $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";
  358. $head[] = "cache-control: max-age=0";
  359. $head[] = "upgrade-insecure-requests: 1";
  360. $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";
  361. $head[] = "sec-fetch-site: none";
  362. $head[] = "sec-fetch-mode: navigate";
  363. $head[] = "sec-fetch-user: ?1";
  364. $head[] = "sec-fetch-dest: document";
  365. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  366. curl_setopt($ch, CURLOPT_ENCODING, '');
  367. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  368. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  369. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  370. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  371. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  372. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  373. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  374. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  375. $n = curl_exec($ch);
  376. $lin = explode('" class="',explode('/a/profile.php?unfan', $n)[1])[0];
  377. $link = str_replace('&amp;', '&', $lin);
  378.  
  379. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/profile.php?unfan".$link);
  380. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  381. $n = curl_exec($ch);
  382. curl_close($ch);
  383. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  384. }
  385. function xacnhanbanbe($cookie,$id,$useragent){
  386. $ch = curl_init();
  387. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  388. $head[] = "Connection: keep-alive";
  389. $head[] = "Keep-Alive: 300";
  390. $head[] = "authority: m.facebook.com";
  391. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  392. $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";
  393. $head[] = "cache-control: max-age=0";
  394. $head[] = "upgrade-insecure-requests: 1";
  395. $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";
  396. $head[] = "sec-fetch-site: none";
  397. $head[] = "sec-fetch-mode: navigate";
  398. $head[] = "sec-fetch-user: ?1";
  399. $head[] = "sec-fetch-dest: document";
  400. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  401. curl_setopt($ch, CURLOPT_ENCODING, '');
  402. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  403. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  404. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  405. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  406. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  407. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  408. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  409. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  410. $n = curl_exec($ch);
  411. $lin = explode('" class="',explode('/a/mobile/friends/profile_add_friend.php?', $n)[1])[0];
  412. $link = str_replace('&amp;', '&', $lin);
  413.  
  414. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/mobile/friends/profile_add_friend.php?".$link);
  415. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  416. $n = curl_exec($ch);
  417. curl_close($ch);
  418. return explode('</title><meta',explode('head><title>',$n)[1])[0];
  419. }
  420. function xemlikepage($cookie,$access_token,$useragent){
  421. $ch=curl_init();
  422. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/likes?access_token='.$access_token.'&limit=5000&fields=name,id');
  423. $head[] = "Connection: keep-alive";
  424. $head[] = "Keep-Alive: 300";
  425. $head[] = "authority: m.facebook.com";
  426. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  427. $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";
  428. $head[] = "cache-control: max-age=0";
  429. $head[] = "upgrade-insecure-requests: 1";
  430. $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";
  431. $head[] = "sec-fetch-site: none";
  432. $head[] = "sec-fetch-mode: navigate";
  433. $head[] = "sec-fetch-user: ?1";
  434. $head[] = "sec-fetch-dest: document";
  435. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  436. curl_setopt($ch, CURLOPT_ENCODING, '');
  437. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  438. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  439. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  440. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  441. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  442. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  443. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  444. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  445. $access = curl_exec($ch);
  446. curl_close($ch);
  447. return json_decode($access);
  448. }
  449. function addbanbe($cookie,$access_token,$useragent){
  450. $ch=curl_init();
  451. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/friendrequests?access_token='.$access_token.'&limit=5000&fields=from.name');
  452. $head[] = "Connection: keep-alive";
  453. $head[] = "Keep-Alive: 300";
  454. $head[] = "authority: m.facebook.com";
  455. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  456. $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";
  457. $head[] = "cache-control: max-age=0";
  458. $head[] = "upgrade-insecure-requests: 1";
  459. $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";
  460. $head[] = "sec-fetch-site: none";
  461. $head[] = "sec-fetch-mode: navigate";
  462. $head[] = "sec-fetch-user: ?1";
  463. $head[] = "sec-fetch-dest: document";
  464. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  465. curl_setopt($ch, CURLOPT_ENCODING, '');
  466. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  467. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  468. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  469. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  470. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  471. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  472. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  473. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  474. $access = curl_exec($ch);
  475. curl_close($ch);
  476. return json_decode($access);
  477. }
  478. function getbaiviet($cookie,$access_token,$useragent,$idfb){
  479. $ch=curl_init();
  480. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idfb.'/posts?limit=1000&fields=id,name&access_token='.$access_token);
  481. $head[] = "Connection: keep-alive";
  482. $head[] = "Keep-Alive: 300";
  483. $head[] = "authority: m.facebook.com";
  484. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  485. $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";
  486. $head[] = "cache-control: max-age=0";
  487. $head[] = "upgrade-insecure-requests: 1";
  488. $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";
  489. $head[] = "sec-fetch-site: none";
  490. $head[] = "sec-fetch-mode: navigate";
  491. $head[] = "sec-fetch-user: ?1";
  492. $head[] = "sec-fetch-dest: document";
  493. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  494. curl_setopt($ch, CURLOPT_ENCODING, '');
  495. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  496. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  497. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  498. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  499. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  500. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  501. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  502. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  503. $access = curl_exec($ch);
  504. curl_close($ch);
  505. return json_decode($access);
  506. }
  507. function demlike($cookie,$access_token,$idpost,$useragent){
  508. $ch=curl_init();
  509. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v1.0/'.$idpost.'/likes?access_token='.$access_token.'&pretty=1&limit=5000');
  510. $head[] = "Connection: keep-alive";
  511. $head[] = "Keep-Alive: 300";
  512. $head[] = "authority: m.facebook.com";
  513. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  514. $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";
  515. $head[] = "cache-control: max-age=0";
  516. $head[] = "upgrade-insecure-requests: 1";
  517. $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";
  518. $head[] = "sec-fetch-site: none";
  519. $head[] = "sec-fetch-mode: navigate";
  520. $head[] = "sec-fetch-user: ?1";
  521. $head[] = "sec-fetch-dest: document";
  522. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  523. curl_setopt($ch, CURLOPT_ENCODING, '');
  524. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  525. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  526. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  527. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  528. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  529. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  530. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  531. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  532. $access = curl_exec($ch);
  533. curl_close($ch);
  534. return json_decode($access);
  535. }
  536. function getbanbe($access_token,$useragent){
  537. $ch = curl_init();
  538. curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/me/friends/?access_token='.$access_token);
  539. $head[] = "Connection: keep-alive";
  540. $head[] = "Keep-Alive: 300";
  541. $head[] = "authority: m.facebook.com";
  542. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  543. $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";
  544. $head[] = "cache-control: max-age=0";
  545. $head[] = "upgrade-insecure-requests: 1";
  546. $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";
  547. $head[] = "sec-fetch-site: none";
  548. $head[] = "sec-fetch-mode: navigate";
  549. $head[] = "sec-fetch-user: ?1";
  550. $head[] = "sec-fetch-dest: document";
  551. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  552. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  553. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  554. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  555. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  556. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  557. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  558. curl_setopt($ch, CURLOPT_ENCODING,'');
  559. return json_decode(curl_exec($ch));
  560. curl_close($ch);
  561. }
  562. function xoabanbe($cookie,$id,$useragent){
  563. $ch = curl_init();
  564. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/profile.php?id='.$id);
  565. $head[] = "Connection: keep-alive";
  566. $head[] = "Keep-Alive: 300";
  567. $head[] = "authority: m.facebook.com";
  568. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  569. $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";
  570. $head[] = "cache-control: max-age=0";
  571. $head[] = "upgrade-insecure-requests: 1";
  572. $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";
  573. $head[] = "sec-fetch-site: none";
  574. $head[] = "sec-fetch-mode: navigate";
  575. $head[] = "sec-fetch-user: ?1";
  576. $head[] = "sec-fetch-dest: document";
  577. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  578. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  579. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  580. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  581. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  582. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  583. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  584. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  585. curl_setopt($ch, CURLOPT_ENCODING,'');
  586. $list = curl_exec($ch);
  587. $data1 = explode('" autocomplete=',explode('name="fb_dtsg" value="',$list)[1])[0];
  588. $data2= explode('" autocomplete=',explode('name="jazoest" value="',$list)[1])[0];
  589. $data = http_build_query(array('fb_dtsg'=>$data1,'jazoest'=>$data2,'friend_id'=>$id ,'unref'=>'profile_gear','confirm'=>'Xác nhận'));
  590. $head[] = 'content-length: '.strlen($data);
  591. $head[] = 'refer: https://mbasic.facebook.com/removefriend.php?friend_id='.$id.'&unref=profile_gear&refid=17';
  592. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/a/removefriend.php');
  593. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  594. curl_setopt($ch, CURLOPT_POST, 1);
  595. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  596. $h = curl_exec($ch);
  597. curl_close($ch);
  598. }
  599. function cookie($cookie,$useragent){
  600. $ch = curl_init();
  601. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  602. $head[] = "Connection: keep-alive";
  603. $head[] = "Keep-Alive: 300";
  604. $head[] = "authority: m.facebook.com";
  605. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  606. $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";
  607. $head[] = "cache-control: max-age=0";
  608. $head[] = "upgrade-insecure-requests: 1";
  609. $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";
  610. $head[] = "sec-fetch-site: none";
  611. $head[] = "sec-fetch-mode: navigate";
  612. $head[] = "sec-fetch-user: ?1";
  613. $head[] = "sec-fetch-dest: document";
  614. curl_setopt($ch, CURLOPT_USERAGENT,$useragent );
  615. curl_setopt($ch, CURLOPT_ENCODING, '');
  616. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  617. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  618. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  619. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  620. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  621. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  622. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  623. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  624. $access = curl_exec($ch);
  625. curl_close($ch);
  626. return $access;
  627. }
  628. function gettt($cookie,$useragent){
  629. $ch = curl_init();
  630. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/home.php');
  631. $head[] = "Connection: keep-alive";
  632. $head[] = "Keep-Alive: 300";
  633. $head[] = "authority: m.facebook.com";
  634. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  635. $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";
  636. $head[] = "cache-control: max-age=0";
  637. $head[] = "upgrade-insecure-requests: 1";
  638. $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";
  639. $head[] = "sec-fetch-site: none";
  640. $head[] = "sec-fetch-mode: navigate";
  641. $head[] = "sec-fetch-user: ?1";
  642. $head[] = "sec-fetch-dest: document";
  643. 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');
  644. curl_setopt($ch, CURLOPT_ENCODING, '');
  645. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  646. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  647. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  648. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  649. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  650. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  651. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  652. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  653. $n = curl_exec($ch);
  654. $lin = explode('">Thích</a><span',explode('a/like.php?', $n)[1])[0];
  655. $link = str_replace('&amp;', '&', $lin);
  656. $url = "https://mbasic.facebook.com/a/like.php?".$link;
  657. curl_setopt($ch, CURLOPT_URL, $url);
  658. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  659. $ccc = curl_exec($ch);
  660. return explode('</title><meta',explode('head><title>',$ccc)[1])[0];
  661. curl_close($ch);
  662.  
  663. }
  664. function cmt($cookie,$msg,$id,$useragent){
  665. $ch = curl_init();
  666. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  667. $head[] = "Connection: keep-alive";
  668. $head[] = "Keep-Alive: 300";
  669. $head[] = "authority: m.facebook.com";
  670. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  671. $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";
  672. $head[] = "cache-control: max-age=0";
  673. $head[] = "upgrade-insecure-requests: 1";
  674. $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";
  675. $head[] = "sec-fetch-site: none";
  676. $head[] = "sec-fetch-mode: navigate";
  677. $head[] = "sec-fetch-user: ?1";
  678. $head[] = "sec-fetch-dest: document";
  679. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  680. curl_setopt($ch, CURLOPT_ENCODING, '');
  681. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  682. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  683. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  684. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  685. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  686. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  687. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  688. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  689. $m = curl_exec($ch);
  690. $lin = explode('">Viết bình luận...',explode('/a/comment.php?',$m)[1])[0];
  691. $link1 = explode('"><input type="',$lin)[0];
  692. $link = str_replace('&amp;', '&', $link1);
  693. $data1 = explode('" autocomplete="',explode('name="fb_dtsg" value="',$lin)[1])[0];
  694. $data2= explode('" autocomplete="',explode('name="jazoest" value="',$lin)[1])[0];
  695. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/comment.php?".$link);
  696. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  697. $dat= http_build_query(array('fb_dtsg'=> $data1, 'jazoest'=> $data2, 'comment_text'=> $msg));
  698. curl_setopt($ch, CURLOPT_POST, 1);
  699. curl_setopt($ch, CURLOPT_POSTFIELDS, $dat);
  700. $n = curl_exec($ch);
  701. curl_close($ch);
  702. return
  703. explode('</title><meta',explode('head><title>',$n)[1])[0];
  704. }
  705. function page($id,$cookie,$useragent){
  706. $ch = curl_init();
  707. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id);
  708. $head[] = "Connection: keep-alive";
  709. $head[] = "Keep-Alive: 300";
  710. $head[] = "authority: m.facebook.com";
  711. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  712. $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";
  713. $head[] = "cache-control: max-age=0";
  714. $head[] = "upgrade-insecure-requests: 1";
  715. $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";
  716. $head[] = "sec-fetch-site: none";
  717. $head[] = "sec-fetch-mode: navigate";
  718. $head[] = "sec-fetch-user: ?1";
  719. $head[] = "sec-fetch-dest: document";
  720. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  721. curl_setopt($ch, CURLOPT_ENCODING, '');
  722. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  723. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  724. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  725. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  726. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  727. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  728. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  729. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  730. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  731. :'));
  732. $page = curl_exec($ch);
  733. if (explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0]){
  734. $get = explode('&amp;refid=',explode('pageSuggestionsOnLiking=1&amp;gfid=',$page)[1])[0];
  735. $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$id.'&origin=page_profile&pageSuggestionsOnLiking=1&gfid='.$get.'&refid=17';
  736. curl_setopt($ch, CURLOPT_URL, $link);
  737. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  738. curl_exec($ch);
  739. }
  740. curl_close($ch);
  741.  
  742. }
  743. function camxuc($cookie,$id,$useragent,$type){
  744. $ch = curl_init();
  745. if(strpos($id,'_')){
  746. $uid = explode('_',$id, 2);
  747. $id2 = 'story.php?story_fbid='.$uid[1].'&id='.$uid[0];
  748. }else{
  749. $id2 = $id;
  750. }
  751. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$id2);
  752. $head[] = "Connection: keep-alive";
  753. $head[] = "Keep-Alive: 300";
  754. $head[] = "authority: m.facebook.com";
  755. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  756. $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";
  757. $head[] = "cache-control: max-age=0";
  758. $head[] = "upgrade-insecure-requests: 1";
  759. $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";
  760. $head[] = "sec-fetch-site: none";
  761. $head[] = "sec-fetch-mode: navigate";
  762. $head[] = "sec-fetch-user: ?1";
  763. $head[] = "sec-fetch-dest: document";
  764. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  765. curl_setopt($ch, CURLOPT_ENCODING, '');
  766. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  767. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  768. curl_setopt($ch, CURLOPT_HEADER,true );
  769. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  770. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  771. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  772. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  773. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  774. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  775. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
  776. :'));
  777. $page = curl_exec($ch);
  778. if (preg_match('~Location: (.*)~i', $result, $match)) {
  779. $location = trim($match[1]);
  780. $link = 'https://mbasic.facebook.com'.explode('facebook.com',$location)[1];
  781. return array('link' => $link);
  782. }else{
  783. if ($id2 != $id && explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0]){
  784. $get = explode('&amp;origin_uri=',explode('amp;ft_id=',$page,2)[1],2)[0];
  785. }else{
  786. $get = $id2;
  787. }
  788. $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$get;
  789. curl_setopt($ch, CURLOPT_URL, $link);
  790. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  791. $cx = curl_exec($ch);
  792. $HAHA = explode('<a href="',$cx);
  793. if ($type == 'LOVE'){
  794. $haha2 = explode('" style="display:block"',$haha[2])[0];
  795. }else if ($type == 'WOW '){
  796. $haha2 = explode('" style="display:block"',$haha[5])[0];
  797. }else if ($type == 'Thả Haha'){
  798. $haha2 = explode('" style="display:block"',$haha[4])[0];
  799. }else if ($type == 'SAD '){
  800. $haha2 = explode('" style="display:block"',$haha[6])[0];
  801. }else{
  802. $haha2 = explode('" style="display:block"',$haha[7])[0];
  803. }
  804. $link2 = html_entity_decode($haha2);
  805.  
  806. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com'.$link2);
  807. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  808. curl_exec($ch);
  809. curl_close($ch);
  810. }
  811. }
  812. function camxuc1($cookie,$link,$useragent,$type){
  813. $ch = curl_init();
  814. curl_setopt($ch, CURLOPT_URL, $link);
  815. $head[] = "Connection: keep-alive";
  816. $head[] = "Keep-Alive: 300";
  817. $head[] = "authority: m.facebook.com";
  818. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  819. $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";
  820. $head[] = "cache-control: max-age=0";
  821. $head[] = "upgrade-insecure-requests: 1";
  822. $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";
  823. $head[] = "sec-fetch-site: none";
  824. $head[] = "sec-fetch-mode: navigate";
  825. $head[] = "sec-fetch-user: ?1";
  826. $head[] = "sec-fetch-dest: document";
  827. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  828. curl_setopt($ch, CURLOPT_ENCODING, '');
  829. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  830. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  831. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  832. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  833. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  834. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  835. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  836. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  837. $m = curl_exec($ch);
  838. if ($type == 'LIKE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=1',$m)[1])[0];
  839. $link4 = '&amp;reaction_type=1'.$link2;
  840. }
  841. if ($type == 'THUONG'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=16',$m)[1])[0];
  842. $link4 = '&amp;reaction_type=16'.$link2;
  843. }
  844. if ($type == 'LOVE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=2',$m)[1])[0];
  845. $link4 = '&amp;reaction_type=2'.$link2;
  846. }
  847. if ($type == 'WOW' ){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=3',$m)[1])[0];
  848. $link4 = '&amp;reaction_type=3'.$link2;
  849. }
  850. if ($type == 'Thả Haha'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=4',$m)[1])[0];
  851. $link4 = '&amp;reaction_type=4'.$link2;
  852. }
  853. if ($type == 'SAD'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=7',$m)[1])[0];
  854. $link4 = '&amp;reaction_type=7'.$link2;
  855. }
  856. if ($type == ''){$link2= explode('" style="display:block"',explode('&amp;reaction_type=8')[1])[0];
  857. $link4 = '&amp;reaction_type=8'.$link2;
  858. }
  859. $link3 = explode('&amp;reaction_type=',explode('<a href="/ufi/reaction/?',$m)[1])[0];
  860. $link5 = str_replace('&amp;', '&', $link3.$link4);
  861. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?".$link5);
  862. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  863. $n = curl_exec($ch);
  864. curl_close($ch);
  865. return
  866. explode('</title><meta',explode('head><title>',$n)[1])[0];
  867. }
  868. function datnicktds($user,$idfb){
  869. $ch=curl_init();
  870. curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
  871. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/api_dat.php?user='.$user.'&idfb='.$idfb);
  872. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  873. 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");
  874. $h = curl_exec($ch);
  875. return json_decode($h);
  876. }
  877. function nhantientds($loai,$id){
  878. $ch=curl_init();
  879. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantien'.$loai.'.php');
  880. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  881. $tdsxu=array('id' => $id);
  882. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  883. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  884. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  885. $xu=curl_exec($ch);
  886. curl_close($ch);
  887. return $xu;
  888. }
  889. function nhantiencxtds($loai,$id){
  890. $ch=curl_init();
  891. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantiencx.php');
  892. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  893. $tdsxu=array('id' => $id, 'loaicx' => $loai);
  894. curl_setopt($ch, CURLOPT_POST,count($tdsxu));
  895. curl_setopt($ch, CURLOPT_POSTFIELDS,$tdsxu);
  896. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  897. $xu=curl_exec($ch);
  898. curl_close($ch);
  899. return $xu;
  900. }
  901. function getcookietds($user,$pass){
  902. $ch=curl_init();
  903. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  904. curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php');
  905. curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt");
  906. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  907. $login =array('username' => $user,'password' => $pass,'submit' => ' ĐĂNG NHẬP');
  908. curl_setopt($ch, CURLOPT_POST,count($login));
  909. curl_setopt($ch, CURLOPT_POSTFIELDS,$login);
  910. curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt");
  911. $source=curl_exec($ch);
  912. curl_close($ch);
  913. return $source;
  914. }
  915. function getnvtds($loai,$user){
  916. $ch = curl_init();
  917. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  918. curl_setopt($ch,CURLOPT_URL,'https://traodoisub.com/scr/api_job.php?chucnang='.$loai.'&user='.$user);
  919. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  920. 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");
  921. $list = curl_exec($ch);
  922. curl_close($ch);
  923. return json_decode($list);
  924. }
  925. function followtoken($access_token,$id,$useragent){
  926. $ch=curl_init();
  927. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/subscribers');
  928. $head[] = "Connection: keep-alive";
  929. $head[] = "Keep-Alive: 300";
  930. $head[] = "authority: m.facebook.com";
  931. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  932. $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";
  933. $head[] = "cache-control: max-age=0";
  934. $head[] = "upgrade-insecure-requests: 1";
  935. $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";
  936. $head[] = "sec-fetch-site: none";
  937. $head[] = "sec-fetch-mode: navigate";
  938. $head[] = "sec-fetch-user: ?1";
  939. $head[] = "sec-fetch-dest: document";
  940. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  941. curl_setopt($ch, CURLOPT_ENCODING, '');
  942. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  943. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  944. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  945. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  946. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  947. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  948. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  949. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  950. $data = array('access_token' => $access_token);
  951. curl_setopt($ch, CURLOPT_POST,count($data));
  952. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  953. $access = curl_exec($ch);
  954. curl_close($ch);
  955. return json_decode($access);
  956. }
  957. function liketoken($access_token,$id,$useragent){
  958. $ch=curl_init();
  959. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/likes');
  960. $head[] = "Connection: keep-alive";
  961. $head[] = "Keep-Alive: 300";
  962. $head[] = "authority: m.facebook.com";
  963. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  964. $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";
  965. $head[] = "cache-control: max-age=0";
  966. $head[] = "upgrade-insecure-requests: 1";
  967. $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";
  968. $head[] = "sec-fetch-site: none";
  969. $head[] = "sec-fetch-mode: navigate";
  970. $head[] = "sec-fetch-user: ?1";
  971. $head[] = "sec-fetch-dest: document";
  972. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  973. curl_setopt($ch, CURLOPT_ENCODING, '');
  974. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  975. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  976. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  977. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  978. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  979. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  980. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  981. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  982. $data = array('access_token' => $access_token);
  983. curl_setopt($ch, CURLOPT_POST,count($data));
  984. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  985. $access = curl_exec($ch);
  986. curl_close($ch);
  987. return json_decode($access);
  988. }
  989. function cmttoken($access_token,$id,$msg,$useragent){
  990. $ch=curl_init();
  991. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
  992. $head[] = "Connection: keep-alive";
  993. $head[] = "Keep-Alive: 300";
  994. $head[] = "authority: m.facebook.com";
  995. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  996. $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";
  997. $head[] = "cache-control: max-age=0";
  998. $head[] = "upgrade-insecure-requests: 1";
  999. $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";
  1000. $head[] = "sec-fetch-site: none";
  1001. $head[] = "sec-fetch-mode: navigate";
  1002. $head[] = "sec-fetch-user: ?1";
  1003. $head[] = "sec-fetch-dest: document";
  1004. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  1005. curl_setopt($ch, CURLOPT_ENCODING, '');
  1006. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1007. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1008. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1009. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1010. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1011. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1012. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1013. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  1014. $data = array('message' => $msg,'access_token' => $access_token);
  1015. curl_setopt($ch, CURLOPT_POST,count($data));
  1016. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  1017. $access = curl_exec($ch);
  1018. curl_close($ch);
  1019. return json_decode($access);
  1020. }
  1021. function gethome($cookie,$useragent){
  1022. $ch = curl_init();
  1023. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/home.php');
  1024. $head[] = "Connection: keep-alive";
  1025. $head[] = "Keep-Alive: 300";
  1026. $head[] = "authority: m.facebook.com";
  1027. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1028. $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";
  1029. $head[] = "cache-control: max-age=0";
  1030. $head[] = "upgrade-insecure-requests: 1";
  1031. $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";
  1032. $head[] = "sec-fetch-site: none";
  1033. $head[] = "sec-fetch-mode: navigate";
  1034. $head[] = "sec-fetch-user: ?1";
  1035. $head[] = "sec-fetch-dest: document";
  1036. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  1037. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  1038. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  1039. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  1040. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  1041. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  1042. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  1043. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  1044. curl_setopt($ch, CURLOPT_ENCODING,'');
  1045. return curl_exec($ch);
  1046. curl_close($ch);
  1047. }
  1048. function camxuctuongtac($cookie,$link,$useragent,$type){
  1049. $ch = curl_init();
  1050. curl_setopt($ch, CURLOPT_URL, $link);
  1051. $head[] = "Connection: keep-alive";
  1052. $head[] = "Keep-Alive: 300";
  1053. $head[] = "authority: m.facebook.com";
  1054. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1055. $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";
  1056. $head[] = "cache-control: max-age=0";
  1057. $head[] = "upgrade-insecure-requests: 1";
  1058. $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";
  1059. $head[] = "sec-fetch-site: none";
  1060. $head[] = "sec-fetch-mode: navigate";
  1061. $head[] = "sec-fetch-user: ?1";
  1062. $head[] = "sec-fetch-dest: document";
  1063. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  1064. curl_setopt($ch, CURLOPT_ENCODING, '');
  1065. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  1066. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  1067. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1068. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  1069. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  1070. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  1071. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  1072. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  1073. $m = curl_exec($ch);
  1074. if ($type == 'LIKE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=1',$m)[1])[0];
  1075. $link4 = '&amp;reaction_type=1'.$link2;
  1076. }
  1077. if ($type == 'THUONG'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=16',$m)[1])[0];
  1078. $link4 = '&amp;reaction_type=16'.$link2;
  1079. }
  1080. if ($type == 'LOVE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=2',$m)[1])[0];
  1081. $link4 = '&amp;reaction_type=2'.$link2;
  1082. }
  1083. if ($type == 'WOW' ){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=3',$m)[1])[0];
  1084. $link4 = '&amp;reaction_type=3'.$link2;
  1085. }
  1086. if ($type == 'HAHA'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=4',$m)[1])[0];
  1087. $link4 = '&amp;reaction_type=4'.$link2;
  1088. }
  1089. if ($type == 'SAD'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=7',$m)[1])[0];
  1090. $link4 = '&amp;reaction_type=7'.$link2;
  1091. }
  1092. if ($type == ''){$link2= explode('" style="display:block"',explode('&amp;reaction_type=8')[1])[0];
  1093. $link4 = '&amp;reaction_type=8'.$link2;
  1094. }
  1095. $link3 = explode('&amp;reaction_type=',explode('<a href="/ufi/reaction/?',$m)[1])[0];
  1096. $link5 = str_replace('&amp;', '&', $link3.$link4);
  1097. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?".$link5);
  1098. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1099. $n = curl_exec($ch);
  1100. curl_close($ch);
  1101. return
  1102. explode('</title><meta',explode('head><title>',$n)[1])[0];}
  1103. function gettiephome($cookie,$linktiep,$useragent){
  1104. $ch = curl_init();
  1105. curl_setopt($ch, CURLOPT_URL,$linktiep);
  1106. $head[] = "Connection: keep-alive";
  1107. $head[] = "Keep-Alive: 300";
  1108. $head[] = "authority: m.facebook.com";
  1109. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1110. $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";
  1111. $head[] = "cache-control: max-age=0";
  1112. $head[] = "upgrade-insecure-requests: 1";
  1113. $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";
  1114. $head[] = "sec-fetch-site: none";
  1115. $head[] = "sec-fetch-mode: navigate";
  1116. $head[] = "sec-fetch-user: ?1";
  1117. $head[] = "sec-fetch-dest: document";
  1118. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  1119. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  1120. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  1121. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  1122. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  1123. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  1124. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  1125. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  1126. curl_setopt($ch, CURLOPT_ENCODING,'');
  1127. return curl_exec($ch);
  1128. curl_close($ch);
  1129. }
  1130. function thembanbe($cookie,$url,$useragent){
  1131. $ch = curl_init();
  1132. 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');
  1133. $head[] = "Connection: keep-alive";
  1134. $head[] = "Keep-Alive: 300";
  1135. $head[] = "authority: m.facebook.com";
  1136. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  1137. $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";
  1138. $head[] = "cache-control: max-age=0";
  1139. $head[] = "upgrade-insecure-requests: 1";
  1140. $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";
  1141. $head[] = "sec-fetch-site: none";
  1142. $head[] = "sec-fetch-mode: navigate";
  1143. $head[] = "sec-fetch-user: ?1";
  1144. $head[] = "sec-fetch-dest: document";
  1145. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  1146. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  1147. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  1148. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  1149. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  1150. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  1151. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  1152. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  1153. curl_setopt($ch, CURLOPT_ENCODING,'');
  1154. $list = curl_exec($ch);
  1155. $link = explode('" class="',explode('/a/mobile/friends/add_friend.php?',$list)[1])[0];
  1156. $link2 = 'https://mbasic.facebook.com/a/mobile/friends/add_friend.php?'.str_replace('&amp;','&',$link);
  1157. curl_setopt($ch, CURLOPT_URL, $link2);
  1158. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1159. curl_exec($ch);
  1160. curl_close($ch);
  1161. return explode('&hf',explode('id=',$link2)[1])[0];
  1162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement