Advertisement
Vngosu7

Untitled

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