Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


date_default_timezone_set("Asia/Ho_Chi_Minh"); error_reporting(0); session_start(); $green = ""; $wait = $green . "Đợi"; $res = ""; $red = ""; $yellow = ""; $lightblue = ""; $bluelight = ""; $blue = ""; $purple = "\e[35m"; $end = ""; $do = ""; $luc = ""; $vang = ""; $xduong = ""; $hong = ""; $trang = ""; $BBlack = ""; $BRed = ""; $BGreen = ""; $BYellow = ""; $BBlue = ""; $BPurple = ""; $BCyan = ""; $BWhite = ""; $Blue = ""; $res = ""; $end = ""; $red = ""; $xanh = ""; $cyan = ""; $yellow = ""; $turquoise = ""; $maugi = ""; $white = ""; $red = ""; $redb = ""; $green = ""; $greenb = ""; $yellow = ""; $yellowb = ""; $syan = ""; $blue = ""; $blueb = ""; $purple = ""; $purpleb = ""; $lightblue = ""; $lightblue = ""; $lightblueb = ""; $xnhac= "\033[1;96m"; $yellow="\033[0;33m"; $do="\033[1;91m"; $input = array($d2 = "", $tmd3 = "", $tmd4 = "", $tmd5 = "", $tmd6 = "", $tmd7 = "", $tmd8 = "", $tmd9 = "", $tmd10 = "", $tmd11 = "", $tmd12 = "", $tmd13 = "", $tmd14 = "", $tmd15 = "", $tmd16 = ""); $rand_keys = array_rand($input, 10); $input = array($tmd1 = "", $tmd2 = "", $tmd3 = "", $tmd4 = "", $tmd5 = "", $tmd6 = "", $tmd7 = "", $tmd8 = "", $tmd9 = "", $tmd10 = "", $tmd11 = "", $tmd12 = "", $tmd13 = "", $tmd14 = "", $tmd15 = "", $tmd16 = ""); $rand_keys = array_rand($input, 15); $end = ""; $black = ""; $blackb = ""; $white = ""; $whiteb = ""; $red = ""; $redb = ""; $green = ""; $greenb = ""; $yellow = ""; $yellowb = ""; $syan = ""; $blue = ""; $blueb = ""; $purple = ""; $purpleb = ""; $lightblue = ""; $lightblue = ""; $lightblueb = ""; $input = array($d2 = "", $tmd3 = "", $tmd4 = "", $tmd5 = "", $tmd6 = "", $tmd7 = "", $tmd8 = "", $tmd9 = "", $tmd10 = "", $tmd11 = "", $tmd12 = "", $tmd13 = "", $tmd14 = "", $tmd15 = "", $tmd16 = ""); $rand_keys = array_rand($input, 10); $input = array($tmd1 = "", $tmd2 = "", $tmd3 = "", $tmd4 = "", $tmd5 = "", $tmd6 = "", $tmd7 = "", $tmd8 = "", $tmd9 = "", $tmd10 = "", $tmd11 = "", $tmd12 = "", $tmd13 = "", $tmd14 = "", $tmd15 = "", $tmd16 = ""); $rand_keys = array_rand($input, 15); @system('clear'); echo $banner; $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"; $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; while (true) { @system('clear'); for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;33mTool Nuôi Facebook\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mBản Quyền : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mĐược Chia Sẻ Miễn Phí Bởi : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mMua Key Hoặc Donate Tool\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;31mYoutube \033[1;94m: Phạm Đạt Official \033[1;34m\n"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mCookie FB:$blue "; $cookie = trim(fgets(STDIN)); $access = cookie($cookie, $useragent); if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access) [1]) [0]) { $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access) [1]) [0]; $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $access_token))->{'id'}; echo $BYellow . " Cookie chính xác !!! 
"; sleep(2); break; } else { exit($BRed . " Cookie Sai
"); } } while (true) { @system('clear'); echo $banner; echo $logo; unset($so); unset($_SESSION['giaay']); unset($nhap); unset($nguoi); unset($so1); unset($dem); for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;33mTool Nuôi Facebook\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mBản Quyền : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mĐược Chia Sẻ Miễn Phí Bởi : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mMua Key Hoặc Donate Tool\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;31mYoutube \033[1;94m: Phạm Đạt Official \033[1;34m\n"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo $BGreen . "~[✓]$white =>$lime [" . $BYellow . "1" . $white . "]" . $green . " Auto Tương Tác
"; echo $BGreen . "~[✓]$white =>$lime [" . $BYellow . "2" . $white . "]" . $green . " Thêm Bạn Bè Có Bạn Chung 
"; echo $BGreen . "~[✓]$white =>$lime [" . $BYellow . "3" . $white . "]" . $green . " Bão Like Cảm Xúc Nick Bạn Bè 
"; echo $BGreen . "~[✓]$white =>$lime [" . $BYellow . "4" . $white . "]" . $green . " Bỏ Follow Bạn Bè Và Like Page
"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "~[✓]$white => Chọn Chế Độ: "; $nhap = trim(fgets(STDIN)); while ($nhap == '1') { @system("clear"); echo $banner; echo $logo; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;33mTool Nuôi Facebook\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mBản Quyền : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mĐược Chia Sẻ Miễn Phí Bởi : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mMua Key Hoặc Donate Tool\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;31mYoutube \033[1;94m: Phạm Đạt Official \033[1;34m\n"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; $typ = []; echo $lime . "~[✓]$white =>$lime[1]$BGreen Thả THƯƠNG THƯƠNG 
"; echo $lime . "~[✓]$white =>$lime[2]$BGreen Thả LIKE 
"; echo $lime . "~[✓]$white =>$lime[3]$BGreen Thả Haha 
"; echo $lime . "~[✓]$white =>$lime[4]$BGreen Thả Phẫn Nộ
"; echo $lime . "~[✓]$white =>$lime[5]$BGreen Thả WOW 
"; echo $lime . "~[✓]$white =>$lime[6]$BGreen Thả Buồn
"; echo $lime . "~[✓]$white =>$lime[7]$BGreen Thả Tym
"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo $lime . "~[✓]$white =>$blue Vui Lòng Nhập chế độ: "; $nhap = trim(fgets(STDIN)) . "8"; echo $Blue . "~[✓]$white =>$blue Delay : $BGreen"; $delay = trim(fgets(STDIN)); echo "~[✓]$white =>$yellowb Bạn Muốn Bật Comment Bài Viết Không(y/n): $BWhite"; $cmt = trim(fgets(STDIN)); if ($cmt == 'y') { echo "~[✓]$white =>$BGreen Sau Bao Nhiêu Job Tương Tác Thì Cmt: $BWhite"; $dem = trim(fgets(STDIN)); echo $lime . "~[✓]$white =>$yellowb Nội Dung Comment Ghi Trong File$red spamcmt.txt
"; echo $lime . "~[✓]$white =>$BCyan Mỗi Nội Dung Cách Nhau Dấu$red |
"; } elseif ($cmt == "n") { echo ""; } else { exit("~ Chỉ Được Nhập y Hoặc n
"); } if (strlen(strstr($nhap, '1')) > 0) { array_push($typ, 'THUONG'); } if (strlen(strstr($nhap, '2')) > 0) { array_push($typ, 'LIKE'); } if (strlen(strstr($nhap, '3')) > 0) { array_push($typ, 'HAHA'); } if (strlen(strstr($nhap, '4')) > 0) { array_push($typ, 'PHANNO'); } if (strlen(strstr($nhap, '5')) > 0) { array_push($typ, 'WOW'); } if (strlen(strstr($nhap, '6')) > 0) { array_push($typ, 'BUON'); } if (strlen(strstr($nhap, '7')) > 0) { array_push($typ, 'LOVE'); } if (count($typ) == 0) { exit($BRed . "Vui lòng chọn ít nhất 1 loại NHIỆM VỤ!"); } for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; $list = gethome($cookie, $useragent); $so = 1; $ran = rand(10, 20); while (true) { $i = 1; $i++; $link2 = explode('">Bày tỏ cảm xúc', explode('/reactions/picker/?', $list) [1]) [0]; $url = 'https://mbasic.facebook.com/reactions/picker/?' . str_replace('&amp;', '&', $link2); sleep(4); $type = $typ[array_rand($typ, 1) ]; $mess = camxuctuongtac($cookie, $url, $useragent, $type); $id = explode('&origin_uri', explode('?ft_id=', $url) [1]) [0]; if (empty($id)) { $access = cookie($cookie, $useragent); if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access) [1]) [0]) { sleep(1); } else { echo $BRed . " Cookie die rồi nhập lại cookie: "; $cookie = trim(fgets(STDIN)); } } echo $BYellow . "[" . $BCyan . $so++ . $BYellow . "]" . $BGreen . " Đã thả cảm xúc " . $BYellow . $type . $BGreen . " Vào bài viết " . $BYellow . $id . " 
"; $o++; $c++; $ct++; if (($cmt == 'Y' or $cmt == 'y') and $ct == $dem) { $noidung = $nd = file_get_contents('spamcmt.txt'); $msge = explode('|', $noidung); $msg = $msge[array_rand($msge, 1) ]; $g = cmttoken($access_token, $id, $msg, $useragent); echo $BYellow . "[" . $BCyan . $so++ . $BYellow . "]" . $BGreen . " Đã Comments " . $BYellow . $id . $BGreen . " với lời nhắn " . $msg . " 
"; $ct = 0; } for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } usleep(130000); if ($o == 1) { $linktap = explode('" class="', explode('/stories.php?', $list) [1]) [0]; $chuyentap = 'https://mbasic.facebook.com/stories.php?' . str_replace('&amp;', '&', $linktap); $list = gettiephome($cookie, $chuyentap, $useragent); $i = 0; $o = 0; } if ($c == $ran) { $id = thembanbe($cookie, $url, $useragent); echo $BYellow . "[" . $BRed . $so++ . $BYellow . "]" . $BGreen . " Đã thêm bạn bè  " . $BYellow . $id . $BGreen . " Để tăng bạn bè  
"; $c = 0; } } } while ($nhap == '2') { @system("clear"); for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;33mTool Nuôi Facebook\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mBản Quyền : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mĐược Chia Sẻ Miễn Phí Bởi : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mMua Key Hoặc Donate Tool\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;31mYoutube \033[1;94m: Phạm Đạt Official \033[1;34m\n"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "~[✓]$white => [1]  Auto Thêm Bạn Có Bạn Chung 
"; echo "~[✓]$white => [2]  Auto Chấp Nhận Kết Bạn 
"; echo "~[✓]$white =>$lime Nhập Chế Độ: $BYellow"; $chon1 = trim(fgets(STDIN)); if ($chon1 == '1') { echo $Blue . "~[✓]$white =>$lime Nhập Số Bạn Bè Muốn Thêm: $BYellow"; $cangui = trim(fgets(STDIN)); echo $Blue . "~[✓]$white =>$lime Delay Khi Gửi: $BYellow"; $delay = trim(fgets(STDIN)); while ($ii < $cangui) { $ii++; $so++; $n = thembanbe($cookie, $url, $useragent); echo $BYellow . "[" . $BCyan . $so . $BYellow . "]$BGreen Đã gửi lời mời kết bạn cho " . $n . "
"; for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } }} if ($chon1 == '2') { echo $Blue . "~[✓]$white =>$BYellow Nhập số bạn bè cần chấp nhận: "; $cancn = trim(fgets(STDIN)); echo $Blue . "~[✓]$white =>$Blue Delay : $BGreen"; $timedelay = trim(fgets(STDIN)); $list = addbanbe($cookie, $access_token, $useragent)->{'data'}; foreach ($list as $id) { $so++; $uid = $id->{'from'}->{'id'}; $name = $id->{'from'}->{'name'}; $namee = xacnhanbanbe($cookie, $uid, $useragent); if (empty($namme)) echo $BYellow . "[" . $BCyan . $so . $BGreen . "] Đã chấp nhận lời mời kết bạn của " . $name . "
"; for ($x = $timedelay;$x > - 1;$x--) { echo "\r$xnhac   ┗(•ˇ_ˇ•)  ~>     $luc đợi$do |$yellow $x$do | "; usleep(133333); echo "\r"; echo "\r$xnhac   ┗(•ˇ_ˇ•)   ~>    $luc đợi$do |$yellow $x$do | "; usleep(133333); echo "\r"; echo "\r$xnhac   ┗(•ˇ_ˇ•)    ~>   $luc đợi$do |$yellow $x$do | "; usleep(133333); echo "\r"; echo "\r$xnhac   ┗(•ˇ_ˇ•)     ~>  $luc đợi$do |$yellow $x$do | "; usleep(133333); echo "\r"; echo "\r$xnhac   ┗(•ˇ_ˇ•)       ~> $luc đợi$do |$yellow $x$do | "; usleep(133333); echo "\r"; echo "\r$xnhac   ┗(•ˇ_ˇ•)        ~>$luc đợi$do |$yellow $x$do | "; echo "\r";}}}} while ($nhap == '3') { @system("clear"); for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;33mTool Nuôi Facebook\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mBản Quyền : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mĐược Chia Sẻ Miễn Phí Bởi : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mMua Key Hoặc Donate Tool\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;31mYoutube \033[1;94m: Phạm Đạt Official \033[1;34m\n"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo $BGreen . "~[✓]$white =>$lime  Nhập ID bạn bè cần bão: $BYellow"; $idfb = trim(fgets(STDIN)); @system('clear'); for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;33mTool Nuôi Facebook\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mBản Quyền : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mĐược Chia Sẻ Miễn Phí Bởi : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mMua Key Hoặc Donate Tool\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;31mYoutube \033[1;94m: Phạm Đạt Official \033[1;34m\n"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo $lime . "~[✓]$white =>$lime  Nhập [1]$BGreen LIKE 
"; echo $lime . "~[✓]$white =>$lime  Nhập [2]$BGreen HAHA 
"; echo $lime . "~[✓]$white =>$lime  Nhập [3]$BGreen Thả Phẫn Nộ 
"; echo $lime . "~[✓]$white =>$lime  Nhập [4]$BGreen WOW 
"; echo $lime . "~[✓]$white =>$lime  Nhập [5]$BGreen Thả Buồn 
"; echo $lime . "~[✓]$white =>$lime  Nhập [6]$BGreen Thả Tym 
"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo $BGreen . " Ví Dụ Bạn Muốn Làm Like Và Haha Thì Điền 2+3 
"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo $lime . "~[✓]$white =>$BYellow Nhập chế độ: $Blue"; $nhap = trim(fgets(STDIN)) . "8
"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mDelay : "; $delay = trim(fgets(STDIN)); for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; $camxuc = []; if (strlen(strstr($nhap, '1')) > 0) { array_push($camxuc, 'LIKE'); } if (strlen(strstr($nhap, '2')) > 0) { array_push($camxuc, 'Thả Haha'); } if (strlen(strstr($nhap, '3')) > 0) { array_push($camxuc, 'PHANNO'); } if (strlen(strstr($nhap, '4')) > 0) { array_push($camxuc, 'WOW'); } if (strlen(strstr($nhap, '5')) > 0) { array_push($camxuc, 'BUON'); } if (strlen(strstr($nhap, '6')) > 0) { array_push($camxuc, 'LOVE'); } if (count($camxuc) == 0) { exit($BRed . "Vui lòng chọn ít nhất 1 loại NHIỆM VỤ!"); } echo "
"; $list = getbaiviet($cookie, $access_token, $useragent, $idfb)->{'data'}; foreach ($list as $id => $key) { $id = $key->{'id'}; if (strstr($id, '_')) { $idbv = explode('_', $id) [1]; } $rand = $camxuc[array_rand($camxuc, 1) ]; if ($rand == 'LIKE') { $g = liketoken($access_token, $idbv, $useragent); $so++; echo $BYellow . "[" . $BCyan . $so . $BYellow . "] Đã Like Thành Công ID BÀI VIẾT " . $Blue . $idbv . "
"; for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } } else if ($rand == 'LOVE') { $g = camxuc($cookie, $id, $useragent, 'LOVE'); echo $BYellow . "[" . $BCyan . $so . $BYellow . "] Đã Love Thành Công ID BÀI VIẾT " . $Blue . $idbv . "
"; for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } } else if ($rand == 'Thả Haha') { $g = camxuc($cookie, $id, $useragent, 'Thả Haha'); echo $BYellow . "[" . $BCyan . $so . $BYellow . "] Đã HaHa Thành Công ID BÀI VIẾT " . $Blue . $idbv . "
"; for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } } else if ($rand == 'BUON') { $g = camxuc($cookie, $id, $useragent, 'SAD'); echo $BYellow . "[" . $BCyan . $so . $BYellow . "] Đã Buồn Thành Công ID BÀI VIẾT " . $Blue . $idbv . "
"; for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } } else if ($rand == 'WOW') { $g = camxuc($cookie, $id, $useragent, 'WOW'); echo $BYellow . "[" . $BCyan . $so . $BYellow . "] Đã WOW thành công ID BÀI VIẾT " . $Blue . $idbv . "
"; for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } } else { $g = camxuc($cookie, $id, $useragent, ''); echo $BYellow . "[" . $BCyan . $so . $BYellow . "] Đã  Phẫn Nộ Thành Công ID BÀI VIẾT " . $Blue . $idbv . "
"; for ($time = $delay; $time > -1; $time--) { echo "\r                                         \r"; echo "\r   \033[1;31m[\033[1;93m>\033[0;36m!\033[1;93m<\033[1;31m] \033[0;96mVui lòng Đợi\033[1;91m |\033[1;93m $time\033[1;91m | "; usleep(133333); echo $do."●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ●"; usleep(133333); echo $do." ● "; usleep(133333); echo "$res  \r"; } } } unset($so); unset($_SESSION['giaay']); break; } while ($nhap == '4') { @system("clear"); for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;33mTool Nuôi Facebook\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mBản Quyền : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mĐược Chia Sẻ Miễn Phí Bởi : \033[1;33mPhạm Tiến Đạt\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;32mMua Key Hoặc Donate Tool\n"; echo "\033[1;37m~\033[1;31m[\033[1;32m✓\033[1;31m]\033[1;37m => \033[1;31mYoutube \033[1;94m: Phạm Đạt Official \033[1;34m\n"; for($v=0;$v<= 14;$v++){ echo $trang."- ";usleep(10000);echo $trang."- ";usleep(10000); } echo "\n"; echo "~[✓]$white =>$lime  Nhập số Người , Page Cần Xóa: "; $nguoi = trim(fgets(STDIN)); $likepage = xemlikepage($cookie, $access_token, $useragent)->{'data'}; if (empty($likepage)) { echo $BWhite . " Bạn chưa like page nào cả 
"; sleep(5); } else { echo $BGreen . " Bạn Đang Theo Dõi: " . count($likepage) . " Page "; echo "
"; foreach ($likepage as $id) { $uid = $id->{'id'}; $name = $id->{'name'}; bolikepage($cookie, $uid, $useragent); $so++; echo $BYellow . "[" . $BCyan . $so . $BYellow . "]$BGreen Đã bỏ like page thành công  " . $name . "
"; if ($nguoi == $so) { break; } } } if ($nguoi == $so) { unset($so); break; } $follow = getidunfl($cookie, $idfb, $useragent); while ($follow != '1' and $so <= $nguoi) { foreach ($follow as $id) { $so++; $ran = rand(5, 15); $name = huyfollow($cookie, $id, $useragent); echo $BYellow . "[" . $BCyan . $so . $BYellow . "]$BGreen Đã bỏ follow " . $name . " Thành Công
"; echo $BGreen . " Đang chờ time random tránh block "; sleep($ran); echo "
"; if ($nguoi == $so) { break; } } $follow = getidunfl($cookie, $idfb, $useragent); if ($nguoi <= $so or $follow == '1') { break; } } echo $BYellow . " Đã unfollow hết người mà bạn chọn 
 "; sleep(5); break; } } function huyfollow($cookie, $id, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $id); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $n = curl_exec($ch); $lin = explode('">Bỏ theo dõi', explode('/a/subscriptions/remove?', $n) [1]) [0]; $link = str_replace('&amp;', '&', $lin); curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/subscriptions/remove?" . $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $n = curl_exec($ch); curl_close($ch); return explode('</title><meta', explode('head><title>', $n) [1]) [0]; } function getidunfl($cookie, $idfb, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/?' . http_build_query(array('collection_token' => $idfb . ':2356318349:33', '_rdr' => ''))); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $n = curl_exec($ch); $lin = explode('collection', explode('/timeline/app_collection/more/?collection_token', $n) [1]) [0]; $link = str_replace('&amp;', '&', $lin); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/timeline/app_collection/more/?collection_token' . $link . 'collection'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $m = curl_exec($ch); curl_close($ch); $liss = []; $n = explode('\">\u003Cspan', explode('href=\"\/', $m) [1]) [0]; if ($n == '') { $bb = '1'; $liss = '1'; } else { $bb = '2'; } while ($bb == '2') { $i++; $uid = explode('\">\u003Cspan', explode('href=\"\/', $m) [($i) ]) [0]; if (strlen($uid) < 100) { array_push($liss, $uid); } if ($uid == '') { break; } } return $liss; } function bolikepage($cookie, $id, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $id); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $n = curl_exec($ch); $lin = explode('" class="', explode('/a/profile.php?unfan', $n) [1]) [0]; $link = str_replace('&amp;', '&', $lin); curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/profile.php?unfan" . $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $n = curl_exec($ch); curl_close($ch); return explode('</title><meta', explode('head><title>', $n) [1]) [0]; } function xacnhanbanbe($cookie, $id, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $id); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $n = curl_exec($ch); $lin = explode('" class="', explode('/a/mobile/friends/profile_add_friend.php?', $n) [1]) [0]; $link = str_replace('&amp;', '&', $lin); curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/mobile/friends/profile_add_friend.php?" . $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $n = curl_exec($ch); curl_close($ch); return explode('</title><meta', explode('head><title>', $n) [1]) [0]; } function xemlikepage($cookie, $access_token, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/likes?access_token=' . $access_token . '&limit=5000&fields=name,id'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $access = curl_exec($ch); curl_close($ch); return json_decode($access); } function addbanbe($cookie, $access_token, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/friendrequests?access_token=' . $access_token . '&limit=5000&fields=from.name'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $access = curl_exec($ch); curl_close($ch); return json_decode($access); } function getbaiviet($cookie, $access_token, $useragent, $idfb) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . $idfb . '/posts?limit=1000&fields=id,name&access_token=' . $access_token); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $access = curl_exec($ch); curl_close($ch); return json_decode($access); } function demlike($cookie, $access_token, $idpost, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v1.0/' . $idpost . '/likes?access_token=' . $access_token . '&pretty=1&limit=5000'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $access = curl_exec($ch); curl_close($ch); return json_decode($access); } function getbanbe($access_token, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/me/friends/?access_token=' . $access_token); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_ENCODING, ''); return json_decode(curl_exec($ch)); curl_close($ch); } function xoabanbe($cookie, $id, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/profile.php?id=' . $id); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_ENCODING, ''); $list = curl_exec($ch); $data1 = explode('" autocomplete=', explode('name="fb_dtsg" value="', $list) [1]) [0]; $data2 = explode('" autocomplete=', explode('name="jazoest" value="', $list) [1]) [0]; $data = http_build_query(array('fb_dtsg' => $data1, 'jazoest' => $data2, 'friend_id' => $id, 'unref' => 'profile_gear', 'confirm' => 'Xác nhận')); $head[] = 'content-length: ' . strlen($data); $head[] = 'refer: https://mbasic.facebook.com/removefriend.php?friend_id=' . $id . '&unref=profile_gear&refid=17'; curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/a/removefriend.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $h = curl_exec($ch); curl_close($ch); } function cookie($cookie, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $access = curl_exec($ch); curl_close($ch); return $access; } function gettt($cookie, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/home.php'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; 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'); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $n = curl_exec($ch); $lin = explode('">Thích</a><span', explode('a/like.php?', $n) [1]) [0]; $link = str_replace('&amp;', '&', $lin); $url = "https://mbasic.facebook.com/a/like.php?" . $link; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $ccc = curl_exec($ch); return explode('</title><meta', explode('head><title>', $ccc) [1]) [0]; curl_close($ch); } function cmt($cookie, $msg, $id, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $id); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $m = curl_exec($ch); $lin = explode('">Viết bình luận...', explode('/a/comment.php?', $m) [1]) [0]; $link1 = explode('"><input type="', $lin) [0]; $link = str_replace('&amp;', '&', $link1); $data1 = explode('" autocomplete="', explode('name="fb_dtsg" value="', $lin) [1]) [0]; $data2 = explode('" autocomplete="', explode('name="jazoest" value="', $lin) [1]) [0]; curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/a/comment.php?" . $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $dat = http_build_query(array('fb_dtsg' => $data1, 'jazoest' => $data2, 'comment_text' => $msg)); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $dat); $n = curl_exec($ch); curl_close($ch); return explode('</title><meta', explode('head><title>', $n) [1]) [0]; } function page($id, $cookie, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $id); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
	:')); $page = curl_exec($ch); if (explode('&amp;refid=', explode('pageSuggestionsOnLiking=1&amp;gfid=', $page) [1]) [0]) { $get = explode('&amp;refid=', explode('pageSuggestionsOnLiking=1&amp;gfid=', $page) [1]) [0]; $link = 'https://mbasic.facebook.com/a/profile.php?fan&id=' . $id . '&origin=page_profile&pageSuggestionsOnLiking=1&gfid=' . $get . '&refid=17'; curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_exec($ch); } curl_close($ch); } function camxuc($cookie, $id, $useragent, $type) { $ch = curl_init(); if (strpos($id, '_')) { $uid = explode('_', $id, 2); $id2 = 'story.php?story_fbid=' . $uid[1] . '&id=' . $uid[0]; } else { $id2 = $id; } curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $id2); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
	:')); $page = curl_exec($ch); if (preg_match('~Location: (.*)~i', $result, $match)) { $location = trim($match[1]); $link = 'https://mbasic.facebook.com' . explode('facebook.com', $location) [1]; return array('link' => $link); } else { if ($id2 != $id && explode('&amp;origin_uri=', explode('amp;ft_id=', $page, 2) [1], 2) [0]) { $get = explode('&amp;origin_uri=', explode('amp;ft_id=', $page, 2) [1], 2) [0]; } else { $get = $id2; } $link = 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id=' . $get; curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $cx = curl_exec($ch); $HAHA = explode('<a href="', $cx); if ($type == 'LOVE') { $haha2 = explode('" style="display:block"', $haha[2]) [0]; } else if ($type == 'WOW ') { $haha2 = explode('" style="display:block"', $haha[5]) [0]; } else if ($type == 'Thả Haha') { $haha2 = explode('" style="display:block"', $haha[4]) [0]; } else if ($type == 'SAD ') { $haha2 = explode('" style="display:block"', $haha[6]) [0]; } else { $haha2 = explode('" style="display:block"', $haha[7]) [0]; } $link2 = html_entity_decode($haha2); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com' . $link2); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_exec($ch); curl_close($ch); } } function camxuc1($cookie, $link, $useragent, $type) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $m = curl_exec($ch); if ($type == 'LIKE') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=1', $m) [1]) [0]; $link4 = '&amp;reaction_type=1' . $link2; } if ($type == 'THUONG') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=16', $m) [1]) [0]; $link4 = '&amp;reaction_type=16' . $link2; } if ($type == 'LOVE') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=2', $m) [1]) [0]; $link4 = '&amp;reaction_type=2' . $link2; } if ($type == 'WOW') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=3', $m) [1]) [0]; $link4 = '&amp;reaction_type=3' . $link2; } if ($type == 'Thả Haha') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=4', $m) [1]) [0]; $link4 = '&amp;reaction_type=4' . $link2; } if ($type == 'SAD') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=7', $m) [1]) [0]; $link4 = '&amp;reaction_type=7' . $link2; } if ($type == '') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=8') [1]) [0]; $link4 = '&amp;reaction_type=8' . $link2; } $link3 = explode('&amp;reaction_type=', explode('<a href="/ufi/reaction/?', $m) [1]) [0]; $link5 = str_replace('&amp;', '&', $link3 . $link4); curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?" . $link5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $n = curl_exec($ch); curl_close($ch); return explode('</title><meta', explode('head><title>', $n) [1]) [0]; } function datnicktds($user, $idfb) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/api_dat.php?user=' . $user . '&idfb=' . $idfb); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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"); $h = curl_exec($ch); return json_decode($h); } function nhantientds($loai, $id) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantien' . $loai . '.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $tdsxu = array('id' => $id); curl_setopt($ch, CURLOPT_POST, count($tdsxu)); curl_setopt($ch, CURLOPT_POSTFIELDS, $tdsxu); curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt"); $xu = curl_exec($ch); curl_close($ch); return $xu; } function nhantiencxtds($loai, $id) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/nhantiencx.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $tdsxu = array('id' => $id, 'loaicx' => $loai); curl_setopt($ch, CURLOPT_POST, count($tdsxu)); curl_setopt($ch, CURLOPT_POSTFIELDS, $tdsxu); curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt"); $xu = curl_exec($ch); curl_close($ch); return $xu; } function getcookietds($user, $pass) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/login.php'); curl_setopt($ch, CURLOPT_COOKIEJAR, "TDS.txt"); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); $login = array('username' => $user, 'password' => $pass, 'submit' => ' ĐĂNG NHẬP'); curl_setopt($ch, CURLOPT_POST, count($login)); curl_setopt($ch, CURLOPT_POSTFIELDS, $login); curl_setopt($ch, CURLOPT_COOKIEFILE, "TDS.txt"); $source = curl_exec($ch); curl_close($ch); return $source; } function getnvtds($loai, $user) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, 'https://traodoisub.com/scr/api_job.php?chucnang=' . $loai . '&user=' . $user); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 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"); $list = curl_exec($ch); curl_close($ch); return json_decode($list); } function followtoken($access_token, $id, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . $id . '/subscribers'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $data = array('access_token' => $access_token); curl_setopt($ch, CURLOPT_POST, count($data)); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $access = curl_exec($ch); curl_close($ch); return json_decode($access); } function liketoken($access_token, $id, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . $id . '/likes'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $data = array('access_token' => $access_token); curl_setopt($ch, CURLOPT_POST, count($data)); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $access = curl_exec($ch); curl_close($ch); return json_decode($access); } function cmttoken($access_token, $id, $msg, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . $id . '/comments'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $data = array('message' => $msg, 'access_token' => $access_token); curl_setopt($ch, CURLOPT_POST, count($data)); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $access = curl_exec($ch); curl_close($ch); return json_decode($access); } function gethome($cookie, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/home.php'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_ENCODING, ''); return curl_exec($ch); curl_close($ch); } function camxuctuongtac($cookie, $link, $useragent, $type) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); $m = curl_exec($ch); if ($type == 'LIKE') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=1', $m) [1]) [0]; $link4 = '&amp;reaction_type=1' . $link2; } if ($type == 'THUONG') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=16', $m) [1]) [0]; $link4 = '&amp;reaction_type=16' . $link2; } if ($type == 'LOVE') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=2', $m) [1]) [0]; $link4 = '&amp;reaction_type=2' . $link2; } if ($type == 'WOW') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=3', $m) [1]) [0]; $link4 = '&amp;reaction_type=3' . $link2; } if ($type == 'HAHA') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=4', $m) [1]) [0]; $link4 = '&amp;reaction_type=4' . $link2; } if ($type == 'SAD') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=7', $m) [1]) [0]; $link4 = '&amp;reaction_type=7' . $link2; } if ($type == '') { $link2 = explode('" style="display:block"', explode('&amp;reaction_type=8') [1]) [0]; $link4 = '&amp;reaction_type=8' . $link2; } $link3 = explode('&amp;reaction_type=', explode('<a href="/ufi/reaction/?', $m) [1]) [0]; $link5 = str_replace('&amp;', '&', $link3 . $link4); curl_setopt($ch, CURLOPT_URL, "https://mbasic.facebook.com/ufi/reaction/?" . $link5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $n = curl_exec($ch); curl_close($ch); return explode('</title><meta', explode('head><title>', $n) [1]) [0]; } function gettiephome($cookie, $linktiep, $useragent) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $linktiep); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_ENCODING, ''); return curl_exec($ch); curl_close($ch); } function thembanbe($cookie, $url, $useragent) { $ch = curl_init(); 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'); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "authority: m.facebook.com"; $head[] = "ccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $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"; $head[] = "cache-control: max-age=0"; $head[] = "upgrade-insecure-requests: 1"; $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"; $head[] = "sec-fetch-site: none"; $head[] = "sec-fetch-mode: navigate"; $head[] = "sec-fetch-user: ?1"; $head[] = "sec-fetch-dest: document"; curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_ENCODING, ''); $list = curl_exec($ch); $link = explode('" class="', explode('/a/mobile/friends/add_friend.php?', $list) [1]) [0]; $link2 = 'https://mbasic.facebook.com/a/mobile/friends/add_friend.php?' . str_replace('&amp;', '&', $link); curl_setopt($ch, CURLOPT_URL, $link2); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_exec($ch); curl_close($ch); return explode('&hf', explode('id=', $link2) [1]) [0]; }



© 2021 Quttera Ltd. All rights reserved.