Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error_reporting(0);
- session_start();
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- /***[ Color ]***/
- $xnhac = "\033[1;36m";
- $do = "\033[1;31m";
- $luc = "\033[1;32m";
- $vang = "\033[1;33m";
- $xduong = "\033[1;34m";
- $hong = "\033[1;35m";
- $trang = "\033[1;37m";
- $_SESSION["C_LIKE"] = " LIKE ";
- $_SESSION["C_LIKE2"] = "LIKE 2";
- $_SESSION["C_LIKE3"] = "LIKE 3";
- $_SESSION["C_CMT"] = " CMT ";
- $_SESSION["C_FOLLOW"] = "FOLLOW";
- $_SESSION["C_SHARE"] = "SHARE ";
- $_SESSION["C_PAGE"] = " PAGE ";
- $_SESSION["C_CXCMT"] = "CX CMT";
- $_SESSION["C_LOVE"] = " LOVE ";
- $_SESSION["C_CARE"] = " CARE ";
- $_SESSION["C_HAHA"] = " HAHA ";
- $_SESSION["C_WOW"] = " WOW ";
- $_SESSION["C_SAD"] = " SAD ";
- $_SESSION["C_ANGRY"] = "ANGRY ";
- $_SESSION["C_GROUP"] = "GROUP ";
- $thanh_xau = "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m";
- $thanh_dep = "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m";
- $thanhngang = "\033[1;32m════════════════════════════════════════════════════════════\n";
- $thanhngang1 = "\033[1;32m════════════════════════════════════════════════════════════\n";
- $daucau = "\n\033[1;31m [\033[1;37m✅\033[1;31m] \033[1;37m";
- $daucauc = "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m";
- /***[ Config ]***/
- $_SESSION['version'] = "2.0";
- @system('clear');
- $logo= "\033[1;93m
- \033[1;35m
- ╭╮╱╭┳━━━┳━━━┳━╮╱╭┳━━━╮╱╭━━━━┳━━━┳━━━┳╮
- ┃┃╱┃┃╭━╮┃╭━╮┃┃╰╮┃┃╭━╮┃╱┃╭╮╭╮┃╭━╮┃╭━╮┃┃
- ┃╰━╯┃┃╱┃┃┃╱┃┃╭╮╰╯┃┃╱╰╯╱╰╯┃┃╰┫┃╱┃┃┃╱┃┃┃
- ┃╭━╮┃┃╱┃┃╰━╯┃┃╰╮┃┃┃╭━┳━━╮┃┃╱┃┃╱┃┃┃╱┃┃┃╱╭╮
- ┃┃╱┃┃╰━╯┃╭━╮┃┃╱┃┃┃╰┻━┣━━╯┃┃╱┃╰━╯┃╰━╯┃╰━╯┃
- ╰╯╱╰┻━━━┻╯╱╰┻╯╱╰━┻━━━╯╱╱╱╰╯╱╰━━━┻━━━┻━━━╯
- \n";
- $logo = logo_kov();
- $useragent = "Mozilla/5.0 (Linux; Android 10; SM-A125F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36";
- $codeao = 'var m;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
- function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ha(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
- ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.Hd=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.Hd};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
- ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ja(aa(this))}})}return a});function ja(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
- function n(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}var ka="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},la;if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;ma=pa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
- var ra=la;function sa(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(ra)ra(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Af=b.prototype}
- ha("Promise",function(a){function b(g){this.B=0;this.Na=void 0;this.ua=[];this.ld=!1;var h=this.Wb();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.T=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.Xc=function(g){if(null==this.T){this.T=[];var h=this;this.Yc(function(){h.ze()})}this.T.push(g)};var e=da.setTimeout;c.prototype.Yc=function(g){e(g,0)};c.prototype.ze=function(){for(;this.T&&this.T.length;){var g=this.T;this.T=[];for(var h=
- 0;h<g.length;++h){var k=g[h];g[h]=null;try{k()}catch(l){this.Vd(l)}}}this.T=null};c.prototype.Vd=function(g){this.Yc(function(){throw g;})};b.prototype.Wb=function(){function g(l){return function(q){k||(k=!0,l.call(h,q))}}var h=this,k=!1;return{resolve:g(this.kf),reject:g(this.Fc)}};b.prototype.kf=function(g){if(g===this)this.Fc(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.uf(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;';
- $daucau2 = "\033[1;31m [\033[1;37m✅\033[1;31m] \033[1;37m";
- @system('clear');
- $logo= "\033[1;93m
- \033[1;35m
- ╭╮╱╭┳━━━┳━━━┳━╮╱╭┳━━━╮╱╭━━━━┳━━━┳━━━┳╮
- ┃┃╱┃┃╭━╮┃╭━╮┃┃╰╮┃┃╭━╮┃╱┃╭╮╭╮┃╭━╮┃╭━╮┃┃
- ┃╰━╯┃┃╱┃┃┃╱┃┃╭╮╰╯┃┃╱╰╯╱╰╯┃┃╰┫┃╱┃┃┃╱┃┃┃
- ┃╭━╮┃┃╱┃┃╰━╯┃┃╰╮┃┃┃╭━┳━━╮┃┃╱┃┃╱┃┃┃╱┃┃┃╱╭╮
- ┃┃╱┃┃╰━╯┃╭━╮┃┃╱┃┃┃╰┻━┣━━╯┃┃╱┃╰━╯┃╰━╯┃╰━╯┃
- ╰╯╱╰┻━━━┻╯╱╰┻╯╱╰━┻━━━╯╱╱╱╰╯╱╰━━━┻━━━┻━━━╯
- \n";
- $listnv = [];
- $namefile = 'TKMKTDS.txt';
- if (file_exists($namefile) != true) {
- } else {
- $data = fread(fopen($namefile, "r"), filesize($namefile));
- $usertds = explode('|', $data)[0];
- }
- if ($usertds == '') {
- $phanxu = "n";
- print "\033[1;32m ĐĂNG NHẬP TÀI KHOẢN TDS\n";
- } else {
- echo $logo;
- print "\033[1;32m Bạn Muốn Đăng Nhập Lại Tài khoản \033[1;33m$usertds\033[1;32m Không ? (y/n) : \033[1;33m";
- $phanxu = trim(fgets(STDIN));
- }
- if ($phanxu == "n" or $phanxu == "N") {
- unlink($namefile);
- }
- if (file_exists($namefile) != true) {
- echo $thanhngang1;
- print "$daucau2 \033[1;32mTài Khoản TDS : \033[1;35m";
- $username = trim(fgets(STDIN));
- print "$daucau2 \033[1;32mMật Khẩu TDS : \033[1;35m";
- $password = trim(fgets(STDIN));
- $file = fopen($namefile, "w");
- fwrite($file, '' . $username . '|' . $password . '');
- fclose($file);
- }
- $data = fread(fopen($namefile, "r"), filesize($namefile));
- $username = explode('|', $data)[0];
- $password = explode('|', $data)[1];
- $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, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
- $login = array('username' => $username, 'password' => $password, '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);
- if ($source != 1 && $source != '') {
- echo $thanhngang1;
- print "$daucau2\033[1;92m Đăng Nhập Thành Công Tên Tài Khoản TDS : \033[1;93m" . $username . "\n";
- } else {
- exit("$daucau2\033[1;91m Đăng nhập thất bại, kiểm tra lại tài khoản mật khẩu!");
- }
- echo $thanhngang1;
- //print "$daucau2 \033[1;32mNhập Cookie Facebook : \033[1;35m";
- $khoToken = [];
- if (file_exists("File_cookie_FB.txt")) {
- echo $do . "[" . $trang . "1" . $do . "]" . $xnhac . " Thêm Cookie Mới Facebook Để Chạy\n";
- echo $do . "[" . $trang . "2" . $do . "]" . $xnhac . " Chạy Cookie Facebook Cũ\n";
- echo $luc . "Nhập" . $trang . " 1 " . $luc . "Hoặc" . $trang . " 2 " . $luc . ": $vang ";
- $choice = trim(fgets(STDIN));
- if ($choice == '1') {
- unlink("File_cookie_FB.txt");
- }
- }
- if (!file_exists("File_cookie_FB.txt")) {
- echo "\n\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32mNhập Cookie FB muốn dừng ấn Enter\033[1;33m \n";
- unlink("File_cookie_FB.txt");
- for ($a = 1; $a < 999999; $a++) {
- echo "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32mNhập Cookie Thứ $a: $vang";
- $nhapck = (string)trim(fgets(STDIN));
- if ($nhapck == '') {
- break;
- }
- array_push($khoToken, $nhapck);
- }
- $js = json_encode($khoToken);
- $k = fopen("File_cookie_FB.txt", "a+");
- fwrite($k, $js);
- fclose($k);
- $demcki = count($khoToken);
- }
- $khoToken = json_decode(fread(fopen("File_cookie_FB.txt", "r"), filesize("File_cookie_FB.txt")), true);
- $demcki = count($khoToken);
- /*
- $cookie = trim(fgets(STDIN));
- $access_token = lay_token_moi($cookie);
- if ($access_token != "EAAG") {
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'id'};
- $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token='.$access_token))->{'name'};
- echo $thanhngang1;
- usleep(10000);
- print "$daucau2 \033[1;92m TÊN FB : \033[1;93m".$tenfb."\033[1;97m ➜ \033[1;92mStatus : \033[1;93mLIVE\n";
- echo $thanhngang1;
- sleep(1.5);
- } else {
- print "$daucau2 \033[1;92mCookie Không Hoạt Động Hoặc Vui Lòng Không Dùng Acc Tây!!!\n";exit;
- }
- $d = datnick($idfb);
- if ($d == 1)
- {
- @system('clear');
- echo $logo;
- echo $thanhngang;
- print "$daucau2 \033[1;92mĐã Đặt ID \033[1;93m".$idfb."\033[1;92m FB \033[1;93m".$tenfb."\033[1;92m Làm Nick Chạy!!\n";
- echo $thanhngang1;
- } else {
- print "$daucau2 \033[1;92mCấu Hình Thất Bại,Vui Lòng Thêm ID \033[1;93m".$idfb."\033[1;92m Làm Cấu Hình TDS .\n"; die;
- }
- */
- @system('clear');
- echo $logo;
- echo $thanhngang;
- if (!file_exists('Setting_TDS_Cookie.txt')) {
- $settings = json_encode(['delaygr' => '23', 'delaylike' => '6', 'delayfollow' => '20', 'delaycmt' => '15', 'delaypage' => '20', 'delayshare' => '35', 'delaycx' => '5', 'delaycxcmt' => '5', 'nhiemvu' => '120', 'block' => '200']);
- file_put_contents('Setting_TDS_Cookie.txt', $settings);
- }
- if (file_exists('Setting_TDS_Cookie.txt')) {
- $json = json_decode(file_get_contents('Setting_TDS_Cookie.txt'), true);
- $a = "$daucau2 \033[1;92mDelay LikePost Hiện Tại Là \033[1;93m" . $json["delaylike"] . "\033[1;0m Giây
- $daucau2 \033[1;92mDelay Follow Hiện Tại Là \033[1;93m" . $json["delayfollow"] . "\033[1;0m Giây
- $daucau2 \033[1;92mDelay Comment Hiện Tại Là \033[1;93m" . $json["delaycmt"] . "\033[1;0m Giây
- $daucau2 \033[1;92mDelay Page Hiện Tại Là \033[1;93m" . $json["delaypage"] . "\033[1;0m Giây
- $daucau2 \033[1;92mDelay SharePost Hiện Tại Là \033[1;93m" . $json["delayshare"] . "\033[1;0m Giây
- $daucau2 \033[1;92mDelay Cảm Xúc Hiện Tại Là \033[1;93m" . $json["delaycx"] . "\033[1;0m Giây
- $daucau2 \033[1;92mDelay Cảm Xúc Cmt Hiện Tại Là \033[1;93m" . $json["delaycxcmt"] . "\033[1;0m Giây
- $daucau2 \033[1;92mDelay Group Hiện Tại Là \033[1;93m" . $json["delaygr"] . "\033[1;0m Giây
- \033[1;32m ══════════════════════════════════════════════════════════════
- $daucau2 \033[1;92mKích Hoạt Chống Block Sau \033[1;93m" . $json["nhiemvu"] . "\033[1;0m Nhiệm Vụ
- $daucau2 \033[1;92mDelay Chống Block Hiện Tại Là \033[1;93m" . $json["block"] . "\033[1;0m Giây
- \033[1;32m ══════════════════════════════════════════════════════════════
- $daucau2 \033[1;92mNhập \033[1;91m[\033[1;93m1\033[1;91m] \033[1;0mTiếp Tục Sử Dụng Settings_Delay Này!
- $daucau2 \033[1;92mNhập \033[1;91m[\033[1;93m2\033[1;91m] \033[1;0mSử Dụng Delay Được Đề Xuất Bởi Tool!
- $daucau2 \033[1;92mNhập \033[1;91m[\033[1;93m3\033[1;91m] \033[1;0mXoá Delay Này Và Tạo Delay Do Bạn Đặt Ra!
- \033[1;32m ══════════════════════════════════════════════════════════════
- $daucau2 \033[1;92mNhập số : \033[1;93m";
- $len = strlen($a);
- for ($x = 0; $x < $len; $x++) {
- print $a[$x];
- usleep(800);
- }
- $_CHOOSE['settingdelay'] = trim(fgets(STDIN));
- echo $thanhngang1;
- if ($_CHOOSE['settingdelay'] == 1) {
- print "$daucau2 \033[1;92mĐã Tiếp Tục Sử Dụng Settings_Delay Này!!\n";
- $_SESSION['delaylike'] = $json["delaylike"];
- $_SESSION['delayfollow'] = $json["delayfollow"];
- $_SESSION['delaycmt'] = $json["delaycmt"];
- $_SESSION['delayshare'] = $json["delayshare"];
- $_SESSION['delaypage'] = $json["delaypage"];
- $_SESSION['delaycx'] = $json["delaycx"];
- $_SESSION['delaycxcmt'] = $json["delaycmt"];
- $_SESSION['delaygr'] = $json["delaygr"];
- $_SESSION['nhiemvu'] = $json["nhiemvu"];
- $_SESSION['block'] = $json["block"];
- sleep(2);
- //end choose 1
- }
- if ($_CHOOSE['settingdelay'] == 2) {
- $_SESSION['delaylike'] = $delaylike = rand(0, 5);
- $_SESSION['delayfollow'] = $delaysub = rand(25, 40);
- $_SESSION['delaycmt'] = $delaycmt = rand(15, 25);
- $_SESSION['delaypage'] = $delaypage = rand(25, 40);
- $_SESSION['delayshare'] = $delayshare = rand(20, 35);
- $_SESSION['delaycx'] = $delaycx = rand(0, 5);
- $_SESSION['delaycxcmt'] = $delaycxcmt = rand(0, 10);
- $_SESSION['delaygr'] = $delaygr = rand(15, 30);
- $_SESSION['nhiemvu'] = $nhiemvu = rand(100, 200);
- $_SESSION['block'] = $block = rand(100, 180);
- print "$daucau2 \033[1;92mDelay LikePost Được Đề Xuất : \033[1;93m" . $delaylike . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay Follow Được Đề Xuất : \033[1;93m" . $delaysub . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay Comment Được Đề Xuất : \033[1;93m" . $delaycmt . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay Page Được Đề Xuất : \033[1;93m" . $delaypage . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay SharePost Được Đề Xuất : \033[1;93m" . $delayshare . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay cảm Xúc Được Đề Xuất : \033[1;93m" . $delaycx . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay Cảm Xúc Cmt Được Đề Xuất : \033[1;93m" . $delaycxcmt . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay Group Được Đề Xuất : \033[1;93m" . $delaygr . "\033[1;92m Giây\n";
- usleep(100000);
- print "$daucau2 \033[1;92mChống Block Sau : \033[1;93m" . $nhiemvu . "\033[1;92m Nhiệm Vụ\n";
- usleep(100000);
- print "$daucau2 \033[1;92mDelay Chống Block : \033[1;93m" . $block . "\033[1;92m Giây\n";
- usleep(100000);
- sleep(2);
- //end choose 2
- }
- if ($_CHOOSE['settingdelay'] == 3) {
- if (file_exists('Setting_TDS_Cookie.txt')) {
- system('rm Setting_TDS_Cookie.txt');
- }
- print "$daucau2 \033[1;92mDelay Like : \033[1;33m";
- $_SESSION['delaylike'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;92mDelay Sub : \033[1;33m";
- $_SESSION['delayfollow'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;92mDelay Comment : \033[1;33m";
- $_SESSION['delaycmt'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;32mDelay Fanpage : \033[1;35m";
- $_SESSION['delaypage'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;32mDelay Cảm Xúc : \033[1;35m";
- $_SESSION['delaycx'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;92mDelay Share : \033[1;33m";
- $_SESSION['delayshare'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;32mDelay Reaction Comment : \033[1;35m";
- $_SESSION['delaycxcmt'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;32mDelay Group : \033[1;35m";
- $_SESSION['delaygr'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;92mSau bao nhiêu nhiệm vụ thì Nghỉ Ngơi: \033[1;33m";
- $_SESSION['nhiemvu'] = trim(fgets(STDIN));
- print "$daucau2 \033[1;92mBạn muốn sau\033[1;33m " . $_SESSION['nhiemvu'] . "\033[1;32mnhiệm vụ thì Nghỉ bao nhiêu giây : \033[1;33m";
- $_SESSION['block'] = trim(fgets(STDIN));
- }
- echo $thanhngang1;
- print "$daucau2 \033[1;95mSuccessfully\033[1;92m : Đã Lưu Setting_Delay Này!!\n";
- echo $thanhngang1;
- $setting_delay = json_encode([
- 'delaylike' => $_SESSION['delaylike'],
- 'delayfollow' => $_SESSION['delayfollow'],
- 'delaycmt' => $_SESSION['delaycmt'],
- 'delaypage' => $_SESSION['delaypage'],
- 'delayshare' => $_SESSION['delayshare'],
- 'delaycx' => $_SESSION['delaycx'],
- 'delaycxcmt' => $_SESSION['delaycxcmt'],
- 'delaygr' => $_SESSION['delaygr'],
- 'nhiemvu' => $_SESSION['nhiemvu'],
- 'block' => $_SESSION['block'],
- ]);
- file_put_contents('Setting_TDS_Cookie.txt', $setting_delay);
- sleep(2.5);
- //end choose 3
- }
- $url = "https://traodoisub.com/scr/user.php";
- $head = array(
- "Host: traodoisub.com",
- "accept: application/json, text/javascript, */*; q=0.01",
- "x-requested-with: XMLHttpRequest",
- "save-data: on",
- "user-agent: Mozilla/5.0 (Linux; Android 10; SM-A125F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36",
- "sec-fetch-site: same-origin",
- "sec-fetch-mode: cors",
- "sec-fetch-dest: empty",
- "referer: https://traodoisub.com/home/"
- );
- $ch = curl_init();
- curl_setopt_array($ch, array(
- CURLOPT_URL => $url,
- CURLOPT_FOLLOWLOCATION => TRUE,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_POST => 1,
- CURLOPT_HTTPGET => true,
- CURLOPT_SSL_VERIFYPEER => 0,
- CURLOPT_COOKIEFILE => "TDS.txt",
- CURLOPT_HTTPHEADER => $head,
- CURLOPT_ENCODING => TRUE
- ));
- $data = curl_exec($ch);
- curl_close($ch);
- $json = json_decode($data, true);
- $sodu = $json["xu"];
- $user = $username;
- $nhiemvu = $_SESSION['nhiemvu'];
- @system('clear');
- echo $logo;
- echo $thanhngang;
- print "$daucau2 \033[1;32mAuto TDS\033[1;37m Cookie\033[1;32m Đa Luồng\n";
- usleep($xx);
- print "$daucau2 \033[1;92mĐã lưu\033[1;37m $demcki\033[1;32m Cookie FB \n";
- echo $thanhngang1;
- print "$daucau2 \033[1;92mTên Tài Khoản TDS : \033[1;33m$user\n";
- print "$daucau2 \033[1;92mXu Hiện Tại : \033[1;33m$sodu\033[1;32m Xu\n";
- //echo $thanhngang;
- /*
- print "$daucau2 \033[1;32mNhiệm Vụ Like (y/n) : \033[1;33m";
- if (trim(fgets(STDIN)) == 'y'){
- array_push($listnv,'like');
- }
- print "$daucau2 \033[1;32mNhiệm Vụ Sub (y/n) : \033[1;33m";
- if (trim(fgets(STDIN)) == 'y'){
- array_push($listnv,'sub');
- }
- print "$daucau2 \033[1;32mNhiệm Vụ Comment (y/n) : \033[1;35m";
- if (trim(fgets(STDIN)) == 'y'){
- array_push($listnv,'cmt');
- }
- print "$daucau2 \033[1;32mNhiệm Vụ Fanpage (y/n) : \033[1;35m";
- if (trim(fgets(STDIN)) == 'y'){
- array_push($listnv,'page');
- }
- print "$daucau2 \033[1;32mNhiệm Vụ Cảm Xúc (y/n) : \033[1;35m";
- if (trim(fgets(STDIN)) == 'y'){
- array_push($listnv,'cx');
- }
- print "$daucau2 \033[1;32mNhiệm Vụ Share (y/n) : \033[1;35m";
- if (trim(fgets(STDIN)) == 'y'){
- array_push($listnv,'share');
- }
- print "$daucau2 \033[1;32mNhiệm Vụ Cảm Xúc Comment (y/n) : \033[1;35m";
- if (trim(fgets(STDIN)) == 'y'){
- array_push($listnv,'cxcmt');
- }
- */
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "1" . $do . "]" . $luc . " Nhiệm Vụ Like\n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "2" . $do . "]" . $luc . " Nhiệm Vụ Like 2\n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "3" . $do . "]" . $luc . " Nhiệm Vụ Like 3\n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "4" . $do . "]" . $luc . " Nhiệm Vụ Follow\n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "5" . $do . "]" . $luc . " Nhiệm Vụ Comment \n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "6" . $do . "]" . $luc . " Nhiệm Vụ Share $vang(Bảo Trì) \n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "7" . $do . "]" . $luc . " Nhiệm Vụ Cảm Xúc \n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "8" . $do . "]" . $luc . " Nhiệm Vụ Cảm Xúc Comment \n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "9" . $do . "]" . $luc . " Nhiệm Vụ Like Page \n";
- echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "10" . $do . "]" . $luc . " Nhiệm Vụ Tham Gia Group \n";
- //echo $daucau2 . $luc . "Nhập " . $do . "[" . $vang . "8" . $do . "]" . $luc . " Nhiệm Vụ Join Group \n";
- echo $thanhngang;
- echo $daucau2 . $luc . "Nhập Số Để Chạy Nhiệm Vụ$trang (" . $vang . "Ví dụ: 1+2+3" . $trang . "): $vang";
- $loainvtt = trim(fgets(STDIN));
- echo $daucau2 . $luc . "Đổi acc bao nhiêu nhiệm vụ: \033[1;33m";
- $doiacc = (int)trim(fgets(STDIN));
- //echo $daucau2 . $luc . "Bạn có muốn tạm dừng khi hết nhiệm vụ(y/n): $vang";
- //$dunghetnv = trim(fgets(STDIN));
- echo $daucau2 . $luc . "Bạn có muốn nhập lại token khi die(y/n): $vang";
- $nhaptkdie = trim(fgets(STDIN));
- //echo $daucau2."Ẩn id FB của bạn (y/n): \033[1;33m";
- //$anid = trim(fgets(STDIN));
- if (strpos($loainvtt, '1') !== false) {
- array_push($listnv, 'like');
- }
- if (strpos($loainvtt, '2') !== false) {
- array_push($listnv, 'like2');
- }
- if (strpos($loainvtt, '3') !== false) {
- array_push($listnv, 'like3');
- }
- if (strpos($loainvtt, '4') !== false) {
- array_push($listnv, 'sub');
- }
- if (strpos($loainvtt, '5') !== false) {
- array_push($listnv, 'cmt');
- }
- if (strpos($loainvtt, '6') !== false) {
- array_push($listnv, 'share');
- }
- if (strpos($loainvtt, '7') !== false) {
- array_push($listnv, 'cx');
- }
- if (strpos($loainvtt, '8') !== false) {
- array_push($listnv, 'cxcmt');
- }
- if (strpos($loainvtt, '9') !== false) {
- array_push($listnv, 'page');
- }
- if (strpos($loainvtt, '10') !== false) {
- array_push($listnv, 'group');
- }
- while (true) {
- while (true) {
- if (count($khoToken) == 0) {
- echo $daucau2 . "ac bị checkpoint \n";
- echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
- unlink("File_cookie_FB.txt");
- for ($a = 1; $a < 999999; $a++) {
- echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
- $nhapck = (string)trim(fgets(STDIN));
- if ($nhapck == '') {
- break;
- }
- array_push($khoToken, $nhapck);
- }
- $js = json_encode($khoToken);
- $k = fopen("File_cookie_FB.txt", "a+");
- fwrite($k, $js);
- fclose($k);
- }
- $spam = 0;
- for ($xz = 0; $xz < count($khoToken); $xz++) {
- $chuacauhinh = "0";
- while ($chuacauhinh == "0") {
- if ($demhetnv2 == (count($khoToken) * 2)) {
- $demhetnv2 = 0;
- $demhetnv = 0;
- if ($dunghetnv == "y") {
- echo $trang . "\r‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿‿\n";
- echo $daucau2 . $luc . "Đang tìm nhiệm vụ ";
- echo $daucau1 . $luc . "Ấn enter để chạy tiếp hoặc nhập 1 để thêm Cookie: $vang";
- $lloafssd = trim(fgets(STDIN));
- if ($lloafssd == '1') {
- echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
- unlink("File_cookie_FB.txt");
- for ($a = 1; $a < 999999; $a++) {
- echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
- $nhapck = (string)trim(fgets(STDIN));
- if ($nhapck == '') {
- break;
- }
- array_push($khoToken, $nhapck);
- }
- $js = json_encode($khoToken);
- $k = fopen("File_cookie_FB.txt", "a+");
- fwrite($k, $js);
- fclose($k);
- }
- //$data = fread(fopen($namefile, "r"), filesize($namefile));
- //$_SESSION["username"] = explode('|', $data)[0];
- //$_SESSION['password'] = explode('|', $data)[1];
- $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, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
- $login = array('username' => $username, 'password' => $password, '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);
- }
- }
- $spam = 0;
- $cookie = $khoToken[$xz];
- ketnoimangV1();
- $token_eaab = lay_token_moi_v1($cookie);
- $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
- //$page = thongtin('me', $cookie, $useragent);
- //$idfb = explode('%',explode('?lst=', $page)[1])[0];
- if ($tenfb == '') {
- $page = thongtin('me', $cookie, $useragent);
- $idfb = explode('%', explode('?lst=', $page)[1])[0];
- }
- if ($idfb == '') {
- if ($idfb == '') {
- ketnoimangV1();
- $token_eaab = lay_token_moi_v1($cookie);
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
- $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
- if ($tenfb == '') {
- $page = thongtin('me', $cookie, $useragent);
- $tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
- $idfb = explode('%', explode('?lst=', $page)[1])[0];
- }
- if ($tenfb == '') {
- ketnoimangV1();
- $token_eaab = lay_token_moi_v1($cookie);
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
- $tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
- if ($idfb == '') {
- $page = thongtin('me', $cookie, $useragent);
- $tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
- $idfb = explode('%', explode('?lst=', $page)[1])[0];
- }
- if ($idfb == '') {
- $tenfb = namefb($cookie);
- $idfb = explode(';', explode('c_user=', $cookie)[1])[0];
- if ($tenfb == '') {
- echo $red . "Cookie die ac yếu";
- array_splice($khoToken, $xz, 1);
- $spam = 1;
- break;
- }
- }
- }
- }
- } else {
- ketnoimangV1();
- // Lấy ID FB
- //$token_eaab = lay_token_moi_v1($cookie);
- //$tenfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'name'};
- // $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
- //$page = thongtin('me', $cookie, $useragent);
- //lấy tên
- //$tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
- //$idfb = explode('%',explode('?lst=', $page)[1])[0];
- if ($idfb != "") {
- //$tenfb11 = $tenfb;
- while (true) {
- $spam = 1;
- $demlgin++;
- if ($demlgin <= 1 or $demlgin > 30) {
- $demlgin = 1;
- $data = fread(fopen($namefile, "r"), filesize($namefile));
- $username = explode('|', $data)[0];
- $password = explode('|', $data)[1];
- $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, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
- $login = array('username' => $username, 'password' => $password, '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);
- }
- //if((int)date("i") > $timetam){
- //logintds();
- //}else{usleep(1);}
- ketnoimangV1();
- $d = datnick($idfb);
- if ($d == 1) {
- $demlgin = 2;
- //if($anid == "y"){
- // $idfb = substr($idfb, -4); // returns "f"
- //$idfb = "##########".$idfb;
- //}else{usleep(1);}
- $k = fopen("Run_tool.txt", "w+");
- $js = $codeao;
- fwrite($k, $js);
- fclose($k);
- echo "\r \r";
- $demhetnv = 0;
- if ($tenfb == "") {
- $tenfb = namefb($cookie);
- }
- echo "\033[1;32m────────────────────────────────────────────────────────────\n";
- echo $vang."Đang Cấu Hình ID: ".$luc.$idfb." ".$vang."Tên FB: ".$luc.$tenfb."\n";
- echo "\033[1;32m────────────────────────────────────────────────────────────\n";
- $chuacauhinh = "1";
- $spam = 0;
- } else {
- echo "\r \r";
- echo $do . "Cấu hình thất bại vui lòng thêm FB $idfb vào cấu hình";
- }
- if ($spam == 0) {
- break;
- } else {
- usleep(1);
- }
- }
- } else {
- echo "\r \r";
- echo $do . "Cookie die ac yếu \r";
- array_splice($khoToken, $xz, 1);
- $spam = 1;
- break;
- }
- }
- }
- while (true) {
- if ($spam == 1) {
- break;
- }
- // $page = thongtin('me', $cookie, $useragent);
- // $idfb = explode('%',explode('?lst=', $page)[1])[0];
- // if ($idfb == '') {
- // echo $red . "Cookie die";
- // array_splice($khoToken, $xz, 1);
- // $spam = 1; break;
- // }
- $sodu = getxu();
- $rand = $listnv[array_rand($listnv, 1)];
- ketnoimangV1();
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
- if ($idfb == '') {
- $page = thongtin('me', $cookie, $useragent);
- $idfb = explode('%', explode('?lst=', $page)[1])[0];
- }
- if ($idfb == '') {
- ketnoimangV1();
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
- if ($idfb == '') {
- $page = thongtin('me', $cookie, $useragent);
- $idfb = explode('%', explode('?lst=', $page)[1])[0];
- }
- if ($idfb == '') {
- ketnoimangV1();
- $idfb = json_decode(file_get_contents('https://graph.facebook.com/me/?access_token=' . $token_eaab))->{'id'};
- if ($idfb == '') {
- $page = thongtin('me', $cookie, $useragent);
- $idfb = explode('%', explode('?lst=', $page)[1])[0];
- }
- if ($idfb == '') {
- ketnoimangV1();
- $tenfb = namefb($cookie);
- $idfb = explode(';', explode('c_user=', $cookie)[1])[0];
- if ($tenfb == '') {
- ketnoimangV1();
- $dem_check_die++;
- if ($dem_check_die > 2) {
- $dem_check_die = 0;
- echo $red . "Cookie die";
- array_splice($khoToken, $xz, 1);
- if ($nhaptkdie == "y" or $nhaptkdie == "Y") {
- echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
- unlink("File_cookie_FB.txt");
- for ($a = 1; $a < 999999; $a++) {
- echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
- $nhapck = (string)trim(fgets(STDIN));
- if ($nhapck == '') {
- break;
- }
- array_push($khoToken, $nhapck);
- }
- $js = json_encode($khoToken);
- $k = fopen("File_cookie_FB.txt", "a+");
- fwrite($k, $js);
- fclose($k);
- }
- $spam = 1;
- break;
- }
- }
- }
- /*
- if ($idfb == '') {
- echo $red . "Cookie $vang $tenfb11 $do die";
- array_splice($khoToken, $xz, 1);
- if ($nhaptkdie == "y" or $nhaptkdie == "Y") {
- echo $daucau2 . "Nhập Cookie Facebook.$yellow Dừng Thì Enter Nha\n";
- for ($a = 1; $a < 999999; $a++) {
- echo $daucau2 . "Nhập Cookie Thứ $a: $vang";
- $nhapck = (string)trim(fgets(STDIN));
- if ($nhapck == '') {
- break;
- }
- array_push($khoToken, $nhapck);
- }
- }
- $spam = 1;
- break;
- }
- */
- }
- }
- //nvlike
- if ($rand == 'like') {
- //ketnoimangV1();
- $x = getnv('like');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mLikePost tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- $g = camxuc($id, 'LIKE', $cookie);
- // $page = thongtin('me', $cookie, $useragent);
- // $idfb = explode('%',explode('?lst=', $page)[1])[0];
- // if ($idfb == '') {
- // echo $red . "Cookie die";
- // array_splice($khoToken, $xz, 1);
- // $spam = 1; break;
- // }
- }
- $s = nhantien('like', 'like', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 300;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_LIKE"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +300 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaylike');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- //like2
- } elseif ($rand == 'like2') {
- //ketnoimangV1();
- $x = getnv('likegiare');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mLike 2 tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- $g = camxuc($id, 'LIKE', $cookie);
- }
- $s = nhantien('likegiare', 'likegiare', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 150;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_LIKE2"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +150 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaylike');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- //nvsub
- } elseif ($rand == 'like3') {
- //ketnoimangV1();
- $x = getnv('likesieure');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mLike 2 tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- $g = camxuc($id, 'LIKE', $cookie);
- }
- $s = nhantien('likesieure', 'likesieure', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 99;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_LIKE3"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +99 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaylike');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- //nvsub
- } else if ($rand == 'sub') {
- //ketnoimangV1();
- $x = getnv('follow');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mSub tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- $g = follow($id, $cookie);
- if (strpos($g[0], 'Đăng nhập') !== false) {
- // $page = thongtin('me', $cookie, $useragent);
- // //lấy tên
- // $tenfb = explode('<', explode('>', explode('</span>', explode('<span>', $page)[2])[0])[1])[0];
- // $idfb = explode('%',explode('?lst=', $page)[1])[0];
- // if ($idfb != '') {
- // } else {
- // echo "\r";
- // echo " \r";
- // echo "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m" . $red . "Cookie Die\n";
- // array_splice($khocookie, $xz, 1);
- // $spam = 1;
- // break;
- // }
- } elseif (strpos($g[1], 'Tài khoản của bạn hiện bị hạn chế') !== false) {
- echo " \r";
- echo "\033[1;31m [\033[1;37m✅\033[1;31m]\033[1;37m => \033[1;32m" . $red . "Đã Bị Block Follow\n";
- array_splice($khocookie, $xz, 1);
- $spam = 1;
- break;
- } elseif (strpos($g[1], 'loi') !== false) {
- } else {
- $s = nhantien('follow', 'follow', $id);
- if ($idfb == "100011081416081") {
- huyfollow($id, $useragent, $cookie);
- }
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- if ($s == 2) {
- $nv += 1;
- $sodu += 600;
- $d += 1;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m FOLLOW \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_FOLLOW"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delayfollow');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- }
- }
- } else if ($rand == 'cxcmt') {
- //ketnoimangV1();
- $x = getnv('reactioncmt');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- $type = $info["data"]["" . $d . ""]["type"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mReactionCMT tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- $g = reaction_cmt($id, $idfb, $type, $cookie);
- // $page = thongtin('me', $cookie, $useragent);
- // $idfb = explode('%',explode('?lst=', $page)[1])[0];
- // if ($idfb == '') {
- // echo $red . "Cookie die";
- // array_splice($khoToken, $xz, 1);
- // $spam = 1; break;
- // }
- }
- $s = nhantien($type, 'reactioncmt', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = explode('_', $id)[1];
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 600;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m".$type."|CMT \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
- if (strpos($type, 'LIKE')) {
- $type = ' LIKE CMT ';
- }
- if (strpos($type, 'LOVE')) {
- $type = ' LOVE CMT ';
- }
- if (strpos($type, 'CARE')) {
- $type = ' CARE CMT ';
- }
- if (strpos($type, 'HAHA')) {
- $type = ' HAHA CMT ';
- }
- if (strpos($type, 'WOW')) {
- $type = ' WOW CMT ';
- }
- if (strpos($type, 'SAD')) {
- $type = ' SAD CMT ';
- }
- if (strpos($type, 'ANGRY')) {
- $type = ' ANGRY CMT';
- }
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m | \033[1;93m" . $type . "\033[1;91m | \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaycxcmt');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- } else if ($rand == 'page') {
- //ketnoimangV1();
- $x = getnv('fanpage');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mPAGE tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- $g = page($id, $cookie);
- $s = nhantien('fanpage', 'fanpage', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 600;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m PAGE \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_PAGE"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaypage');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- }
- } else if ($rand == 'share') {
- //ketnoimangV1();
- $x = getnv('share');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mShare tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- share($id, $cookie);
- $s = nhantien('share', 'share', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 800;
- $duocne = $duocne + 1;
- // $tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m SHARE \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+800 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_SHARE"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +800 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(1500);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delayshare');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- }
- } else if ($rand == 'cx') {
- //ketnoimangV1();
- $x = getnv('reaction');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- $type = $info["data"]["" . $d . ""]["type"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mReaction tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- camxuc($id, $type, $cookie);
- $tp = $type;
- $s = nhantien($tp, 'reaction', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 400;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m".$type." \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+400 \033[1;31m| \033[1;33m".$sodu."\n";
- if (strpos($type, 'LIKE')) {
- $type = $_SESSION["C_LIKE"];
- }
- if (strpos($type, 'LOVE')) {
- $type = $_SESSION["C_LOVE"];
- }
- if (strpos($type, 'CARE')) {
- $type = $_SESSION["C_CARE"];
- }
- if (strpos($type, 'HAHA')) {
- $type = $_SESSION["C_HAHA"];
- }
- if (strpos($type, 'WOW')) {
- $type = $_SESSION["C_WOW"];
- }
- if (strpos($type, 'SAD')) {
- $type = $_SESSION["C_SAD"];
- }
- if (strpos($type, 'ANGRY')) {
- $type = $_SESSION["C_ANGRY"];
- }
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m | \033[1;93m" . $type . "\033[1;91m | \033[1;97m" . $id . "\033[1;91m |\033[1;92m +400 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(1500);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaycx');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- }
- } elseif ($rand == 'cmt') {
- //ketnoimangV1();
- $x = getnv('comment');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- $msg = $info["data"]["" . $d . ""]["msg"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mCMT tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- //$g = cmt($access_token, $id, $cookie, $msg);
- $g = cmt_fb_cookie_new($id, $cookie, $msg);
- // $page = thongtin('me', $cookie, $useragent);
- // $idfb = explode('%',explode('?lst=', $page)[1])[0];
- // if ($idfb == '') {
- // echo $red . "Cookie die";
- // array_splice($khoToken, $xz, 1);
- // $spam = 1; break;
- // } else {
- $s = nhantien('like', 'comment', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 600;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m CMT \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+600 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_CMT"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +600 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\033[1;96m $msg\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaycmt');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- //}
- }
- }
- }
- } elseif ($rand == 'group') {
- //ketnoimangV1();
- $x = getnv('group');
- if ($x != "") {
- $info = json_decode($x, true);
- $d = "0";
- while (true) {
- $id = $info["data"]["" . $d . ""]["id"];
- if ($id < '1') {
- print "$daucau2 \033[1;34mGroup tạm thời hết nhiệm vụ\r";
- if (count($khoToken) > 1) {
- $demhetnv++;
- }
- if ($demhetnv == 4) {
- $spam = 1;
- }
- break;
- } else {
- $demhetnv = 0;
- $d += 1;
- //ketnoimangV1();
- $g = group_fb($id, $useragent, $cookie);
- $s = nhantien('group', 'group', $id);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- $t = date('H:i:s');
- $rd = rand(1, 7);
- $id = substr($id . " ", 0, 17);
- if ($s == 2) {
- $nv += 1;
- $sodu += 1400;
- $duocne = $duocne + 1;
- //$tt = " \033[1;31m[\033[1;30m".$ytb."\033[1;31m]\033[1;33m[".$duocne."\033[1;33m] \033[1;31m| \033[1;36m$t\033[1;31m | \033[1;3".$rd."m LIKE \033[1;31m| \033[1;30mSUCCESS \033[1;31m| \033[1;32m+300 \033[1;31m| \033[1;33m".$sodu."\n";
- $tt = "\r\033[1;91m[\033[1;93m" . $duocne . "\033[1;91m]\033[1;91m | \033[1;96m" . date("H:i") . "\033[1;91m |\033[1;93m" . $_SESSION["C_GROUP"] . "\033[1;91m| \033[1;97m" . $id . "\033[1;91m |\033[1;92m +1400 \033[1;91m| \033[1;93m" . $sodu . "\e[0m\033[1;91m |\n";
- for ($i = 1; $i < (strlen($tt) + 1); $i++) {
- print $tt[$i];
- usleep(200);
- }
- if ($spam == 1) {
- break;
- }
- if (count($khoToken) > 1) {
- if ($duocne % $doiacc == 0) {
- $spam = 1;
- break;
- } else {
- usleep(1);
- }
- } else {
- usleep(1);
- }
- loadtime('delaygr');
- if ($nv == $nhiemvu) {
- chongbl('block');
- $nv = "0";
- }
- } else {
- print "\r";
- }
- }
- }
- //nvsub
- }
- }
- }
- }
- }
- }
- function thongtin($id, $cookie, $useragent)
- {
- $ch = curl_init();
- $header = array(
- "Host:m.facebook.com",
- "user-agent:$useragent",
- "accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "cookie:$cookie",
- );
- $linkbv = 'https://m.facebook.com/' . $id . '/about';
- curl_setopt($ch, CURLOPT_URL, $linkbv);
- $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, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
- curl_setopt($ch, CURLOPT_ENCODING, '');
- curl_setopt($ch, CURLOPT_COOKIE, $cookie);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- 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);
- $page1 = json_decode($page);
- //echo "\n".$page."\n\n\n\n";
- // $code_post = explode('<span>', $page)[2];
- // $code_post = explode('</span>', $code_post)[0];
- // echo "\n\n".$code_post;
- // $id_post = explode('mf_story_key":"', $code_post)[1];
- // $id_post = explode('"', $id_post)[0];
- // //tennguoidung
- return $page;
- }
- function logintds()
- {
- $data = fread(fopen("TKMKTDS.txt", "r"), filesize("TKMKTDS.txt"));
- $username = explode('|', $data)[0];
- $password = explode('|', $data)[1];
- $ch = curl_init();
- //ketnoimangV1();
- 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, 'Mozilla/5.0 (Linux; Android 10; SM-J600G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36');
- //ketnoimangV1();
- $login = array('username' => $username, 'password' => $password, '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);
- }
- function group_fb($id, $useragent, $cookie)
- {
- $ch = curl_init();
- if (strpos($id, '_')) {
- $uid = explode('_', $id, 2);
- $id2 = 'story.php?story_fbid=' . $uid[1] . '&id=' . $uid[0];
- } else {
- $id2 = $id;
- }
- $header = array(
- "Host:mbasic.facebook.com",
- "user-agent:$useragent",
- "accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "cookie:$cookie",
- );
- //ketnoimangV1();
- $linkbv = 'https://mbasic.facebook.com/groups/' . $id2;
- curl_setopt($ch, CURLOPT_URL, $linkbv);
- $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, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
- curl_setopt($ch, CURLOPT_ENCODING, '');
- curl_setopt($ch, CURLOPT_COOKIE, $cookie);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- 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
- :'));
- // json_decode(curl_exec($ch), true);
- $post = curl_exec($ch);
- $link = explode('<form method="post" action="/a/group/join/?group_id=', $post)[1];
- $link = explode('"', $link)[0];
- $link = html_entity_decode($link);
- $link = "https://mbasic.facebook.com/a/group/join/?group_id=" . $link;
- // echo $link;
- // die();
- $linkreac1 = $link;
- $header = array(
- "Host:mbasic.facebook.com",
- "user-agent:$useragent",
- "accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "referer:$linkbv",
- "cookie:$cookie",
- );
- //ketnoimangV1();
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $linkreac1);
- $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, 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14');
- curl_setopt($ch, CURLOPT_ENCODING, '');
- curl_setopt($ch, CURLOPT_COOKIE, $cookie);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- 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);
- $aa = $page;
- return $aa;
- }
- function follow($idtest, $cookie)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com/' . $idtest . '?_rdr');
- $head[] = "Connection: keep-alive";
- $head[] = "Keep-Alive: 300";
- $head[] = "upgrade-insecure-requests: 1";
- // $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
- // $head[] = "Accept-Language: en-us,en;q=0.5";
- // $head[] = "Accept-encoding: gzip, deflate, br";
- // $head[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9";
- $head[] = "sec-ch-ua-mobile: ?0";
- $head[] = "sec-fetch-user: ?1";
- $head[] = "sec-fetch-site: none";
- $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/95.0.4638.69 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_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_REFERER, true);
- 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);
- //return $access;
- $url1 = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
- if (strpos($access, '/a/subscribe.php?') !== false) {
- $haha = explode('<a href="', $access);
- $haha2 = "";
- //echo 1;
- for ($v = 0; $v < count($haha); $v++) {
- if (strpos($haha[$v], '/a/subscribe.php?') !== false) {
- $haha2 = explode('" class=', $haha[$v])[0];
- break;
- }
- }
- //if()
- $link2 = html_entity_decode($haha2);
- // echo $url1;
- curl_setopt($ch, CURLOPT_URL, 'https://mbasic.facebook.com' . $link2 . '&_rdr');
- curl_setopt($ch, CURLOPT_REFERER, $url1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
- $fl = curl_exec($ch);
- //echo curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
- curl_close($ch);
- //return $fl;
- } else {
- curl_close($ch);
- return 'id ' . $idtest . ' loi';
- //return $access;
- }
- }
- 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, $id, $cookie, $msg)
- {
- $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, '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 camxuc($id, $type, $cookie)
- {
- $ch = curl_init();
- if (strpos($id, '_')) {
- $uid = explode('_', $id, 2);
- $id2 = 'story.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement