KR/jd_jjqdtx.js

11 lines
79 KiB
JavaScript
Raw Normal View History

2023-12-01 09:37:42 +08:00
/*
签到提现
cron "25 2,8,16 * * *" script-path=jd_qdtx.js, tag=签到提现
*/
const $ = new Env('签到提现');
var il='jsjiami.com.v7';const illIIl=iii1II;(function(l1iiii,iiiIi1,illl1l,Il11I,li1lll,lill1,IiIIl){return l1iiii=l1iiii>>0x6,lill1='hs',IiIIl='hs',function(IiIIi,li1lli,iiiIl1,I1i1I,IIl1){const Iil1I=iii1II;I1i1I='tfi',lill1=I1i1I+lill1,IIl1='up',IiIIl+=IIl1,lill1=iiiIl1(lill1),IiIIl=iiiIl1(IiIIl),iiiIl1=0x0;const l1ili=IiIIi();while(!![]&&--Il11I+li1lli){try{I1i1I=-parseInt(Iil1I(0x299,'W*ci'))/0x1+parseInt(Iil1I(0x274,'74TL'))/0x2+-parseInt(Iil1I(0x12b,'e7pG'))/0x3*(parseInt(Iil1I(0x1c4,'l]S6'))/0x4)+parseInt(Iil1I(0x1e2,'ucOZ'))/0x5*(parseInt(Iil1I(0x231,'#fQF'))/0x6)+-parseInt(Iil1I(0x3b6,'I$ld'))/0x7+parseInt(Iil1I(0x218,'l^Ry'))/0x8*(parseInt(Iil1I(0x2b7,'6&z3'))/0x9)+parseInt(Iil1I(0x3f3,'BdL('))/0xa*(parseInt(Iil1I(0x390,'IH1t'))/0xb);}catch(i1Ii11){I1i1I=iiiIl1;}finally{IIl1=l1ili[lill1]();if(l1iiii<=Il11I)iiiIl1?li1lll?I1i1I=IIl1:li1lll=IIl1:iiiIl1=IIl1;else{if(iiiIl1==li1lll['replace'](/[tfrEdxGRXOAwBhIJWkb=]/g,'')){if(I1i1I===li1lli){l1ili['un'+lill1](IIl1);break;}l1ili[IiIIl](IIl1);}}}}}(illl1l,iiiIi1,function(l1iill,l1ill,lIi1I1,l1iili,illIIi,iiIi,iiIl){return l1ill='\x73\x70\x6c\x69\x74',l1iill=arguments[0x0],l1iill=l1iill[l1ill](''),lIi1I1=`\x72\x65\x76\x65\x72\x73\x65`,l1iill=l1iill[lIi1I1]('\x76'),l1iili=`\x6a\x6f\x69\x6e`,(0x149a4c,l1iill[l1iili](''));});}(0x2f80,0x906db,Iii11l,0xc0),Iii11l)&&(il=`\x10c`);const Ili1I1=$['isNode']()?require('./sendNotify'):'',lI1I1i=$['isNode']()?require('./jdCookie.js'):'',liI1II=require(illIIl(0x288,'W*ci'));let i1Iii1=!![],l1liii=illIIl(0x415,'yfk]'),I1Ili1=process[illIIl(0x42a,'ait]')]['jd_qdtx_num']?process[illIIl(0x221,'HZ[c')]['jd_qdtx_num']:'1',l1liil=Date[illIIl(0x3a1,'6&z3')](),i1ll1=[],lilI1I='',lI1I1l;function iii1II(_0x2de3d6,_0x45b616){const _0x4521b1=Iii11l();return iii1II=function(_0x26b8ec,_0x9adc1c){_0x26b8ec=_0x26b8ec-0x114;let _0x2b6796=_0x4521b1[_0x26b8ec];if(iii1II['MsqAsh']===undefined){var _0x1d3850=function(_0x1746fe){const _0x3841bb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x320915='',_0x20d991='';for(let _0x1becb6=0x0,_0x54945b,_0x37a3f4,_0x5efc9e=0x0;_0x37a3f4=_0x1746fe['charAt'](_0x5efc9e++);~_0x37a3f4&&(_0x54945b=_0x1becb6%0x4?_0x54945b*0x40+_0x37a3f4:_0x37a3f4,_0x1becb6++%0x4)?_0x320915+=String['fromCharCode'](0xff&_0x54945b>>(-0x2*_0x1becb6&0x6)):0x0){_0x37a3f4=_0x3841bb['indexOf'](_0x37a3f4);}for(let _0x3a3dc9=0x0,_0xbc499d=_0x320915['length'];_0x3a3dc9<_0xbc499d;_0x3a3dc9++){_0x20d991+='%'+('00'+_0x320915['charCodeAt'](_0x3a3dc9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20d991);};const _0x55e77f=function(_0x414e9d,_0x21a02a){let _0x5c6b84=[],_0x2cc074=0x0,_0x2a44cc,_0x3ba0f6='';_0x414e9d=_0x1d3850(_0x414e9d);let _0x5ac0f6;for(_0x5ac0f6=0x0;_0x5ac0f6<0x100;_0x5ac0f6++){_0x5c6b84[_0x5ac0f6]=_0x5ac0f6;}for(_0x5ac0f6=0x0;_0x5ac0f6<0x100;_0x5ac0f6++){_0x2cc074=(_0x2cc074+_0x5c6b84[_0x5ac0f6]+_0x21a02a['charCodeAt'](_0x5ac0f6%_0x21a02a['length']))%0x100,_0x2a44cc=_0x5c6b84[_0x5ac0f6],_0x5c6b84[_0x5ac0f6]=_0x5c6b84[_0x2cc074],_0x5c6b84[_0x2cc074]=_0x2a44cc;}_0x5ac0f6=0x0,_0x2cc074=0x0;for(let _0x46d261=0x0;_0x46d261<_0x414e9d['length'];_0x46d261++){_0x5ac0f6=(_0x5ac0f6+0x1)%0x100,_0x2cc074=(_0x2cc074+_0x5c6b84[_0x5ac0f6])%0x100,_0x2a44cc=_0x5c6b84[_0x5ac0f6],_0x5c6b84[_0x5ac0f6]=_0x5c6b84[_0x2cc074],_0x5c6b84[_0x2cc074]=_0x2a44cc,_0x3ba0f6+=String['fromCharCode'](_0x414e9d['charCodeAt'](_0x46d261)^_0x5c6b84[(_0x5c6b84[_0x5ac0f6]+_0x5c6b84[_0x2cc074])%0x100]);}return _0x3ba0f6;};iii1II['daskLO']=_0x55e77f,_0x2de3d6=arguments,iii1II['MsqAsh']=!![];}const _0x44b356=_0x4521b1[0x0],_0x1835d4=_0x26b8ec+_0x44b356,_0x2f2505=_0x2de3d6[_0x1835d4];return!_0x2f2505?(iii1II['BGtUGN']===undefined&&(iii1II['BGtUGN']=!![]),_0x2b6796=iii1II['daskLO'](_0x2b6796,_0x9adc1c),_0x2de3d6[_0x1835d4]=_0x2b6796):_0x2b6796=_0x2f2505,_0x2b6796;},iii1II(_0x2de3d6,_0x45b616);}if($['isNode']()){Object[illIIl(0x245,'G1QK')](lI1I1i)[illIIl(0x14c,'6&z3')](IIlI1l=>{const iiiIlI=illIIl;i1ll1[iiiIlI(0x3a8,'BdL(')](lI1I1i[IIlI1l]);});if(process[illIIl(0x11e,'pUy)')]['JD_DEBUG']&&process[illIIl(0x124,'O^3k')][illIIl(0x3
// prettier-ignore
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.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 } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d