|
|
|
/*
|
|
|
|
auther(JACK)
|
|
|
|
time( 2022年8月14日 14点22分) 一天0.35左右吧 1元秒到
|
|
|
|
|
|
|
|
|
|
|
|
在浏览器打开下面网址 注册后APP登录
|
|
|
|
http://h5.timesks.com/#/scanRegister?activityId=1002®istSource=HRbM5Xxz
|
|
|
|
|
|
|
|
|
|
|
|
lxjcookie 填写
|
|
|
|
|
|
|
|
抓包关键字 http://gw.timesks.com/auth/ma/loginSMS 登录 获取到的token super_token 值 例如 4be640bb77f64bc4bfe4601234556 多号@隔开
|
|
|
|
|
|
|
|
lxjcookie2 填写
|
|
|
|
|
|
|
|
抓包关键字 http://gw.timesks.com/auth/ma/loginSMS 登录 获取到的uniqueNo 邀请码值 例如 O5mCCj23 多号@隔开
|
|
|
|
|
|
|
|
定时一天一次 直接退出登录则token值失效 不填 lxjcookie值 不会查余额 同理 不填lxjcookie2 不会运行广告回调
|
|
|
|
|
|
|
|
两个变量 填哪个运行哪个 不填则不运行对应任务
|
|
|
|
青龙
|
|
|
|
export lxjcookie=""
|
|
|
|
export lxjcookie2=""
|
|
|
|
|
|
|
|
v2p,圈×
|
|
|
|
lxjcookie
|
|
|
|
lxjcookie2
|
|
|
|
*/
|
|
|
|
const $ = new Env("撸点现金-有鱼有礼");
|
|
|
|
let envSplitor = ['@']
|
|
|
|
let httpResult, httpReq, httpResp
|
|
|
|
let userCookie = ($.isNode() ? process.env.lxjcookie : $.getdata('lxjcookie')) || '';
|
|
|
|
let userCookie2 = ($.isNode() ? process.env.lxjcookie2 : $.getdata('lxjcookie2')) || '';
|
|
|
|
|
|
|
|
console.log(`定时一天一次\n直接退出登录则token值失效\n不填 lxjcookie值不会查余额\n同理 不填lxjcookie2 不会运行广告回调\n`)
|
|
|
|
let userList=[],userList2=[],userIdx=0,userIdx2=0,userCount=0,userCount2=0;class UserInfo{constructor(a){this.index=++userIdx,this.valid=!1;try{this.ck=a,this.ckValid=!0}catch(b){}}async vyt(){try{let b="http://gw.timesks.com/auth/ma/vyt",a=`{"token":"super_token:${this.ck}"}`,c=bytenum(a);await httpRequest("post",populateUrlObject(b,c,a));let d=httpResult;this.phone=d.data.mobile,this.newphone=this.phone.substr(0,3)+"****"+this.phone.substr(7),await this.cashck()}catch(e){console.log(e)}finally{return Promise.resolve(1)}}async cashck(){try{let c="http://gw.timesks.com/auth/ct/myEarnings",b=`{"token":"super_token:${this.ck}"}`,d=bytenum(b);await httpRequest("post",populateUrlObject(c,d,b));let a=httpResult;console.log(`账户【${this.index}】${this.newphone} 解锁金额 `+a.data.expIncome+` 余额 `+a.data.actualAmount+` 分红余额 `+a.data.expMoney)}catch(e){console.log(e)}finally{return Promise.resolve(1)}}async cashckx(){try{let c="http://gw.timesks.com/auth/ct/myEarnings",b=`{"token":"super_token:${this.ck}"}`,d=bytenum(b);await httpRequest("post",populateUrlObject(c,d,b));let a=httpResult;console.log(`账户【${this.index}】${this.newphone} 解锁金额 `+a.data.expIncome+`余额 `+a.data.actualAmount+`分红余额 `+a.data.expMoney)}catch(e){console.log(e)}finally{return Promise.resolve(1)}}}class UserInfo2{constructor(a){this.index=++userIdx2,this.name=this.index,this.valid=!1;try{this.ck=a,this.ckValid=!0}catch(b){}}async listtask(){try{for(let a=0;a<7;a++)this.h=a+1,await this.trade()}catch(b){console.log(b)}finally{return Promise.resolve(1)}}async trade(){try{let b="https://incentive.8ziben.com/api/sdk/incentive/trade",a=`mdid=ab12262e-89d0-43a3-8db1-e465b2c5ea1e&data={"zj_adID":"J7181620755","ad_type":"RewardVideo","zjpm":"TT","zjpm_id":"949111311","userID":"${this.ck}","reward_amount":1,"reward_name":"奖励名称","extra":""}&appName=有喜有鱼&appVer=1.1.9&sign=a8bdb64aaa77f0c1961d0c3a22a175ac&token=token&zj_adID=J7181620755&vaId=d2323f345&plugVer=2040500&aaid=23d354t&appPkgName=com.example.youxyouy&appId=Z8763119332&xToken=&sdkVer=2.4.5.0&applicationId=com.example.youxyouy&oaid=94CF37C06B4780D89DE529A52C9E6F4818CE0387CB0722854C9E55E87B6059B2`,c=bytenum(a);await httpRequest("post",popu(b,c,a));let d=httpResult;this.iddd=d.data.trans_id,await this.incentive()}catch(e){console.log(e)}finally{return Promise.resolve(1)}}async incentive(){try{await httpRequest("get",popu(`https://incentive.8ziben.com/api/sdk/incentive?trade_id=${this.iddd}&reward_amount=1&user_id=${this.ck}&appId=Z8763119332&reward_name=奖励名称&sign=${MD5Encrypt(`${this.iddd}42552ba7cc681fed73ac94592a7b62b6`)}&extrainfo=&zj_adID=J7181620755`,""));let a=httpResult;this.msg=a.data.isValid,this.h%7==0&&console.log(`账户【${this.index}】 7次视频回调上传 `+this.msg)}catch(b){console.log(b)}finally{return Promise.resolve(1)}}}async function GetRewrite(){}async function checkEnv(){if(userCookie){let a=envSplitor[0];for(let b of envSplitor)if(userCookie.indexOf(b)> -1){a=b;break}for(let c of userCookie.split(a))c&&userList.push(new UserInfo(c));userCount=userList.length}if(userCookie2){let d=envSplitor[0];for(let e of envSplitor)if(userCookie2.indexOf(e)> -1){d=e;break}for(let f of userCookie2.split(d))f&&userList2.push(new UserInfo2(f));userCount2=userList2.length}return console.log(`找到${userCount}个账号数据 ${userCount2}个邀请码数据 `),!0}function bytenum(c){for(var a=0,b=0;b<c.length;b++)null!=c.charAt(b).match(/[^\x00-\xff]/ig)?a+=2:a+=1;return a}function populateUrlObject(c,d,a=""){let b={url:c,headers:{"Content-Type":"application/json; charset=utf-8","Content-Length":d,Host:"gw.timesks.com"},timeout:5e3};return a&&(b.body=a),b}function popu(c,d,a=""){let b={url:c,headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":d,Host:"incentive.8ziben.com"},timeout:5e3};return a&&(b.body=a),b}async function httpRequest(a,b){return httpResult=null,httpReq=null,httpResp=null,new Promise(c=>{$.send(a,b,async(b,d,a)=>{try{if(httpReq=d,httpResp=a,b);else if(a.body){if("object"==typeof a.body)httpResu
|
|
|
|
`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}getdata(b){let a=this.getval(b);if(/^@/.test(b)){let[,c,f]=/^@(.*?)\.(.*?)$/.exec(b),d=c?this.getval(c):"";if(d)try{let e=JSON.parse(d);a=e?this.lodash_get(e,f,""):a}catch(g){a=""}}return a}setdata(c,d){let a=!1;if(/^@/.test(d)){let[,b,e]=/^@(.*?)\.(.*?)$/.exec(d),f=this.getval(b),i=b?"null"===f?null:f||"{}":"{}";try{let g=JSON.parse(i);this.lodash_set(g,e,c),a=this.setval(JSON.stringify(g),b)}catch(j){let h={};this.lodash_set(h,e,c),a=this.setval(JSON.stringify(h),b)}}else a=this.setval(c,d);return a}getval(a){return this.isSurge()||this.isLoon()?$persistentStore.read(a):this.isQuanX()?$prefs.valueForKey(a):this.isNode()?(this.data=this.loaddata(),this.data[a]):this.data&&this.data[a]||null}setval(b,a){return this.isSurge()||this.isLoon()?$persistentStore.write(b,a):this.isQuanX()?$prefs.setValueForKey(b,a):this.isNode()?(this.data=this.loaddata(),this.data[a]=b,this.writedata(),!0):this.data&&this.data[a]||null}send(b,a,f=()=>{}){if("get"!=b&&"post"!=b&&"put"!=b&&"delete"!=b){console.log(`无效的http方法:${b}`);return}if("get"==b&&a.headers?(delete a.headers["Content-Type"],delete a.headers["Content-Length"]):a.body&&a.headers&&(a.headers["Content-Type"]||(a.headers["Content-Type"]="application/x-www-form-urlencoded")),this.isSurge()||this.isLoon()){this.isSurge()&&this.isNeedRewrite&&(a.headers=a.headers||{},Object.assign(a.headers,{"X-Surge-Skip-Scripting":!1}));let c={method:b,url:a.url,headers:a.headers,timeout:a.timeout,data:a.body};"get"==b&&delete c.data,$axios(c).then(a=>{let{status:b,request:c,headers:d,data:e}=a;f(null,c,{statusCode:b,headers:d,body:e})}).catch(a=>console.log(a))}else if(this.isQuanX())a.method=b.toUpperCase(),this.isNeedRewrite&&(a.opts=a.opts||{},Object.assign(a.opts,{hints:!1})),$task.fetch(a).then(a=>{let{statusCode:b,request:c,headers:d,body:e}=a;f(null,c,{statusCode:b,headers:d,body:e})},a=>f(a));else if(this.isNode()){this.got=this.got?this.got:require("got");let{url:d,...e}=a;this.instance=this.got.extend({followRedirect:!1}),this.instance[b](d,e).then(a=>{let{statusCode:b,request:c,headers:d,body:e}=a;f(null,c,{statusCode:b,headers:d,body:e})},b=>{let{message:c,response:a}=b;f(c,a,a&&a.body)})}}time(a){let b={"M+":(new Date).getMonth()+1,"d+":(new Date).getDate(),"h+":(new Date).getHours(),"m+":(new Date).getMinutes(),"s+":(new Date).getSeconds(),"q+":Math.floor(((new Date).getMonth()+3)/3),S:(new Date).getMilliseconds()};for(let c in/(y+)/.test(a)&&(a=a.replace(RegExp.$1,((new Date).getFullYear()+"").substr(4-RegExp.$1.length))),b)new RegExp("("+c+")").test(a)&&(a=a.replace(RegExp.$1,1==RegExp.$1.length?b[c]:("00"+b[c]).substr((""+b[c]).length)));return a}async showmsg(){if(!this.notifyStr)return;let a=this.name+" \u8FD0\u884C\u901A\u77E5\n\n"+this.notifyStr;if($.isNode()){var b=require("./sendNotify");console.log("\n============== \u63A8\u9001 =============="),await b.sendNotify(this.name,a)}else this.msg(a)}logAndNotify(a){console.log(a),this.notifyStr+=a,this.notifyStr+="\n"}msg(d=t,a="",b="",e){let f=a=>{if(!a)return a;if("string"==typeof a)return this.isLoon()?a:this.isQuanX()?{"open-url":a}:this.isSurge()?{url:a}:void 0;if("object"==typeof a){if(this.isLoon()){let b=a.openUrl||a.url||a["open-url"],c=a.mediaUrl||a["media-url"];return{openUrl:b,mediaUrl:c}}if(this.isQuanX()){let d=a["open-url"]||a.url||a.openUrl,e=a["media-url"]||a.mediaUrl;return{"open-url":d,"media-url":e}}if(this.isSurge())return{url:a.url||a.openUrl||a["open-url"]}}};this.isMute||(this.isSurge()||this.isLoon()?$notification.post(d,a,b,f(e)):this.isQuanX()&&$notify(d,a,b,f(e)));let c=["","============== \u7CFB\u7EDF\u901A\u77E5 =============="];c.push(d),a&&c.push(a),b&&c.push(b),console.log(c.join("\n"))}getMin(a,b){return a<b?a:b}getMax(a,b){return a<b?b:a}padStr(e,b,f="0"){let a=String(e),g=b>a.length?b-a.length:0,c="";for(let d=0;d<g;d++)c+=f;return c+a}json2str(b,e,f=!1){let c=[];
|
|
|
|
${this.name} 运行结束,共运行了 ${b} 秒!`),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(a)}}(a,b)}(async()=>{if("undefined"!=typeof $request)await GetRewrite();else{if(!await checkEnv())return;if(userList.length>0){for(let a of(console.log("\n========= \u67E5\u8BE2\u7528\u6237 =========\n"),taskall=[],userList))taskall.push(a.vyt());await Promise.all(taskall)}if(userList2.length>0){for(let b of(console.log("\n========= \u5E7F\u544A\u4EFB\u52A1 =========\n"),taskall=[],userList2))taskall.push(b.listtask());await Promise.all(taskall)}if(userList.length>0){for(let c of(console.log("\n========= \u7ED3\u675F\u67E5\u8BE2 =========\n"),taskall=[],userList))taskall.push(c.vyt());await Promise.all(taskall)}}})().catch(a=>console.log(a)).finally(()=>$.done())
|