Advertisement
Vngosu7

Untitled

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