Advertisement
Vngosu7

Untitled

Jul 14th, 2021
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.36 KB | None | 0 0
  1. error_reporting(0);
  2. session_start();
  3. $end="\033[0m";
  4. $whiteb="\033[1;37m";
  5. $ress = "\033[0;32m";
  6. $res = "\033[0;33m";
  7. $red = "\033[0;31m";
  8. $green = "\033[0;37m";
  9. $yellow = "\033[0;33m";
  10. $white = "\033[0;33m";
  11. $xnhac = "\033[1;96m";
  12. $den = "\033[1;90m";
  13. $do = "\033[1;91m";
  14. $luc = "\033[1;92m";
  15. $vang = "\033[1;93m";
  16. $xduong = "\033[1;94m";
  17. $hong = "\033[1;95m";
  18. $trang = "\033[1;97m";
  19. $nenden = "\033[40m";
  20. $xanhd = "\033[0;36m";
  21. $nendo = "\033[41m";
  22. $nenxanh = "\033[42m";
  23. $nenvang = "\033[43m";
  24. $nenblue = "\033[44m";
  25. $nenPurpe = "\033[45m";
  26. $nenCyan = "\033[46m";
  27. $nentrang = "\033[47m";
  28. $UGreen = "\033[4;32m";
  29. $BGreen = "\033[1;32m";
  30. $BBlack="\033[1;30m" ;
  31. $BRed="\033[1;31m" ;
  32. $BGreen="\033[1;32m" ;
  33. $BYellow="\033[1;33m" ;
  34. $BBlue="\033[1;34m" ;
  35. $BBlack="\033[1;30m" ;
  36. $BRed="\033[1;31m" ;
  37. $BGreen="\033[1;32m" ;
  38. $BYellow="\033[1;33m" ;
  39. $BBlue="\033[1;34m" ;
  40. $BPurple="\033[1;35m" ;
  41. $BCyan="\033[1;36m" ;
  42. $BWhite="\033[1;37m" ;
  43. $Blue="\033[0;34m";
  44. $res="\033[0m";
  45. $red="\033[1;31m";
  46. $xanh="\033[1;32m";
  47. $cyan="\033[1;36m";
  48. $yellow="\033[1;33m";
  49. $turquoise="\033[1;34m";
  50. {
  51. @system('clear');
  52. while(true){
  53. @system('clear');
  54. echo $vang."\n";
  55.  
  56. $t=
  57. $hong."\033[1; _ ___ __ ___________ _____ _____ _ __ ___________ ";
  58. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  59. usleep(2000);
  60. }
  61. echo $xduong."\n";
  62. $t=
  63. $trang."\033[1; | | | \ \ / / |_ _| ___ \_ _/ __ \| | / /| ___| ___ \ ";
  64. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  65. usleep(2000);
  66. }
  67. echo $xnhac."\n";
  68. $t=
  69. $trang."\033[1; | | | |\ V / | | | |_/ / | | | / \/| |/ / | |__ | |_/ / ";
  70. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  71. usleep(2000);
  72. }
  73. echo $hong."\n";
  74. $t=
  75. $trang."\033[1; | | | | \ / | | | / | | | | | \ | __|| / ";
  76. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  77. usleep(2000);
  78. }
  79. echo $do."\n";
  80. $t=
  81. $trang."\033[1; | |_| | | | | | | |\ \ _| |_| \__/\| |\ \| |___| |\ \ ";
  82. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  83. usleep(2000);
  84. }
  85. echo $luc."\n";
  86. $t=
  87. $trang."\033[1; \___/ \_/ \_/ \_| \_|\___/ \____/\_| \_/\____/\_| \_| ";
  88.  
  89. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  90. usleep(2000);
  91.  
  92. }
  93. echo $do."\n";
  94.  
  95. $t="\033[1; \033[47m TOOLS \033[0m\n";
  96.  
  97. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  98. usleep(20000);
  99. }
  100.  
  101.  
  102. echo $vang."=====================================================\n";
  103. echo $do." [".$luc."Bản Quyền".$do."] ";usleep(200000);echo $vang."Uy Tricker ";
  104. echo $do." [".$luc."ZaLo".$do."]";usleep(300000);
  105. echo $vang." 037.553.0461";
  106. echo "\n";
  107. echo " ".$do."[".$luc."Ví MoMo".$do."]";usleep(300000);echo $vang." 037.553.0461";
  108. echo "\n";
  109. echo $vang."=====================================================\n";
  110.  
  111.  
  112. echo $do."[".$luc."●".$do."] ".$trang."=> ".$xnhac."Nhập Cookie FB Cần Tương Tác: $vang";
  113. $cookie=trim(fgets(STDIN));
  114. $useragent = "Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36";
  115.  
  116. $access = cookie($cookie,$useragent);
  117. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0]){
  118. $access_token=explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0];
  119. $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
  120. echo $BYellow." Cookie chính xác !!! \n";break;
  121. }else{ exit($BRed." Cookie Die Hoặc SaiI!!! \n");}
  122. }
  123. while(true){
  124. @system('clear');
  125. unset($so); unset($_SESSION['giaay']);unset($nhap);
  126. unset($nguoi); unset($so1); unset($dem);
  127. echo $vang."\n";
  128.  
  129. $t=
  130. $hong."\033[1; _ ___ __ ___________ _____ _____ _ __ ___________ ";
  131. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  132. usleep(2000);
  133. }
  134. echo $xduong."\n";
  135. $t=
  136. $trang."\033[1; | | | \ \ / / |_ _| ___ \_ _/ __ \| | / /| ___| ___ \ ";
  137. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  138. usleep(2000);
  139. }
  140. echo $xnhac."\n";
  141. $t=
  142. $trang."\033[1; | | | |\ V / | | | |_/ / | | | / \/| |/ / | |__ | |_/ / ";
  143. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  144. usleep(2000);
  145. }
  146. echo $hong."\n";
  147. $t=
  148. $trang."\033[1; | | | | \ / | | | / | | | | | \ | __|| / ";
  149. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  150. usleep(2000);
  151. }
  152. echo $do."\n";
  153. $t=
  154. $trang."\033[1; | |_| | | | | | | |\ \ _| |_| \__/\| |\ \| |___| |\ \ ";
  155. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  156. usleep(2000);
  157. }
  158. echo $luc."\n";
  159. $t=
  160. $trang."\033[1; \___/ \_/ \_/ \_| \_|\___/ \____/\_| \_/\____/\_| \_| ";
  161.  
  162. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  163. usleep(2000);
  164.  
  165. }
  166. echo $do."\n";
  167.  
  168. $t="\033[1; \033[47m TOOLS \033[0m\n";
  169.  
  170. for($i=11;$i<(strlen($t)+1);$i++){echo $t[$i];
  171. usleep(20000);
  172. }
  173.  
  174.  
  175. echo $vang."=====================================================\n";
  176. echo $do." [".$luc."Bản Quyền".$do."] ";usleep(200000);echo $vang."Uy Tricker ";
  177. echo $do." [".$luc."ZaLo".$do."]";usleep(300000);
  178. echo $vang." 037.553.0461";
  179. echo "\n";
  180. echo " ".$do."[".$luc."Ví MoMo".$do."]";usleep(300000);echo $vang." 037.553.0461";
  181. echo "\n";
  182. echo $vang."=====================================================\n";
  183.  
  184.  
  185. $typ =[];
  186. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."1".$do."]".$luc."Tương Tác Thương Thương\n".$end;
  187. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."2".$do."]".$luc." Tương Tác Like\n".$end;
  188. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."3".$do."]".$luc." Tương Tác HaHa\n".$end;
  189. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."4".$do."]".$luc." Tương Tác Phẫn Nộ\n".$end;
  190. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."5".$do."]".$luc." Tương Tác WoW\n".$end;
  191. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."6".$do."]".$luc." Tương Tác Buồn\n".$end;
  192. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."7".$do."]".$luc." Tương Tác Tim\n".$end;
  193. echo $do." [".$luc."✔".$do."] ".$trang."=> ".$luc." Nhập ".$do."[".$vang."1+2+3+4+5+6+7".$do."]".$luc." Tương Tác ALL\n".$end;
  194. echo "\e[1;95m┌─[\e[1;37m\e[1;42mVui Lòng Chọn\e[0m\e[1;95m]
  195. └──╼ \e[1;39mU\e[1;36mT\e[1;91mK : $vang ";
  196. $nhap = trim(fgets(STDIN))."8";
  197. if (strlen(strstr($nhap ,'1')) > 0){array_push($typ,'THUONG');}
  198. if (strlen(strstr($nhap ,'2')) > 0){array_push($typ, 'LIKE');}
  199. if (strlen(strstr($nhap ,'3')) > 0){array_push($typ,'HAHA');}
  200. if (strlen(strstr($nhap ,'4')) > 0){array_push($typ, 'PHANNO');}
  201. if (strlen(strstr($nhap ,'5')) > 0){array_push($typ, 'WOW');}
  202. if (strlen(strstr($nhap ,'6')) > 0){array_push($typ, 'BUON');}
  203. if (strlen(strstr($nhap ,'7')) > 0){array_push($typ, 'LOVE');}
  204. if (count($typ) == 0){exit($BRed."Chọn Ít Nhất 1 Nhiệm Vụ!");}
  205. echo "\e[1;95m┌─[\e[1;37m\e[1;42mNhập Time Delay Tương Tác\e[0m\e[1;95m]
  206. └──╼ \e[1;39mU\e[1;36mT\e[1;91mK : $vang ";
  207. $_SESSION['giaay']=trim(fgets(STDIN));
  208. echo "\e[1;95m┌─[\e[1;37m\e[1;42mBạn Muốn Bật Tương Tác Comments?\e\033[41m y/n \033[0m\033[1;91m]\e[1;95m
  209. └──╼ \e[1;39mU\e[1;36mT\e[1;91mK : $vang ";
  210. $cmt=trim(fgets(STDIN));
  211. if($cmt == 'Y' or$cmt == 'y'){
  212. echo "\033[1;37m~\033[1;31m[\033[1;32m●\033[1;31m]$white =>$BGreen Nhập Nội Dung Cmt: \033[1;36m";
  213. $noidung=trim(fgets(STDIN));
  214. echo "\e[1;95m┌─[\e[1;37m\e[1;42mSau Bao Tương Tác Thì CMT\e[0m\e[1;95m]
  215. └──╼ \e[1;39mU\e[1;36mT\e[1;91mK : $vang ";
  216. $dem=trim(fgets(STDIN));
  217. } else {
  218. exit("\033[1;37m~\033[1;31m Lựa Chọn Không Xác Định\n");
  219. }
  220. echo $vang."=====================================================\n";
  221. $list = gethome($cookie,$useragent);
  222. $so = 1;$ran = rand(10,20);
  223. while(true){$i=1; $i++;
  224. $link2 = explode('">Bày tỏ cảm xúc',explode('/reactions/picker/?',$list)[1])[0];
  225. $url = 'https://mbasic.facebook.com/reactions/picker/?'.str_replace('&amp;','&',$link2);
  226. sleep(4);
  227.  
  228. $type = $typ[array_rand($typ,1)];
  229. $mess = camxuctuongtac($cookie,$url,$useragent,$type);
  230. $id = explode('&origin_uri',explode('?ft_id=',$url)[1])[0];
  231. if(empty($id)){
  232. $access = cookie($cookie,$useragent);
  233. if (explode('\",\"useLocalFilePreview',explode('accessToken\":\"', $access)[1])[0]){
  234. sleep(1);
  235. }else{ echo $BRed." Cookie die rồi nhập lại cookie: ";
  236. $cookie= trim(fgets(STDIN));
  237. }
  238. }
  239. echo $BYellow."[".$BRed.$so++.$BYellow."]".$BGreen." Đã Thả ".$BYellow.$type.$BGreen." Vào Bài Viết ".$BCyan.$id." \n";$o++;$c++;$ct++;
  240. if (($cmt == 'Y' or $cmt == 'y')and $ct == $dem){
  241. $msge = explode('|',$noidung);
  242. $msg = $msge[array_rand($msge,1)];
  243. $g = cmttoken($access_token,$id,$msg,$useragent);
  244. echo $BYellow."[".$BRed.$so++.$BYellow."]".$BGreen." Đã Comments ID ".$BYellow.$id.$BGreen."\n ➜ Với Nội Dung: ".$white.$msg." \n";$ct =0;
  245. }
  246. for ($giay=$_SESSION['giaay'];$giay>-1;$giay--){
  247. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy T \033[1;91m |\033[1;93m $x\033[1;91m | ";
  248. usleep(150000);
  249.  
  250. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tr \033[0;31m |\033[0;33m $x\033[0;31m | ";
  251. usleep(150000);
  252. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tri \033[0;31m |\033[0;33m $x\033[0;31m | ";
  253. usleep(150000);
  254. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tric .\033[0;31m |\033[0;33m $x\033[0;31m | ";
  255. usleep(150000);
  256. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Trick... \033[0;31m |\033[0;33m $x\033[0;31m | ";
  257. usleep(150000);
  258. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉 \033[0;37m Uy Tricke.... \033[0;31m |\033[0;33m $x\033[0;31m | ";
  259. usleep(150000);
  260. echo "\r\033[1;91m•Đợi Uy Xíu Nhé (+_+)\033[0;33m 👉\033[0;37m Uy Tricker.....\033[0;31m |\033[0;33m $x\033[0;31m | ";
  261. usleep(100000);
  262. echo "\r \r";}
  263. if($o == 1){
  264. $linktap = explode('" class="',explode('/stories.php?',$list)[1])[0];
  265. $chuyentap = 'https://mbasic.facebook.com/stories.php?'.str_replace('&amp;','&',$linktap);
  266. $list = gettiephome($cookie,$chuyentap,$useragent);
  267. $i = 0; $o = 0;
  268. }
  269. if ($c == $ran){
  270. $id = thembanbe($cookie,$url,$useragent);
  271. echo $BCyan."[".$BCyan.$so++.$BCyan."]".$BGreen." Đã thêm bạn bè ".$BYellow.$id.$BGreen." Để tăng bạn bè "." \n";$c = 0;
  272. }
  273. if ($gio == date('H')and($hen == 'y' or $hen == 'Y')){
  274. echo $BRed." Vui Lòng Chờ \n";
  275. sleep(1);
  276. $gio = date('H') + $gioo;
  277. echo $BYellow." Bây giờ là: ".$Blue.date(' H : i')." \n";
  278. }
  279. }
  280.  
  281. }
  282. }
  283. function getbaiviet($cookie,$access_token,$useragent,$idfb){
  284. $ch=curl_init();
  285. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idfb.'/posts?limit=1000&fields=id,name&access_token='.$access_token);
  286. $head[] = "Connection: keep-alive";
  287. $head[] = "Keep-Alive: 300";
  288. $head[] = "authority: m.facebook.com";
  289. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  290. $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";
  291. $head[] = "cache-control: max-age=0";
  292. $head[] = "upgrade-insecure-requests: 1";
  293. $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";
  294. $head[] = "sec-fetch-site: none";
  295. $head[] = "sec-fetch-mode: navigate";
  296. $head[] = "sec-fetch-user: ?1";
  297. $head[] = "sec-fetch-dest: document";
  298. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  299. curl_setopt($ch, CURLOPT_ENCODING, '');
  300. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  301. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  302. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  303. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  304. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  305. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  306. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  307. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  308. $access = curl_exec($ch);
  309. curl_close($ch);
  310. return json_decode($access);
  311. }
  312. function demlike($cookie,$access_token,$idpost,$useragent){
  313. $ch=curl_init();
  314. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v1.0/'.$idpost.'/likes?access_token='.$access_token.'&pretty=1&limit=5000');
  315. $head[] = "Connection: keep-alive";
  316. $head[] = "Keep-Alive: 300";
  317. $head[] = "authority: m.facebook.com";
  318. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  319. $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";
  320. $head[] = "cache-control: max-age=0";
  321. $head[] = "upgrade-insecure-requests: 1";
  322. $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";
  323. $head[] = "sec-fetch-site: none";
  324. $head[] = "sec-fetch-mode: navigate";
  325. $head[] = "sec-fetch-user: ?1";
  326. $head[] = "sec-fetch-dest: document";
  327. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  328. curl_setopt($ch, CURLOPT_ENCODING, '');
  329. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  330. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  331. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  332. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  333. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  334. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  335. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  336. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  337. $access = curl_exec($ch);
  338. curl_close($ch);
  339. return json_decode($access);
  340. }
  341. function getbanbe($access_token,$useragent){
  342. $ch = curl_init();
  343. curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/me/friends/?access_token='.$access_token);
  344. $head[] = "Connection: keep-alive";
  345. $head[] = "Keep-Alive: 300";
  346. $head[] = "authority: m.facebook.com";
  347. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  348. $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";
  349. $head[] = "cache-control: max-age=0";
  350. $head[] = "upgrade-insecure-requests: 1";
  351. $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";
  352. $head[] = "sec-fetch-site: none";
  353. $head[] = "sec-fetch-mode: navigate";
  354. $head[] = "sec-fetch-user: ?1";
  355. $head[] = "sec-fetch-dest: document";
  356. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  357. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  358. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  359. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  360. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  361. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  362. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  363. curl_setopt($ch, CURLOPT_ENCODING,'');
  364. return json_decode(curl_exec($ch));
  365. curl_close($ch);
  366. }
  367. function xoabanbe($cookie,$id,$useragent){
  368. $ch = curl_init();
  369. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/profile.php?id='.$id);
  370. $head[] = "Connection: keep-alive";
  371. $head[] = "Keep-Alive: 300";
  372. $head[] = "authority: m.facebook.com";
  373. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  374. $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";
  375. $head[] = "cache-control: max-age=0";
  376. $head[] = "upgrade-insecure-requests: 1";
  377. $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";
  378. $head[] = "sec-fetch-site: none";
  379. $head[] = "sec-fetch-mode: navigate";
  380. $head[] = "sec-fetch-user: ?1";
  381. $head[] = "sec-fetch-dest: document";
  382. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  383. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  384. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  385. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  386. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  387. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  388. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  389. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  390. curl_setopt($ch, CURLOPT_ENCODING,'');
  391. $list = curl_exec($ch);
  392. $data1 = explode('" autocomplete=',explode('name="fb_dtsg" value="',$list)[1])[0];
  393. $data2= explode('" autocomplete=',explode('name="jazoest" value="',$list)[1])[0];
  394. $data = http_build_query(array('fb_dtsg'=>$data1,'jazoest'=>$data2,'friend_id'=>$id ,'unref'=>'profile_gear','confirm'=>'Xác nhận'));
  395. $head[] = 'content-length: '.strlen($data);
  396. $head[] = 'refer: https://mbasic.facebook.com/removefriend.php?friend_id='.$id.'&unref=profile_gear&refid=17';
  397. curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/a/removefriend.php');
  398. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  399. curl_setopt($ch, CURLOPT_POST, 1);
  400. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  401. $h = curl_exec($ch);
  402. curl_close($ch);
  403. }
  404. function gettiephome($cookie,$linktiep,$useragent){
  405. $ch = curl_init();
  406. curl_setopt($ch, CURLOPT_URL,$linktiep);
  407. $head[] = "Connection: keep-alive";
  408. $head[] = "Keep-Alive: 300";
  409. $head[] = "authority: m.facebook.com";
  410. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  411. $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";
  412. $head[] = "cache-control: max-age=0";
  413. $head[] = "upgrade-insecure-requests: 1";
  414. $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";
  415. $head[] = "sec-fetch-site: none";
  416. $head[] = "sec-fetch-mode: navigate";
  417. $head[] = "sec-fetch-user: ?1";
  418. $head[] = "sec-fetch-dest: document";
  419. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  420. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  421. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  422. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  423. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  424. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  425. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  426. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  427. curl_setopt($ch, CURLOPT_ENCODING,'');
  428. return curl_exec($ch);
  429. curl_close($ch);
  430. }
  431. function camxuctuongtac($cookie,$link,$useragent,$type){
  432. $ch = curl_init();
  433. curl_setopt($ch, CURLOPT_URL, $link);
  434. $head[] = "Connection: keep-alive";
  435. $head[] = "Keep-Alive: 300";
  436. $head[] = "authority: m.facebook.com";
  437. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  438. $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";
  439. $head[] = "cache-control: max-age=0";
  440. $head[] = "upgrade-insecure-requests: 1";
  441. $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";
  442. $head[] = "sec-fetch-site: none";
  443. $head[] = "sec-fetch-mode: navigate";
  444. $head[] = "sec-fetch-user: ?1";
  445. $head[] = "sec-fetch-dest: document";
  446. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  447. curl_setopt($ch, CURLOPT_ENCODING, '');
  448. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  449. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  450. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  451. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  452. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  453. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  454. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  455. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  456. $m = curl_exec($ch);
  457. if ($type == 'LIKE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=1',$m)[1])[0];
  458. $link4 = '&amp;reaction_type=1'.$link2;
  459. }
  460. if ($type == 'THUONG'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=16',$m)[1])[0];
  461. $link4 = '&amp;reaction_type=16'.$link2;
  462. }
  463. if ($type == 'LOVE'){ $link2 = explode('" style="display:block"',explode('&amp;reaction_type=2',$m)[1])[0];
  464. $link4 = '&amp;reaction_type=2'.$link2;
  465. }
  466. if ($type == 'WOW' ){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=3',$m)[1])[0];
  467. $link4 = '&amp;reaction_type=3'.$link2;
  468. }
  469. if ($type == 'HAHA'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=4',$m)[1])[0];
  470. $link4 = '&amp;reaction_type=4'.$link2;
  471. }
  472. if ($type == 'SAD'){$link2 = explode('" style="display:block"',explode('&amp;reaction_type=7',$m)[1])[0];
  473. $link4 = '&amp;reaction_type=7'.$link2;
  474. }
  475. if ($type == ''){$link2= explode('" style="display:block"',explode('&amp;reaction_type=8')[1])[0];
  476. $link4 = '&amp;reaction_type=8'.$link2;
  477. }
  478. $link3 = explode('&amp;reaction_type=',explode('<a href="/ufi/reaction/?',$m)[1])[0];
  479. $link5 = str_replace('&amp;', '&', $link3.$link4);
  480. curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?".$link5);
  481. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  482. $n = curl_exec($ch);
  483. curl_close($ch);
  484. return
  485. explode('</title><meta',explode('head><title>',$n)[1])[0];}
  486. function gethome($cookie,$useragent){
  487. $ch = curl_init();
  488. curl_setopt($ch, CURLOPT_URL,'https://mbasic.facebook.com/home.php');
  489. $head[] = "Connection: keep-alive";
  490. $head[] = "Keep-Alive: 300";
  491. $head[] = "authority: m.facebook.com";
  492. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  493. $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";
  494. $head[] = "cache-control: max-age=0";
  495. $head[] = "upgrade-insecure-requests: 1";
  496. $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";
  497. $head[] = "sec-fetch-site: none";
  498. $head[] = "sec-fetch-mode: navigate";
  499. $head[] = "sec-fetch-user: ?1";
  500. $head[] = "sec-fetch-dest: document";
  501. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  502. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  503. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  504. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  505. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  506. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  507. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  508. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  509. curl_setopt($ch, CURLOPT_ENCODING,'');
  510. return curl_exec($ch);
  511. curl_close($ch);
  512. }
  513. function cookie($cookie,$useragent){
  514. $ch = curl_init();
  515. curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed');
  516. $head[] = "Connection: keep-alive";
  517. $head[] = "Keep-Alive: 300";
  518. $head[] = "authority: m.facebook.com";
  519. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  520. $head[] = "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5";
  521. $head[] = "cache-control: max-age=0";
  522. $head[] = "upgrade-insecure-requests: 1";
  523. $head[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
  524. $head[] = "sec-fetch-site: none";
  525. $head[] = "sec-fetch-mode: navigate";
  526. $head[] = "sec-fetch-user: ?1";
  527. $head[] = "sec-fetch-dest: document";
  528. curl_setopt($ch, CURLOPT_USERAGENT,$useragent );
  529. curl_setopt($ch, CURLOPT_ENCODING, '');
  530. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  531. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  532. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  533. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  534. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  535. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  536. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  537. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  538. $access = curl_exec($ch);
  539. curl_close($ch);
  540. return $access;
  541. }
  542. function cmttoken($access_token,$id,$msg,$useragent){
  543. $ch=curl_init();
  544. curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$id.'/comments');
  545. $head[] = "Connection: keep-alive";
  546. $head[] = "Keep-Alive: 300";
  547. $head[] = "authority: m.facebook.com";
  548. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  549. $head[] = "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5";
  550. $head[] = "cache-control: max-age=0";
  551. $head[] = "upgrade-insecure-requests: 1";
  552. $head[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
  553. $head[] = "sec-fetch-site: none";
  554. $head[] = "sec-fetch-mode: navigate";
  555. $head[] = "sec-fetch-user: ?1";
  556. $head[] = "sec-fetch-dest: document";
  557. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  558. curl_setopt($ch, CURLOPT_ENCODING, '');
  559. curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  560. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  561. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  562. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  563. curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  564. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  565. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  566. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
  567. $data = array('message' => $msg,'access_token' => $access_token);
  568. curl_setopt($ch, CURLOPT_POST,count($data));
  569. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  570. $access = curl_exec($ch);
  571. curl_close($ch);
  572. return json_decode($access);
  573. }
  574. function thembanbe($cookie,$url,$useragent){
  575. $ch = curl_init();
  576. 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');
  577. $head[] = "Connection: keep-alive";
  578. $head[] = "Keep-Alive: 300";
  579. $head[] = "authority: m.facebook.com";
  580. $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  581. $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";
  582. $head[] = "cache-control: max-age=0";
  583. $head[] = "upgrade-insecure-requests: 1";
  584. $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";
  585. $head[] = "sec-fetch-site: none";
  586. $head[] = "sec-fetch-mode: navigate";
  587. $head[] = "sec-fetch-user: ?1";
  588. $head[] = "sec-fetch-dest: document";
  589. curl_setopt($ch, CURLOPT_TIMEOUT,60);
  590. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  591. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
  592. curl_setopt($ch, CURLOPT_USERAGENT,$useragent);
  593. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  594. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,TRUE);
  595. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,TRUE);
  596. curl_setopt($ch, CURLOPT_HTTPHEADER,$head);
  597. curl_setopt($ch, CURLOPT_ENCODING,'');
  598. $list = curl_exec($ch);
  599. $link = explode('" class="',explode('/a/mobile/friends/add_friend.php?',$list)[1])[0];
  600. $link2 = 'https://mbasic.facebook.com/a/mobile/friends/add_friend.php?'.str_replace('&amp;','&',$link);
  601. curl_setopt($ch, CURLOPT_URL, $link2);
  602. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  603. curl_exec($ch);
  604. curl_close($ch);
  605. return explode('&hf',explode('id=',$link2)[1])[0];
  606. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement