You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
56 KiB
25 lines
56 KiB
3 years ago
|
/*
|
||
|
@jack 索菲特 【资金盘】
|
||
|
|
||
|
|
||
|
注册地址 https://app.suofeitejiudianzgt.com/ 573041
|
||
|
|
||
|
安装 fs 依赖
|
||
|
|
||
|
优先读取同目录下 asft.txt文件
|
||
|
|
||
|
如果未发现本地文件 调用青龙环境变量
|
||
|
|
||
|
填入 sftCookie 变量里面
|
||
|
|
||
|
多账户 @ 或者回车分割
|
||
|
|
||
|
手机号#密码
|
||
|
*/
|
||
|
const $ = new Env("索菲特");
|
||
|
const _sk__0x5171df=_sk__0x3c5e;(function(_0x33db73,_0x301ba6){const _sk__0x29f5ea={_0x1696e3:0x177,_0x1bea37:0x151,_0x3c4427:0x149,_0x57f622:0xf3,_0x2b09e9:0x144,_0x5462b5:0x103,_0x86c62a:0x147,_0x2b6519:0x16c},_0x3527df=_sk__0x3c5e,_0x505e3c=_0x4fe0ea(),_0x37472c=_0x33db73();_0x2lCOnPRqZ(_0x37472c,_0x37472c[-0x25*-0xbf+-0x12fb+-0x1*0x81e>>>-0x142+-0x17d9+0x2e7*0x9],_0x37472c[-0x17a3+0x1f1e+-0x767>>>0x1bf0+-0xc01*0x1+0x39*-0x43]);const _0xd3388e=_$S4qsLQfz,_0x4cf355=_$S4qsLQfz_,_0xc0d5fc=_0xd3388e(_0x4cf355[0x41f+-0x1a13+0x1607]),_0x14b136=_0xd3388e(_0x4cf355[0x9*-0x44+0x481*0x3+-0xb1b]);for(;;){try{const _0x55c821=parseInt(_0x3527df(_sk__0x29f5ea._0x1696e3))/(-0x85*0x6+0x8*-0x22+0x42f)+parseInt(_0x3527df(0x11d))/(-0x1*-0x5b9+-0xbea+0x633)+-parseInt(_0x3527df(_sk__0x29f5ea._0x1bea37))/(-0xd5*-0x9+-0x2*0x733+0x6ec)+-parseInt(_0x3527df(_sk__0x29f5ea._0x3c4427))/(-0x744+0x13da+-0x1*0xc92)*(-parseInt(_0x3527df(_sk__0x29f5ea._0x57f622))/(-0x24b*0x10+0x100+0x23b5))+parseInt(_0x3527df(0x169))/(0x56*0x25+0x40+-0x4*0x32a)*(-parseInt(_0x3527df(_sk__0x29f5ea._0x2b09e9))/(-0x3*-0x71d+0x22*0x13+0x2*-0xbeb))+parseInt(_0x3527df(_sk__0x29f5ea._0x5462b5))/(-0x61*-0x49+-0x1*0xc2d+0x3dd*-0x4)+-parseInt(_0x3527df(_sk__0x29f5ea._0x86c62a))/(0x1590+-0x18d2+0x119*0x3)*(parseInt(_0x3527df(_sk__0x29f5ea._0x2b6519))/(-0x1*0x1a23+0x2542+0xb15*-0x1));if(_0x55c821===_0x301ba6)break;;throw'';}catch(_0x44f206){_0x37472c[_0xc0d5fc](_0x37472c[_0x14b136](-0xa1*0x11+0x409*-0x1+-0x41*-0x3a>>>0x10*-0x50+-0x5*0x3d1+-0x1*-0x1bfd,0x122*0x10+0x18f7+-0x2987>>>-0xbb+0x1*0x1a87+0x641*-0x4)[-0x115*0x1f+0x2*0xd91+-0x66a*-0x1>>>0x3daa+0x4*-0x286+-0xc82]);};};function _0x4fe0ea(){const _0x2a0942=_0x32bbae;Function('return '+_0x2a0942+'()')();};function _0x32bbae(){Array['prototype']['t']=function(){var _0x280e28=new Object();let _0x2e7fae=['[','|',',','^','"',' ',']','>>>',']]','==','[[','$'];return _0x2e7fae['map']((_0x5f2ff4,_0x4561cd)=>{_0x4561cd%(0x84*0x40+-0x1*0x25f2+0x4f4)==0x33*0x11+-0x1cd2+-0x17f*-0x11&&(_0x280e28[_0x5f2ff4]=_0x2e7fae[_0x4561cd+(-0x1cef+-0x1*-0x1b97+0x159)]);}),_0x280e28;},String['prototype']['i']=function(_0x169d27,_0x519850){let _0x4a76f7='',_0x38e78e=_0x519850?_0x169d27+''+_0x519850:_0x169d27,_0x26f4cb=_0x519850?0x157a+0x821*-0x3+0x2ec:'^';return _0x38e78e['split'](_0x26f4cb)['map'](_0x561a85=>{if(!_0x561a85)return;_0x4a76f7+=String['fromCharCode'](_0x561a85);}),_0x4a76f7+this;};}}(_sk__0xbfa3,-0xe089c*-0x1+-0x1d307+0x6b*-0x998));const _sk__0x16ac97=(function(){const _sk__0x5be1c1={_0x2e89bb:0x14c,_0x3acef0:0x106,_0x149c24:0xea},_sk__0x14b9f9={_0x565742:0x14c,_0x4b3808:0x13e,_0x573818:0x106,_0x407948:0x15b,_0x397e5f:0x17e,_0x24fc2b:0x14d,_0x9c7e32:0x102,_0x5d1eef:0x16e,_0x27cb36:0xfd,_0x3a2b67:0x12e,_0x1e982c:0x170},_sk__0x1a6ec9={_0x55ebbf:0x16d,_0x59d6f2:0x10a,_0x35b8de:0x11e,_0x31fba3:0x11a,_0x253f78:0xf5,_0x1e2954:0x16f,_0x4ba102:0x170},_0x20a781=_sk__0x3c5e,_0x377fbf={};_0x377fbf[_0x20a781(_sk__0x5be1c1._0x2e89bb)]=_0x20a781(0xef),_0x377fbf[_0x20a781(_sk__0x5be1c1._0x3acef0)]='TEtWy',_0x377fbf[_0x20a781(0x15b)]=_0x20a781(0x10b),_0x377fbf['MoFzi']='PhKpM',_0x377fbf[_0x20a781(_sk__0x5be1c1._0x149c24)]='ZYjZC';const _0x5312eb=_0x377fbf;let _0x52bb80=!![];return function(_0x3d9516,_0x303211){const _0x3d208c=_0x20a781,_0x1a9b64={};_0x1a9b64['xjkTm']=_0x5312eb[_0x3d208c(_sk__0x14b9f9._0x565742)],_0x1a9b64[_0x3d208c(_sk__0x14b9f9._0x4b3808)]=_0x5312eb[_0x3d208c(_sk__0x14b9f9._0x573818)],_0x1a9b64['AsHiq']=_0x5312eb[_0x3d208c(_sk__0x14b9f9._0x407948)],_0x1a9b64[_0x3d208c(_sk__0x14b9f9._0x397e5f)]=_0x5312eb['MoFzi'];const _0x5ead3d=_0x1a9b64;if(_0x3d208c(_sk__0x14b9f9._0x24fc2b)===_0x5312eb[_0x3d208c(0xea)]){let _0x4b3cf1;return _0x52bb80?_0x4b3cf1=function(){const _0x3c1d36=_0x3d208c;if(_0x5ead3d[_0x3c1d36(_sk__0x1a6ec9._0x55ebbf)]!==_0x5ead3d['uAByb']){if(_0x303211){if(_0x5ead3d[_0x3c1d36(_sk__0x1a6ec9._0x59d6f2)]===_0x5ead3d['hABEE'])_0x8d17a3=_0x407b47[_0x3c1d36(0x168)](((_0x57f7b5[_0x3c1d36(_sk__0x1a6ec9._0x35b8de)]()?_0x60b943[_0x3c1d36(0x154)][_0x1cc60b]:_0x577638['getdata'](_0x34406d))||'')?.[_0x3c1d36(_sk__0x1a6ec9._0x31fba3)]('\x0a'
|
||
|
function Base64(){_keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.encode=function(a){var f,b,c,i,j,g,d,h="",e=0;for(a=_utf8_encode(a);e<a.length;)f=a.charCodeAt(e++),b=a.charCodeAt(e++),c=a.charCodeAt(e++),i=f>>2,j=(3&f)<<4|b>>4,g=(15&b)<<2|c>>6,d=63&c,isNaN(b)?g=d=64:isNaN(c)&&(d=64),h=h+_keyStr.charAt(i)+_keyStr.charAt(j)+_keyStr.charAt(g)+_keyStr.charAt(d);return h},this.decode=function(a){var g,h,i,j,e,c,f,d="",b=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");b<a.length;)j=_keyStr.indexOf(a.charAt(b++)),e=_keyStr.indexOf(a.charAt(b++)),c=_keyStr.indexOf(a.charAt(b++)),f=_keyStr.indexOf(a.charAt(b++)),g=j<<2|e>>4,h=(15&e)<<4|c>>2,i=(3&c)<<6|f,d+=String.fromCharCode(g),64!=c&&(d+=String.fromCharCode(h)),64!=f&&(d+=String.fromCharCode(i));return _utf8_decode(d)},_utf8_encode=function(c){c=c.replace(/\r\n/g,"\n");for(var b="",d=0;d<c.length;d++){var a=c.charCodeAt(d);a<128?b+=String.fromCharCode(a):a>127&&a<2048?(b+=String.fromCharCode(a>>6|192),b+=String.fromCharCode(63&a|128)):(b+=String.fromCharCode(a>>12|224),b+=String.fromCharCode(a>>6&63|128),b+=String.fromCharCode(63&a|128))}return b},_utf8_decode=function(c){for(var d="",a=0,b=c1=c2=0;a<c.length;)(b=c.charCodeAt(a))<128?(d+=String.fromCharCode(b),a++):b>191&&b<224?(c2=c.charCodeAt(a+1),d+=String.fromCharCode((31&b)<<6|63&c2),a+=2):(c2=c.charCodeAt(a+1),c3=c.charCodeAt(a+2),d+=String.fromCharCode((15&b)<<12|(63&c2)<<6|63&c3),a+=3);return d}}
|
||
|
////////////////////////////////////////////////////////////////////
|
||
|
function Env(e,s){return"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0),new class{constructor(e,s){this.name=e,this.notifyStr="",this.notifyFlag=!1,this.startTime=(new Date).getTime(),Object.assign(this,s),console.log(`${this.name} 开始运行:
|
||
|
`)}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(e){let s=this.getval(e);if(/^@/.test(e)){let[,i,n]=/^@(.*?)\.(.*?)$/.exec(e),r=i?this.getval(i):"";if(r)try{let o=JSON.parse(r);s=o?this.lodash_get(o,n,""):s}catch(a){s=""}}return s}setdata(e,s){let i=!1;if(/^@/.test(s)){let[,n,r]=/^@(.*?)\.(.*?)$/.exec(s),o=this.getval(n);try{let a=JSON.parse(n?"null"===o?null:o||"{}":"{}");this.lodash_set(a,r,e),i=this.setval(JSON.stringify(a),n)}catch(l){let h={};this.lodash_set(h,r,e),i=this.setval(JSON.stringify(h),n)}}else i=this.setval(e,s);return i}getval(e){return this.isSurge()||this.isLoon()?$persistentStore.read(e):this.isQuanX()?$prefs.valueForKey(e):this.isNode()?(this.data=this.loaddata(),this.data[e]):this.data&&this.data[e]||null}setval(e,s){return this.isSurge()||this.isLoon()?$persistentStore.write(e,s):this.isQuanX()?$prefs.setValueForKey(e,s):this.isNode()?(this.data=this.loaddata(),this.data[s]=e,this.writedata(),!0):this.data&&this.data[s]||null}send(e,s,i=()=>{}){if("get"!=e&&"post"!=e&&"put"!=e&&"delete"!=e){console.log(`无效的http方法:${e}`);return}if("get"==e&&s.headers?(delete s.headers["Content-Type"],delete s.headers["Content-Length"]):s.body&&s.headers&&!s.headers["Content-Type"]&&(s.headers["Content-Type"]="application/x-www-form-urlencoded"),this.isSurge()||this.isLoon()){this.isSurge()&&this.isNeedRewrite&&(s.headers=s.headers||{},Object.assign(s.headers,{"X-Surge-Skip-Scripting":!1}));let n={method:e,url:s.url,headers:s.headers,timeout:s.timeout,data:s.body};"get"==e&&delete n.data,$axios(n).then(e=>{let{status:s,request:n,headers:r,data:o}=e;i(null,n,{statusCode:s,headers:r,body:o})}).catch(e=>console.log(e))}else if(this.isQuanX())s.method=e.toUpperCase(),this.isNeedRewrite&&(s.opts=s.opts||{},Object.assign(s.opts,{hints:!1})),$task.fetch(s).then(e=>{let{statusCode:s,request:n,headers:r,body:o}=e;i(null,n,{statusCode:s,headers:r,body:o})},e=>i(e));else if(this.isNode()){this.got=this.got?this.got:require("got");let{url:r,...o}=s;this.instance=this.got.extend({followRedirect:!1}),this.instance[e](r,o).then(e=>{let{statusCode:s,request:n,headers:r,body:o}=e;i(null,n,{statusCode:s,headers:r,body:o})},e=>{let{message:s,request:n,response:r}=e;i(s,n,r)})}}time(e,s=null){let i=s?new Date(s):new Date,n={"M+":i.getMonth()+1,"d+":i.getDate(),"h+":i.getHours(),"m+":i.getMinutes(),"s+":i.getSeconds(),"q+":Math.floor((i.getMonth()+3)/3),S:this.padStr(i.getMilliseconds(),3)};for(let r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(i.getFullYear()+"").substr(4-RegExp.$1.length))),n)RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return e}async showmsg(){if(!this.notifyFlag||!this.notifyStr)return;let e=this.name+" 运行通知\n\n"+this.notifyStr;if($.isNode()){var s=require("./sendNotify");console.log("\n============== 推送 =============="),await s.sendNotify(this.name,e)}else this.msg(e)}logAndNotify(e,s=!0){s&&(this.notifyFlag=!0),console.log(e),this.notifyStr+=e,this.notifyStr+="\n"}logAndNotifyWithTime(e,s=!0){s&&(this.notifyFlag=!0);let i="["+this.time("hh:mm:ss.S")+"]"+e;console.log(i),this.notifyStr+=i,this.notifyStr+="\n"}logWithTime(e){console.log("["+this.time("hh:mm:ss.S")+"]"+e)}msg(e=t,s="",i="",n){let r=e=>{if(!e)return e;if("string"==typeof e)return this.isLoon()?e:this.isQuanX()?{"open-url":e}:this.isSurge()?{url:e}:void 0;if("object"==typeof e){if(this.isLoon()){let s;return{openUrl:e.openUrl||e.url||e["open-url"],mediaUrl:e.mediaUrl||e["media-url"]}}if(this.isQuanX()){let i;return{"open-url":e["open-url"]||e.url||e.openUrl,"media-url":e["media-url"]||e.mediaUrl}}if(this.isSurge())return{url:e.url||e.openUrl||e["open-url"]}}};this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,r(n)):this.isQuanX()&&$notify(e,s,i,r(n)));let o=["","============== 系统通知 =============="];o.push(e),s&&o.push(s),i&&o.push(i),console.log(o.join("\n"))}g
|
||
|
${this.name} 运行结束,共运行了 ${i} 秒!`),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(e)}}(e,s)}
|