mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
14 lines
35 KiB
JavaScript
14 lines
35 KiB
JavaScript
|
/*
|
|||
|
京东金融双签
|
|||
|
|
|||
|
大概率需要开启代理,否则黑IP
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('京东金融双签')
|
|||
|
var iil='jsjiami.com.v7';const lllli=iii1II;(function(lllil,iI11Il,iIII1i,iil1i1,il1i11,IlIll1,IlIII){return lllil=lllil>>0x1,IlIll1='hs',IlIII='hs',function(ilil1l,illlIi,I1lIii,IiI1I,illlIl){const iil1l1=iii1II;IiI1I='tfi',IlIll1=IiI1I+IlIll1,illlIl='up',IlIII+=illlIl,IlIll1=I1lIii(IlIll1),IlIII=I1lIii(IlIII),I1lIii=0x0;const i11ill=ilil1l();while(!![]&&--iil1i1+illlIi){try{IiI1I=parseInt(iil1l1(0x2f0,')wm['))/0x1*(-parseInt(iil1l1(0x20a,'u3K1'))/0x2)+-parseInt(iil1l1(0x27b,'^X[T'))/0x3*(-parseInt(iil1l1(0x220,'zvAE'))/0x4)+-parseInt(iil1l1(0x1e1,'^b*O'))/0x5+-parseInt(iil1l1(0x2df,'p(O*'))/0x6+-parseInt(iil1l1(0x29e,'FcqE'))/0x7+-parseInt(iil1l1(0x240,'9Sa$'))/0x8+-parseInt(iil1l1(0x225,'yB[O'))/0x9*(-parseInt(iil1l1(0x274,'FcqE'))/0xa);}catch(IIIIIi){IiI1I=I1lIii;}finally{illlIl=i11ill[IlIll1]();if(lllil<=iil1i1)I1lIii?il1i11?IiI1I=illlIl:il1i11=illlIl:I1lIii=illlIl;else{if(I1lIii==il1i11['replace'](/[yTnUkWuhERHGxqNePQVB=]/g,'')){if(IiI1I===illlIi){i11ill['un'+IlIll1](illlIl);break;}i11ill[IlIII](illlIl);}}}}}(iIII1i,iI11Il,function(IIIIIl,I1lIil,IIIl1i,liiII1,IIIl1l,lllll,i11ili){return I1lIil='\x73\x70\x6c\x69\x74',IIIIIl=arguments[0x0],IIIIIl=IIIIIl[I1lIil](''),IIIl1i=`\x72\x65\x76\x65\x72\x73\x65`,IIIIIl=IIIIIl[IIIl1i]('\x76'),liiII1=`\x6a\x6f\x69\x6e`,(0x173f0f,IIIIIl[liiII1](''));});}(0x17a,0x95eaa,Iii11l,0xbf),Iii11l)&&(iil=0x1a9f);const jdCookie=require(lllli(0x2f4,'EM2]')),notify=require(lllli(0x1f8,'d^We')),common=require(lllli(0x2fd,'4nfw')),jsdom=require(lllli(0x23c,')wm[')),isNotify=![],ALL_CHAR=lllli(0x1f1,'3jDS'),ALL_DIGIT=lllli(0x1e2,'WL7K'),sdkToken=lllli(0x284,'CJSc')+randomString(0x6f,ALL_DIGIT+ALL_CHAR)['toUpperCase']();function iii1II(_0x30d511,_0x21d376){const _0x770652=Iii11l();return iii1II=function(_0xdb831d,_0x1dd567){_0xdb831d=_0xdb831d-0x1e0;let _0x4650ed=_0x770652[_0xdb831d];if(iii1II['LnTDap']===undefined){var _0x1d1230=function(_0x81fded){const _0x4bb99c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x767b4e='',_0x272da1='';for(let _0xb72255=0x0,_0x29db9b,_0x5c17a2,_0x6a77cd=0x0;_0x5c17a2=_0x81fded['charAt'](_0x6a77cd++);~_0x5c17a2&&(_0x29db9b=_0xb72255%0x4?_0x29db9b*0x40+_0x5c17a2:_0x5c17a2,_0xb72255++%0x4)?_0x767b4e+=String['fromCharCode'](0xff&_0x29db9b>>(-0x2*_0xb72255&0x6)):0x0){_0x5c17a2=_0x4bb99c['indexOf'](_0x5c17a2);}for(let _0x14df87=0x0,_0x6727ca=_0x767b4e['length'];_0x14df87<_0x6727ca;_0x14df87++){_0x272da1+='%'+('00'+_0x767b4e['charCodeAt'](_0x14df87)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x272da1);};const _0x3a5e9d=function(_0x52be07,_0xe239ae){let _0x23b655=[],_0x1bc5ee=0x0,_0x17ca26,_0x1d7285='';_0x52be07=_0x1d1230(_0x52be07);let _0x50b3fa;for(_0x50b3fa=0x0;_0x50b3fa<0x100;_0x50b3fa++){_0x23b655[_0x50b3fa]=_0x50b3fa;}for(_0x50b3fa=0x0;_0x50b3fa<0x100;_0x50b3fa++){_0x1bc5ee=(_0x1bc5ee+_0x23b655[_0x50b3fa]+_0xe239ae['charCodeAt'](_0x50b3fa%_0xe239ae['length']))%0x100,_0x17ca26=_0x23b655[_0x50b3fa],_0x23b655[_0x50b3fa]=_0x23b655[_0x1bc5ee],_0x23b655[_0x1bc5ee]=_0x17ca26;}_0x50b3fa=0x0,_0x1bc5ee=0x0;for(let _0x34e06a=0x0;_0x34e06a<_0x52be07['length'];_0x34e06a++){_0x50b3fa=(_0x50b3fa+0x1)%0x100,_0x1bc5ee=(_0x1bc5ee+_0x23b655[_0x50b3fa])%0x100,_0x17ca26=_0x23b655[_0x50b3fa],_0x23b655[_0x50b3fa]=_0x23b655[_0x1bc5ee],_0x23b655[_0x1bc5ee]=_0x17ca26,_0x1d7285+=String['fromCharCode'](_0x52be07['charCodeAt'](_0x34e06a)^_0x23b655[(_0x23b655[_0x50b3fa]+_0x23b655[_0x1bc5ee])%0x100]);}return _0x1d7285;};iii1II['SLfUDD']=_0x3a5e9d,_0x30d511=arguments,iii1II['LnTDap']=!![];}const _0x2af616=_0x770652[0x0],_0x4be5f4=_0xdb831d+_0x2af616,_0x157525=_0x30d511[_0x4be5f4];return!_0x157525?(iii1II['LYjuuv']===undefined&&(iii1II['LYjuuv']=!![]),_0x4650ed=iii1II['SLfUDD'](_0x4650ed,_0x1dd567),_0x30d511[_0x4be5f4]=_0x4650ed):_0x4650ed=_0x157525,_0x4650ed;},iii1II(_0x30d511,_0x21d376);}let cookie='';const cookiesArr=Object[lllli(0x210,'A5mm')](jdCookie)['map'](l1il11=>jdCookie[l1il11])['filter'](IiI1=>IiI1);!cookiesArr[0x0]&&($['msg']($[lllli(0x218,'hmdX')],lllli(0x1ee,'4nfw')),process['exit'](0x1));!(async()=>{const iiili1=lllli,liI={'QgGwt':'
|
|||
|
// 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
|