Advertisement
Vngosu7

Untitled

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