Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error_reporting(0);
- date_default_timezone_set("Asia/Ho_Chi_Minh");
- $xxx = date("H:i:s");
- $today = date("dmY");
- $ress = "\033[0;32m";
- $res = "\033[0;33m";
- $red = "\033[0;31m";
- $green = "\033[0;37m";
- $nau= "\e[38;5;94m";
- $white = "\033[0;33m";
- $xnhac = "\033[1;96m";
- $den = "\033[1;90m";
- $do = "\033[1;91m";
- $luc = "\033[1;92m";
- $vang = "\033[1;93m";
- $xduong = "\033[1;94m";
- $thanhngang = $vang."==========================================================\n";
- $hong = "\033[1;95m";
- $trang = "\033[1;97m";
- $y2="\033[0;33m";
- $white= "\033[0;37m";
- $cyan= "\e[1;36m";
- $blue="\e[1;34m";
- $ngreen="\033[42m";
- $ngreen="\033[42m";
- $thanh_xau= $trang."".$do."[".$luc."●".$do."] ".$trang."=> ";
- $thanh_dep= $trang."~".$do."[".$luc."✓".$do."] ".$trang."=> ";
- $maul=rand(31,37);
- $maui="\033[1;".$maul."m";
- @system('clear');
- echo "\n";echo"
- \033[0;31m██╗ ██╗██╗ ██╗
- \033[0;37m██║ ██║╚██╗ ██╔╝
- \033[1;94m██║ ██║ ╚████╔╝
- \033[1;95m██║ ██║ ╚██╔╝
- \033[1;96m╚██████╔╝ ██║
- \033[1;91m╚═════╝ ╚═╝ \n";
- //login
- $dem = 0;
- echo $thanh_xau.$luc."Nhập Token Traodoisub: $vang";
- $tokenacc = trim(fgets(STDIN));
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản TDS Của Bạn Là: ".$vang.$user."\n";
- //Token
- $khoToken = [];
- //cookie
- $khocookie = [];
- if (file_exists('cookie.txt')){
- echo $khanhdz."".$luc."Nhập ".$vang."[".$trang." yes ".$vang."] ".$luc."Thêm Cookie Facebook Để Chạy\n";
- echo $khanhdz."".$luc."Nhập ".$vang."[".$trang." no ".$vang." ] ".$luc."Vào Chạy Tool Vì Lần Trước Lưu Cookie Facebook Rồi\n";
- echo $khanhdz."".$luc."Nhập ".$trang."yes ".$luc."Hoặc ".$trang."no: $vang";
- $choice=trim(fgets(STDIN));
- if ($choice=='yes'){
- @system('rm cookie.txt');
- }
- }
- if (!file_exists('cookie.txt')){
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Cookie Facebook Nếu Muốn Dừng Bấm Xuống Hàng Nhé\n";
- for($a = 1; $a < 999999;$a++){
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Cookie Facebook Thứ $a: $vang";
- $nhapck = (string)trim(fgets(STDIN));
- if($nhapck == ''){break;}
- array_push($khocookie,$nhapck);
- }
- $js=json_encode($khocookie);
- $demcki=count($khocookie);
- $k = fopen("cookie.txt","a+");
- fwrite($k, $js);
- fclose($k);
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tìm Thấy ".$vang.$demcki." ".$luc."Cookie Facebook\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Đã Lưu Cookie Facebook Vào File ".$trang."cookie.txt\n";
- sleep(2);
- }else{
- $khocookie = json_decode(fread(fopen("cookie.txt","r"),filesize("cookie.txt")),true);
- $demcki = count($khocookie);
- }
- //url
- $urlinfo = "https://traodoisub.com/api/?fields=profile&access_token=$tokenacc";
- $urllike = "https://traodoisub.com/api/?fields=like&access_token=$tokenacc";
- $urlsub = "https://traodoisub.com/api/?fields=follow&access_token=$tokenacc";
- $urlcx = "https://traodoisub.com/api/?fields=reaction&access_token=$tokenacc";
- $urlshare = "https://traodoisub.com/api/?fields=share&access_token=$tokenacc";
- $urlcmt = "https://traodoisub.com/api/?fields=comment&access_token=$tokenacc";
- $urlpage = "https://traodoisub.com/api/?fields=page&access_token=$tokenacc";
- $urllikecmt = "https://traodoisub.com/api/?fields=reactcmt&access_token=$tokenacc";
- //login
- $info = api($urlinfo);
- if ($info["error"]) {
- exit ($info["error"]);
- }
- //$thongtin
- $user = strtolower($info["data"]["user"]);
- $xuhientai = $info["data"]["xu"];
- @system('clear');
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản TDS Của Bạn Là: ".$vang.$user."\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Thể Loại Tool Bạn Đang Chạy Là Tool: ".$vang."Cookie\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Số Facebook Chạy Tool ".$vang."Cookie ".$luc."Là: ".$vang.$demcki."\n";
- for ($makep=38;$makep > 0;$makep--){echo $res."-";usleep(2500);echo $red."-";}echo "\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản TDS Của Bạn Là: ".$vang.$user."\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Số Xu Hiện Tại Của Bạn Là: ".$vang.$xuhientai."\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản TDS Của Bạn Là: ".$vang.$user."\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."1".$do."]".$luc." Để Chạy Nhiệm Vụ Like\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."2".$do."]".$luc." Để Chạy Nhiệm Vụ Follow\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."3".$do."]".$luc." Để Chạy Nhiệm Vụ Cảm Xúc\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."4".$do."]".$luc." Để Chạy Nhiệm Vụ Comment\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."5".$do."]".$luc." Để Chạy Nhiệm Vụ Fanpage\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."6".$do."]".$luc." Để Chạy Nhiệm Vụ Share\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."7".$do."]".$luc." Để Chạy Nhiệm Vụ Tham Gia Group ".$do."Đang bảo trì\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập ".$do."[".$vang."8".$do."]".$luc." Để Chạy Nhiệm Vụ Cảm Xúc CMT\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Muốn Chạy Random Thì Ghép Mấy Số Nhiệm Vụ Bất Kỳ\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Số Để Chạy Nhiệm Vụ: $vang";
- $nhiemvu = trim(fgets(STDIN));
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Thời Gian Làm Nhiệm Vụ ".$trang."Min Max\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Thời Gian Làm Nhiệm Vụ ".$trang."Min".$luc.": $vang";
- $thoigianmin = trim(fgets(STDIN));
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Thời Gian Làm Nhiệm Vụ ".$trang."Max".$luc.": $vang";
- $thoigianmax = trim(fgets(STDIN));
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Sau Bao Nhiêu Nhiệm Vụ Thì Kích Hoạt Chống Block: $vang";
- $xxxxx = trim(fgets(STDIN));
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Sau ".$vang.$xxxxx.$luc." Nhiệm Vụ Nghỉ Ngơi Bao Nhiêu Giây: $vang";
- $delaybl = trim(fgets(STDIN));
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Chuyển Nick Sau Bao Nhiêu Nhiệm Vụ: $vang";
- $doinick = trim(fgets(STDIN));
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Chạy Bao Nhiêu Nhiệm Vụ Rồi Dừng Tool: $vang";
- $dungtool = trim(fgets(STDIN));
- while(true){
- if(count($khocookie) == 0){
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Cookie Facebook Nếu Muốn Dừng Bấm Xuống Hàng Nhé\n";
- for($a = 1; $a < 999999;$a++){
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Nhập Cookie Facebook Thứ $a: $vang";
- $nhapck = (string)trim(fgets(STDIN));
- if($nhapck == ''){break;}
- array_push($khocookie,$nhapck);
- }
- $js=json_encode($khocookie);
- $demcki=count($khocookie);
- $k = fopen("cookie.txt","a+");
- fwrite($k, $js);
- fclose($k);
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tìm Thấy ".$vang.$demcki." ".$luc."Cookie\n";
- }
- $themtk = 0;
- for($xz=0;$xz<count($khocookie);$xz++){
- if ( $themck == 1){ break; }
- $cookie = $khocookie[$xz];
- $access_token = laytoken($cookie);
- if (strpos($access_token, 'EAAAA') !== 0) {
- echo "Cookie lỗi!!?! \n";
- }
- $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'name'};
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))-> {'id'};
- $urlcauhinh = "https://traodoisub.com/api/?fields=run&id=$idfb&access_token=$tokenacc";
- $cauhinh = api($urlcauhinh);
- if ($cauhinh["data"]["msg"] == "Cấu hình thành công!") {
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản TDS Của Bạn Là: ".$vang.$user."\n";
- echo $vang."Đang Cấu Hình ID: ".$luc.$idfb." ".$vang."Tên FB: ".$luc.$tenfb."".$res."\n";
- echo $do."[".$luc."●".$do."] ".$trang."=> ".$luc."Tài Khoản TDS Của Bạn Là: ".$vang.$user."\n";
- } else {
- echo $do."Cấu hình thất bại cookie có thể bị die thay cookie tại file ".$trang."cookie.txt\n";
- exit;
- }
- $spam = 0;
- while (true) {
- if ($spam == 1) {
- break;
- }
- //listlike
- if (strpos($nhiemvu, '1') !== false) {
- for ($i = 0; $i < 30; $i++) {
- $listlike = api($urllike);
- if (count($listlike) !== 0) {
- break;
- }}
- }
- //listfollow
- if (strpos($nhiemvu, '2') !== false) {
- while (true) {
- $listsub = api($urlsub);
- if (count($listsub) !== 0) {
- break;
- }
- }}
- //listreaction
- if (strpos($nhiemvu, '3') !== false) {
- for ($i = 1; $i < 30; $i++) {
- $listcx = api($urlcx);
- if (count($listcx) !== 0) {
- break;
- }}
- }
- //listcmt
- if (strpos($nhiemvu, '4') !== false) {
- for ($i = 1; $i < 30; $i++) {
- $listcmt = api($urlcmt);
- if (count($listcmt) !== 0) {
- break;
- }}
- }
- //listpage
- if (strpos($nhiemvu, '5') !== false) {
- for ($i = 1; $i < 30; $i++) {
- $listpage = api($urlpage);
- if (count($listpage) !== 0) {
- break;
- }}
- }
- //share
- if (strpos($nhiemvu, '6') !== false) {
- for ($i = 1; $i < 30; $i++) {
- $listshare = api($urlshare);
- if (count($listshare) > 0) {
- break;
- }}
- }
- //listgroup
- if (strpos($nhiemvu, '7') !== false) {
- for ($i = 1; $i < 30; $i++) {
- $listgr = api($urlgr);
- if (count($listgr) !== 0) {
- break;
- }}
- }
- //listlikecmt
- if (strpos($nhiemvu, '8') !== false) {
- for ($i = 1; $i < 30; $i++) {
- $listlikecmt = api($urllikecmt);
- if (count($listlikecmt) !== 0) {
- break;
- }}
- }
- for ($lap = 0; $lap < 20; $lap++) {
- // like
- if ($listlike !== NULL) {
- $idlike = $listlike[$lap]["id"];
- if ($idlike !== '') {
- $g = like($access_token, $idlike, $cookie);
- if ($g -> {'error'} -> {'code'} == 190) {
- echo "Token die !!?!\n";
- array_splice($khoToken,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 368) {
- echo "\033[1;91m".$g-> {'error'}-> {'message'};
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1;
- break;
- }
- if ($g -> {'error'} -> {'code'} == 405) {
- echo "\033[1;91m"."Tài khoản bị checkpoint";
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1;
- break;
- }
- $nhanlike = nhantien('LIKE', $idlike, $tokenacc);
- if ($nhanlike["success"] == 200) {
- $xu = $nhanlike["data"]["xu"];
- $xujob = $nhanlike["data"]["msg"];
- $dem++;
- hoanthanh($dem, ' LIKE ', $idlike, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($delaybl);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }
- }}
- //follow
- if ($listsub !== NULL) {
- $idsub = $listsub[$lap]["id"];
- if ($idsub !== '') {
- $g = follow($access_token, $idsub, $cookie);
- if ($g -> {'error'} -> {'code'} == 190) {
- echo "Cookie die !!?!\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 368) {
- echo "\033[1;91m".$g-> {'error'}-> {'message'};
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 405) {
- echo "\033[1;91m"."Tài khoản bị checkpoint";
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- $nhansub = nhantien('FOLLOW', $idsub, $tokenacc);
- if ($nhansub["success"] == 200) {
- $xu = $nhansub["data"]["xu"];
- $xujob = $nhansub["data"]["msg"];
- $dem++;
- hoanthanh($dem, 'FOLLOW', $idsub, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($delaybl);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }
- }}
- //cảm xúc
- if ($listcx !== NULL) {
- $idcx = $listcx[$lap]["id"];
- $type = $listcx[$lap]["type"];
- if ($idcx !== '') {
- $g = camxuc($idcx, $type, $cookie);
- if ($g -> {'error'} -> {'code'} == 190) {
- echo "Cookie die !!?!\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 368) {
- echo "\033[1;91m".$g-> {'error'}-> {'message'};
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 405) {
- echo "\033[1;91m"."Tài khoản bị checkpoint";
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- $nhancx = nhantien($type, $idcx, $tokenacc);
- if ($nhancx["success"] == 200) {
- $xu = $nhancx["data"]["xu"];
- $xujob = $nhancx["data"]["msg"];
- $dem++;
- if ($type == 'WOW') {
- $type = 'WOW';
- } elseif ($type == 'SAD') {
- $type = 'SAD';
- } elseif ($type == 'ANGRY') {
- $type = 'ANGRY';
- } elseif ($type == 'LOVE') {
- $type = 'LOVE';
- } elseif ($type == 'HAHA') {
- $type = 'HAHA';
- }
- hoanthanh($dem, $type, $idcx, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($delaybl);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }
- }}
- if ($listshare !== NULL) {
- $id = $listshare[$lap]["id"];
- $g = share($access_token, $id);
- if ($g -> {'error'} -> {'code'} == 190) {
- echo "Token die !!?!\n";
- array_splice($khoToken,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 368) {
- echo "\033[1;91m".$g-> {'error'}-> {'message'};
- echo "\n";
- array_splice($khoToken,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 405) {
- echo "\033[1;91m"."Tài khoản bị checkpoint";
- array_splice($khoToken,$xz,1);
- $spam = 1; break;
- }
- $nhanshare = nhantien('SHARE', $id, $tokenacc);
- if ($nhanshare["success"] == 200) {
- $xu = $nhanshare["data"]["xu"];
- $xujob = $nhanshare["data"]["msg"];
- $dem++;
- hoanthanh($dem, 'SHARE', $id, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($thoigiannghi);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }}
- //cmt
- if ($listcmt !== NULL) {
- $idcmt = $listcmt[$lap]["id"];
- $msg = $listcmt[$lap]["msg"];
- if ($idcmt !== '') {
- $g = cmt($access_token, $idcmt, $cookie, $msg);
- if ($g -> {'error'} -> {'code'} == 190) {
- echo "Cookie die !!?!\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 368) {
- echo "\033[1;91m".$g-> {'error'}-> {'message'};
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 405) {
- echo "\033[1;91m"."Tài khoản bị checkpoint";
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- $nhancmt = nhantien('COMMENT', $idcmt, $tokenacc);
- if ($nhancmt["success"] == 200) {
- $xu = $nhancmt["data"]["xu"];
- $xujob = $nhancmt["data"]["msg"];
- $dem++;
- hoanthanh($dem, ' CMT ', $idcmt, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($delaybl);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }
- }}
- //page
- if ($listpage !== NULL) {
- $idpage = $listpage[$lap]["id"];
- if ($idpage !== '') {
- $g = page($idpage, $cookie);
- if ($g -> {'error'} -> {'code'} == 190) {
- echo "Cookie die !!?!\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 368) {
- echo "\033[1;91m".$g-> {'error'}-> {'message'};
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- if ($g -> {'error'} -> {'code'} == 405) {
- echo "\033[1;91m"."Tài khoản bị checkpoint";
- echo "\n";
- array_splice($khocookie,$xz,1);
- $spam = 1; break;
- }
- $nhanpage = nhantien('PAGE', $idpage, $tokenacc);
- if ($nhanpage["success"] == 200) {
- $xu = $nhanpage["data"]["xu"];
- $xujob = $nhanpage["data"]["msg"];
- $dem++;
- hoanthanh($dem, ' PAGE ', $idpage, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($delaybl);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }
- }
- }
- //likecmt
- if ($listlikecmt !== NULL) {
- $idlikecmt = $listlikecmt[$lap]["id"];
- $type = $listlikecmt[$lap]["type"];
- if ($idlikecmt !== '') {
- if ($type == 'LIKE'){
- like($access_token, $idlikecmt, $cookie);
- }else{
- camxuc($idlikecmt, $type, $cookie);
- }
- $nhanpage = nhantien($type.'CMT', $idlikecmt, $tokenacc);
- if ($nhanpage["success"] == 200) {
- $xu = $nhanpage["data"]["xu"];
- $xujob = $nhanpage["data"]["msg"];
- $dem++;
- hoanthanh($dem, $type.' CMT', $idlikecmt, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($delaybl);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }
- }
- }
- //group
- if ($listgr !== NULL) {
- $idgr = $listgr[$lap]["id"];
- if ($idgr !== '') {
- joingr($idgr,$cookie);
- $nhancmt = nhantien('GROUP', $idgr, $tokenacc);
- if ($nhancmt["success"] == 200) {
- $xu = $nhangr["data"]["xu"];
- $xujob = $nhangr["data"]["msg"];
- $dem++;
- hoanthanh($dem, 'GROUP ', $idgr, $xujob, $xu);
- if ( $dem >= $dungtool ){
- echo"\033[1;91mBạn đã làm xong \033[1;93m".$dem."\033[1;91m nhiệm vụ, bạn có muốn tiếp tục không (y/n): \033[1;93m";
- $stop = trim(fgets(STDIN));
- if ( $stop == "n" ){
- $dungtool = 999999;
- echo $trang."Bạn Đã Chọn Dừng Tool Số Xu Của Bạn Là: ".$vang.$xu."\n";
- echo $luc."Cảm Ơn Bạn Đã Sử Dụng Tool Của VPH Tool\n";
- exit;}
- else {
- echo $luc."Bạn Muốn Chạy Thêm Bao Nhiệm Nhiệm Vụ Nữa: $vang";
- $chaythem = trim (fgets(STDIN));
- $dungtool = $dungtool + $chaythem;}
- echo $luc."Bạn Muốn Chạy Cookie Mới Hay Cookie Cũ (y/n): $vang";
- $themtk = trim (fgets(STDIN));
- if ( $themtk == "y" ){
- $spam = 1;
- $themtk = 1;
- $khocookie=[];
- break;
- } else { continue; }
- }
- if($dem % $doinick == 0){
- $spam = 1; break;
- }
- if($dem % $xxxxx == 0){
- delay($delaybl);
- }
- $delay = rand($thoigianmin, $thoigianmax);
- delay($delay);
- }
- }}
- }
- }}}
- function api($url) {
- $head = array(
- "Host: traodoisub.com",
- "cache-control: max-age=0",
- "upgrade-insecure-requests: 1",
- "user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/E7FBAF",
- "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",
- "sec-fetch-site: none",
- "sec-fetch-mode: navigate",
- "sec-fetch-user: ?1",
- "sec-fetch-dest: document",
- //"accept-encoding: gzip, deflate, br",
- "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",
- );
- $ch = curl_init();
- curl_setopt_array($ch, array(
- CURLOPT_URL => $url,
- CURLOPT_CUSTOMREQUEST => "GET",
- CURLOPT_HTTPHEADER => $head,
- CURLOPT_SSL_VERIFYPEER => FALSE,
- CURLOPT_RETURNTRANSFER => 1
- ));
- $get = curl_exec($ch);
- curl_close($ch);
- return json_decode($get, true);
- }
- function nhantien($type, $id, $tokenacc) {
- $nhan = file_get_contents("https://traodoisub.com/api/coin/?type=$type&id=$id&access_token=$tokenacc");
- return json_decode($nhan, true);
- }
- function follow($access_token, $idtest, $cookie) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idtest.'/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, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 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_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 share($access_token,$id) {
- $ch=curl_init();
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/v2.0/me/feed');
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36');
- $data = array(
- 'privacy' => '{"value":"EVERYONE"}',
- 'message' => '',
- 'link' => 'https://mbasic.facebook.com/'.$id.'',
- 'access_token' => $access_token
- );
- curl_setopt($ch, CURLOPT_POST,count($data));
- curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
- $a = json_decode(curl_exec($ch), true);
- curl_close($ch);
- return $a;
- }
- function like($access_token, $id, $cookie) {
- $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, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 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_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 cmt($access_token, $idcmt, $cookie, $msg) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$idcmt.'/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, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 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_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 page($idpage, $cookie) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/'.$idpage);
- $head[] = "Connection: keep-alive";
- $head[] = "Keep-Alive: 300";
- $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
- $head[] = "Accept-Language: en-us,en;q=0.5";
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 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);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
- :'));
- $page = curl_exec($ch);
- if (explode('&refid=', explode('pageSuggestionsOnLiking=1&gfid=', $page)[1])[0]) {
- $get = explode('&refid=', explode('pageSuggestionsOnLiking=1&gfid=', $page)[1])[0];
- $link = 'https://mbasic.facebook.com/a/profile.php?fan&id='.$idpage.'&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($idcx, $type, $cookie) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/reactions/picker/?is_permalink=1&ft_id='.$idcx);
- $head[] = "Connection: keep-alive";
- $head[] = "Keep-Alive: 300";
- $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
- $head[] = "Accept-Language: en-us,en;q=0.5";
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 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);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect
- :'));
- $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 == '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 hoanthanh($dem, $type, $id, $xujob, $xu) {
- date_default_timezone_set("Asia/Ho_Chi_Minh");
- $today = date('H:i:s');
- $maul=rand(31,37);
- $maui="\033[1;".$maul."m";
- $kl = " \033[1;36m | \033[1;36m$dem\033[1;36m | \033[1;33m\033[1;31m | \033[1;35m$today\033[1;31m | \033[1;35m\033[1;31m | \033[1;32m$maui$type\033[1;31m | \033[1;33m\033[1;31m | \033[1;32m$id\033[1;31m | \033[1;35m | \033[1;31m\033[1;32m$xujob\033[1;31m | \033[1;33m | \033[1;31m\033[1;33m$xu\033[1;31m | \033[1;35m\n";
- for($i = 0; $i < strlen($kl); $i++){echo $kl[$i];usleep(2500);}
- }
- function delay ($delay){
- for($tt = $delay ;$tt> 0;$tt--){
- echo "\r\033[1;93m VPH Tools \033[1;91m ~> \033[1;92m LO \033[1;91m | $tt | ";
- usleep(150000);
- echo "\r\033[1;91m VPH Tools \033[0;33m ~> \033[0;37m LOA \033[0;31m | $tt | ";
- usleep(150000);
- echo "\r\033[1;92m VPH Tools \033[0;33m ~> \033[0;37m LOAD \033[0;31m | $tt | ";
- usleep(150000);
- echo "\r\033[1;94m VPH Tools \033[0;33m ~> \033[0;37m LOADI \033[0;31m | $tt | ";
- usleep(150000);
- echo "\r\033[1;95m VPH Tools \033[0;33m ~>\033[0;37m LOADIN \033[0;31m | $tt | ";
- usleep(150000);
- echo "\r\033[1;95m VPH Tools \033[0;33m ~>\033[0;37m LOADING \033[0;31m | $tt | ";
- usleep(150000);
- echo "\r\033[1;95m VPH Tools \033[0;33m ~>\033[0;37m LOADING.\033[0;31m | $tt | ";
- usleep(150000);}
- echo "\r\e[1;95m VPH Tool \r";
- }
- function laytoken($cookie) {
- $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, 'Mozilla/5.0 (Linux; Android 10; Mi 9T Pro) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 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_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);
- if (explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0]) {
- $access_token = explode('\",\"useLocalFilePreview', explode('accessToken\":\"', $access)[1])[0];
- }
- return $access_token;
- }
- function joingr($id,$cookie){
- $ch = curl_init();
- $head_fb=array(
- "Host:mbasic.facebook.com",
- "cache-control:max-age=0",
- "upgrade-insecure-requests:1",
- "save-data:on",
- "user-agent:Mozilla/5.0 (Linux; Android 10; RMX1929) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Mobile Safari/537.36",
- "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",
- "sec-fetch-site:cross-site",
- "sec-fetch-mode:navigate",
- "sec-fetch-user:?1",
- "sec-fetch-dest:document",
- "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",
- "cookie:".$cookie);
- curl_setopt_array ($ch, array (
- CURLOPT_URL => "https://mbasic.facebook.com/groups/$id?_rdr",
- CURLOPT_FOLLOWLOCATION => false,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_POST => 1,
- CURLOPT_HTTPGET => true,
- CURLOPT_SSL_VERIFYPEER => 0,
- CURLOPT_HTTPHEADER => $head_fb,
- CURLOPT_HEADER => true,
- CURLOPT_ENCODING => TRUE));
- $data = curl_exec($ch);
- // var_dump($data);
- if (strpos($data,"xs=deleted") == true){
- echo ( $red."Cookie die rồi\n");
- }
- $tìm =explode("/a/group/join/?",$data);
- $tìm1=explode('"',$tìm[1]);
- $fb=explode('name="fb_dtsg" value="',$data);
- $fb=explode('"',$fb[1]);
- $fbdtsg=htmlspecialchars_decode($fb[0]);
- $jaz=explode('name="jazoest" value="',$data);
- $jaz=explode('"',$jaz[1]);
- $url="https://mbasic.facebook.com/a/group/join/?".htmlspecialchars_decode($tìm1[0]);
- $data="fb_dtsg=$fbdtsg&jazoest=".$jaz[0];
- curl_setopt_array ($ch, array (
- CURLOPT_URL => $url,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_CUSTOMREQUEST => "POST",
- CURLOPT_POSTFIELDS => $data,
- CURLOPT_SSL_VERIFYPEER => 0,
- CURLOPT_HTTPHEADER => $head_fb));
- $xxx = curl_exec($ch);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement