mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-11-06 13:26:42 +08:00
1
This commit is contained in:
1 parent
8e5bfb1a6d
commit
a99f5f3372
5 files changed
+2
-28
No files matched your search
@@ -1,12 +0,0 @@
|
||||
/*
|
||||
一次性,手动执行
|
||||
自行运行,有水无水自测。
|
||||
|
||||
第一个账号助力作者 其他依次助力CK1
|
||||
注意:第一个CK黑号会全部助力所填写的助力码
|
||||
0 0 1 1 * jd_dplh0117.js
|
||||
*/
|
||||
|
||||
const $ = new Env("大牌0117");
|
||||
var tR_D46,P9Nw_7l,IxpHFC,_hH4W2T,UEWaKi,LW9OP2V,fPtLAwc,eN5OKp,dBA3va,MzSDP2,wGtRnO;function txkVtm4(tR_D46,P9Nw_7l,IxpHFC){for(IxpHFC=0x0;IxpHFC<P9Nw_7l;IxpHFC++)tR_D46.push(tR_D46.shift());return tR_D46}const lHtEjNM=[0x0,0x1,0x8,0xff,"length","undefined",0xdc,0x3f,0x6,"fromCodePoint",0x7,0xc,0x3,"push","a",0x8a,0x2,0x5b,0x1fff,0x58,0xd,0xe,"b","h",0xcf,0x9b,0x5,"f",0x68,0x3ff,0x10000,"d",0xa,0xd800,0xdc00,0x80,0x1f,0xf,0x12,0xf0,void 0x0,"c",0xc0,0x7a,0x9,0xa5,0x5a,0x67,0xcd,0x96,0xc8,!0x1,0x69,0xe0,"e",0x76,0x7b,0xc3,0xe3,0x94,0x81,0x4,0x6c,0x7e,0x7f,0xa2,0x9a,0xf8,"g",0x82,0x84,0x43,0x2b,0xc4,0x3a,0x1a,0x1b,0xeb,0x26,0xf3,null,0x2000000,0x4000000,0xf7,0xcc,0xbb,0xaa,0x59,0x3b,0xa8,0x21,0x2d,0x6a,0xa9,0x51,"i",0xb0,0x88,0x56,"j",0x4a,0xb4,0xb7,0x8d,0xe5,0xec,0xed,0xcb,0xca,0xb9,0x4c,0x7d,0x78,0xd0,0xa7,0x74,0x37,0xd3,0xc5,0xdf,0xe2,0x70,0xef,0xf4,0x57,0xfa,0x100,0x101,0x103,0xfe,0x10d,0xd2,0x85,0x6f,0xdbff,0x22,0xfc00,0xf6,0xffff,0xdfff,0x10,0xffffff80,0xfffff800,0xffff0000,0xffe00000,0x24,0x8c,0xbf,0x63,0x117,0x17,0x3e,0x800,0x118,0x10ffff,0xc9,0x11f,0x11d,0x121,0x11e,0x126,0x129,0xf9,0xe7,0x25,0x42,0xb2,0x64,0x122,0x13a,0x139,0xd7,0x79,0x13,!0x0,0x8f,0xd5,0x3e8,0xb5,0xbd,0x14c,0x14d,0x150,0x153,0x151,0x157,0x44,0xb3,0xaf,0x97,0x167,0x166,0xdb,0x5d,0x3c,0x71,0x177,0x178,0x181,0x182,0x183,0x184,0x17c,0x53,0x130,0x13c,0x173,0x174,0x36,0xea,0x19f,0x1a0,0x198,0x199,0x1a3,"\u7ED1\u5B9A",0x19a,0x19b,0x1af,0x1b2,0x1b3,0x1bd,0x1b7,0x1c2,0x1c6,0x1a7,0x1a8,0x1a9,0x1c8,0x1ce,0x1cf,0x10001,0x1e,0x1d8,0xce,0x9f,0x72,0x1ed,0x1f0,0x1ef,0x1fa,0xd9,0x93,0x207,0x208,0x203,0x204,0x210,0x211,0x212,0x216,0x217,0x21b,0x21d,0x21e,0x21f,0x220,0x221,0x222,0x89,0x61,0x4e,0x5f,0x227,0x228,0x229,0x22a,0x22e,0x22f,0x232,0xb8,0x239,0xc7,0x18,"=",";","UA",0xde,0x258,0x25a,0x6b,0x26a,0x26d,0x26f,0x274,0x275,0x269,0x20,0x279,0x193,0x295,0x292,"ts",0x2d0,0x2d4,0x2d5,0x2db,0x2dc,0x2d2,0x2d7,0x2da,0x2d9,0x2e2,0x2e3,0x297,"H5",0x264,0x261,0x263,0x253,0xa1,0x11c,0x2fc,0xe9,0x95,0x2fe,0x303,0x306,0x307,0x308,0x309,0x25b,"-",0x311];pjAKkE5(hUZmL0(RAS2Vyc),hUZmL0(t9eyoV),hUZmL0(cSlsVA),hUZmL0(IXjxB8,lHtEjNM[0xc]),hUZmL0(CwuKei));function hUZmL0(tR_D46,P9Nw_7l=lHtEjNM[0x1]){Object.defineProperty(tR_D46,lHtEjNM[0x4],{value:P9Nw_7l,configurable:lHtEjNM[0x33]});return tR_D46}function bdeEJBl(tR_D46){var P9Nw_7l="8fvw$n(LWFGz!2q#SAa7{_&61<o=4J?p[rZuOKBtVm;3T^cRY5NE>IyP9kdMh`%,D\"s:xH+|Ulj/.}*@QCe]g0i)bX~",IxpHFC,_hH4W2T,UEWaKi,LW9OP2V,fPtLAwc,eN5OKp,dBA3va;pjAKkE5(IxpHFC=""+(tR_D46||""),_hH4W2T=IxpHFC.length,UEWaKi=[],LW9OP2V=lHtEjNM[0x0],fPtLAwc=lHtEjNM[0x0],eN5OKp=-lHtEjNM[0x1]);for(dBA3va=lHtEjNM[0x0];dBA3va<_hH4W2T;dBA3va++){var MzSDP2=P9Nw_7l.indexOf(IxpHFC[dBA3va]);if(MzSDP2===-lHtEjNM[0x1])continue;if(eN5OKp<lHtEjNM[0x0]){eN5OKp=MzSDP2}else{pjAKkE5(eN5OKp+=MzSDP2*lHtEjNM[0x11],LW9OP2V|=eN5OKp<<fPtLAwc,fPtLAwc+=(eN5OKp&lHtEjNM[0x12])>lHtEjNM[0x13]?lHtEjNM[0x14]:lHtEjNM[0x15]);do{pjAKkE5(UEWaKi.push(LW9OP2V&lHtEjNM[0x3]),LW9OP2V>>=lHtEjNM[0x2],fPtLAwc-=lHtEjNM[0x2])}while(fPtLAwc>lHtEjNM[0xa]);eN5OKp=-lHtEjNM[0x1]}}if(eN5OKp>-lHtEjNM[0x1]){UEWaKi.push((LW9OP2V|eN5OKp<<fPtLAwc)&lHtEjNM[0x3])}return CwuKei(UEWaKi)}function zB8mdOY(IxpHFC){if(typeof tR_D46[IxpHFC]===lHtEjNM[0x5]){return tR_D46[IxpHFC]=bdeEJBl(P9Nw_7l[IxpHFC])}return tR_D46[IxpHFC]}pjAKkE5(tR_D46={},P9Nw_7l=txkVtm4(["eGt<!&I5mp;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t+Z?f3FEt,8","!xby5,ruhIj+|os6(,D(k,WaryH+6=2t(J>I:@B18!","NVy4:@B>/9@#{]Yo","A(gIGY$1`WM9Y]yV@4G=$O7J*WTQ7wZA}6v","+F{J/ji!9dn\"AhU71\"HLM+3fa,b:.=>Z/6|>=Mhik\"g9a`B<","WxS/6kdj(d<2nOB1,MAE1|av","?Jp4YeX@P24>=e|aC9g}hd8","Kx_.Pg5uqadl$wh;IFrEnHn2(d.z`hiS$JcpvIXkf,ny,+kJ7oyLuy<L4q^","]E`4FY\"E8hX&N2c70E}L@|$Wj\"i<{R}758","ZyP()k_fxkL?nOsKdq;[RxMRCh1wFO~;rEsJ#|1v","q#2P>EsxP2:MQRsOdKsE?V{14%N_f","mjB.m`Wc*Io%Q=va:^P$Hh2LN7u=ze2","sZxIZ>_I,,pU&`C=<|[(O`TdYsYqb#B<rw`LOyaOn","vFwUoBGDsyi&{]eV,K@l@%CE#s\"lY$+K2,y>=|nf;\"^HzR|p|(]IP+pLw!k","Sk6.zNL<`qO1iC;oo{g}+Hn),,;Hc`?AL5A(","@\"<=*jHJxFLeGngmpcHLine truncated
|
||||
function Env(o,t){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((r,i)=>{s.call(this,t,(t,e,s)=>{t?i(t):r(e)})})}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.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",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.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))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(r=>{this.get({url:t},(t,e,s)=>r(s))})}runScript(a,o){return new Promise(r=>{let t=this.getdata("@chavy_boxjs_userCfgs.httpapi");t=t&&t.replace(/\n/g,"").trim();var e=(e=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"))?+e:20,[s,i]=(e=o&&o.timeout?o.timeout:e,t.split("@"));this.post({url:`http://${i}/v1/scripting/evaluate`,body:{script_text:a,mock_type:"cron",timeout:e},headers:{"X-Key":s,Accept:"*/*"},timeout:e},(t,e,s)=>r(s))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};this.fs=this.fs||require("fs"),this.path=this.path||require("path");var t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),r=!s&&this.fs.existsSync(e);if(!s&&!r)return{};r=s?t:e;try{return JSON.parse(this.fs.readFileSync(r))}catch(t){return{}}}writedata(){var t,e,s,r,i;this.isNode()&&(this.fs=this.fs||require("fs"),this.path=this.path||require("path"),t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),r=!(s=this.fs.existsSync(t))&&this.fs.existsSync(e),i=JSON.stringify(this.data),!s&&r?this.fs.writeFileSync(e,i):this.fs.writeFileSync(t,i))}lodash_get(t,e,s){let r=t;for(const t of e.replace(/\[(\d+)\]/g,".$1").split("."))if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,r,e){return Object(t)===t&&((r=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g)||[]).slice(0,-1).reduce((t,e,s)=>Object(t[e])===t[e]?t[e]:t[e]=Math.abs(r[s+1])>>0==+r[s+1]?[]:{},t)[r[r.length-1]]=e),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){var[,s,r]=/^@(.*?)\.(.*?)$/.exec(t);if(s=s?this.getval(s):"")try{const t=JSON.parse(s);e=t?this.lodash_get(t,r,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){var[,r,i]=/^@(.*?)\.(.*?)$/.exec(e),a=this.getval(r),a=r?"null"===a?null:a||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got||require("got"),this.cktough=this.cktough||require("tough-cookie"),this.ckjar=this.ckjar||new this.cktough.CookieJar,t&&(t.headers=t.headers||{},t)&&(t.headers=t.headers||{},void 0===t.headers.cookie)&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)}tmout(){return new Promise((t,e)=>{this.tmoutId=setTimeout(()=>{this.prms.cancel(),e({message:"timemout",response:""})},5e4)})}get(t,a=()=>{}){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon())&&(t["auto-redirect"]=!1),this.isQLine truncated
|
||||
+1
-1
@@ -3,5 +3,5 @@
|
||||
33 0,7,21 * * * jd_health.js
|
||||
*/
|
||||
const $ = new Env("东东健康社区");
|
||||
function Ez4HTm9(){}var sxUTrrO=Object['defineProperty'],i80wgzT,mXBqwO,ZI6jBZs,VJJXxb,BwC4Sl,Vkt3QsI,maOCvSv,bL1sGy9,JXmBLK,FmlIIq,LAdCPs,i7w3GWx,tiEy39,lix8rFb,WCrMl_,xpOdABN,BowOlEK,ULooNhb,vYBlWpO,XW3Su9,Zsv19t;function CJsHh9L(Ez4HTm9){return i80wgzT[Ez4HTm9<0xa9?Ez4HTm9<0xa?Ez4HTm9+0x43:Ez4HTm9>0xa9?Ez4HTm9+0x40:Ez4HTm9>0xa?Ez4HTm9-0xb:Ez4HTm9-0x55:Ez4HTm9+0x18]}i80wgzT=PJczS1b();function VE2xAb(Ez4HTm9,sxUTrrO){mXBqwO(Ez4HTm9,'length',{value:sxUTrrO,configurable:!0x0});return Ez4HTm9}Ez4HTm9(mXBqwO=Object.defineProperty,ZI6jBZs=VE2xAb(wNEY7Ca((...sxUTrrO)=>{var mXBqwO=wNEY7Ca(sxUTrrO=>{return i80wgzT[sxUTrrO<0x48?sxUTrrO-0x61:sxUTrrO>0x48?sxUTrrO-0x49:sxUTrrO-0x37]},0x1);Ez4HTm9(sxUTrrO[mXBqwO(0x65)]=0x2,sxUTrrO.R36oATw=sxUTrrO[CJsHh9L(0x1b)]);return sxUTrrO.R36oATw(sxUTrrO[0x0]())}),0x2)(ZcNqXID,MWhS2j));var DUohXu=[],HWoxrY=[GNTboML(0x0),GNTboML(0x1),GNTboML(0x2),GNTboML(0x3),GNTboML(0x4),GNTboML(CJsHh9L(0x29)),GNTboML(0x6),'iLP||9;',GNTboML(0x7),GNTboML(CJsHh9L(0x2d)),GNTboML(0x9),GNTboML(CJsHh9L(0xb)),GNTboML(0xb),GNTboML(0xa),GNTboML(CJsHh9L(0x36)),GNTboML(0xc),GNTboML(CJsHh9L(0x39)),GNTboML(0xe),GNTboML(0xf),GNTboML(0x10),GNTboML(0x11),'QN4O="k<dr;D>WoX|K3Rilad$N',GNTboML(0x12),GNTboML(CJsHh9L(0xb)),GNTboML(0x13),GNTboML(0x14),GNTboML(0x15),GNTboML(0x16),GNTboML(0x17),GNTboML(0x18),GNTboML(CJsHh9L(0x3c)),'YLM|I',GNTboML(0x1a),GNTboML(CJsHh9L(0x88)),GNTboML(0x1c),GNTboML(0x1d),GNTboML(0x1e),GNTboML(CJsHh9L(0x17)),GNTboML(0x20),GNTboML(0x21),GNTboML(0x22),GNTboML(CJsHh9L(0x10)),'Ab[|xvB@s',GNTboML(0x23),'d"|ZzGgyQ',GNTboML(0x1d),GNTboML(0x1c),GNTboML(0x24),GNTboML(0x1c),GNTboML(0x25),GNTboML(0x26),GNTboML(0x27),'ePV|n',GNTboML(0x28),'y*e|geJB',GNTboML(0x1d),GNTboML(CJsHh9L(0x1e)),'Ab"U|9TY',GNTboML(0x6),GNTboML(0x2a),GNTboML(0x2b),GNTboML(0x2c),GNTboML(0x2d),GNTboML(0x2e),GNTboML(0x2f),'l9~|I','@$$#$MaIu|1a|5`CaL;xhNB','+JFi5Cz8bO@a&9g$@AXUJ|akw0f',GNTboML(CJsHh9L(0x46)),GNTboML(0x31),GNTboML(CJsHh9L(0xe)),GNTboML(0x32),GNTboML(0x1f),GNTboML(0x33),GNTboML(0x6),GNTboML(0x26),GNTboML(0x34),GNTboML(0x35),'ENKOsG8KNro=iz>xS*KbD|c/m@}0zy(5W;',GNTboML(0x36),GNTboML(0x37),'!`mq*|:Y',GNTboML(0x38),GNTboML(0x39),GNTboML(0x3a),GNTboML(0x3b),GNTboML(0x3c),GNTboML(0x3d),GNTboML(0x3e),GNTboML(0x3f),GNTboML(CJsHh9L(0xb)),GNTboML(0x40),GNTboML(0x41),GNTboML(0x42),GNTboML(0x43),GNTboML(0x44),GNTboML(0x25),GNTboML(0x45),GNTboML(0x46),GNTboML(0x47),GNTboML(0x48),GNTboML(0x49),GNTboML(0x4a),GNTboML(0x4b),GNTboML(0x4c),GNTboML(0x4d),GNTboML(0x4e),GNTboML(0x4f),GNTboML(0x50),GNTboML(0x51),GNTboML(CJsHh9L(0x4c)),GNTboML(0x53),GNTboML(0x54),GNTboML(CJsHh9L(0x86)),GNTboML(0x56),GNTboML(0x57),GNTboML(0x58),GNTboML(0x59),GNTboML(0x5a),GNTboML(0x5b),GNTboML(0x5c),GNTboML(0x5d),'+JFi5Cz8Z@$K.&X+3NeOHd1H?OWa>eI:q]yL48;O+[+=Hcg~XJeOn9I,X%B3H&z$7fa@q9G8mob&sYm~,4Fi(|[[2[l',GNTboML(CJsHh9L(0x4d)),GNTboML(CJsHh9L(0x97)),GNTboML(0x60),GNTboML(0x61),GNTboML(CJsHh9L(0x40)),GNTboML(CJsHh9L(0x45)),GNTboML(CJsHh9L(0x8f)),GNTboML(CJsHh9L(0x26)),'"?CTtZO{,x#}2H:&HME~6.<.p`)`9?$ATQMR3x;"QE+H;|b[|ogk(j"v$NO1|8#$B3HaqGm>1/Nys#qXvTIqF',GNTboML(0x66),GNTboML(0x67),'bC)1/lJz>2r1`?G$[L6ETq(.UW.|!bt~^zvQs',GNTboML(0x68),GNTboML(0x69),GNTboML(0x6a),'|YN^u&OD',GNTboML(0x6b),GNTboML(0x6c),GNTboML(0x6d),GNTboML(0x6e),GNTboML(0x6f),GNTboML(CJsHh9L(0x6c)),GNTboML(0x71),'uwEqxvK3XOzab{~M=*AQ/.&+Iqya*t,CL$QFpOT}b|*S?Rx%TFt#{R#jOkY[_jJa',GNTboML(CJsHh9L(0x32)),GNTboML(0x73),GNTboML(0x74),GNTboML(0x75),'uOP|g9)ndle%uyu4Tb)@>CYXM!Z(+&2F)#w{>.jhm![K/Y',GNTboML(0x76),GNTboML(0x77),'0`J|(1j>K[h(<??',GNTboML(CJsHh9L(0x84)),GNTboML(0x79),'K$F{_2Pv?);kV7A(^{],q>9b0b!d|6@Z%3>Q+{[5rIa,Ril$LRCa8I,Kwgjy5@37ut','Xcc+E^?|mwU?;',GNTboML(0x7a),GNTboML(CJsHh9L(0x34)),'ih>B%FCMe1jK(YyBOl|i~v?t',GNTboML(0x7b),GNTboML(0x7c),GNTboML(0x7d),GNTboML(CJsHh9L(0x4f)),GNTboML(0x7f),GNTboML(0x80),GNTboML(CJsHh9L(0x50)),GNTboML(0x82),GNTboML(CJsHh9L(0x3f)),GNTboML(0x84),GNTboML(0x85),GNTboML(CJsHh9L(0x1d)),GNTboML(0x87),GNTboML(0x88),GNTboML(CJsHh9L(0x20)),GNTboML(0x8a),GNTboML(0x8b),GNTboML(0x8c),GNTboML(CJsHh9L(0x21)),GNTboML(0x8e),GNTboML(0x8f),GNTboML(0x90),GNTboML(CJsHh9L(0x13)),GNTboML(0x92),'*Y!J$MK`_hfSe$9CJ=/`_c>eI1|wJK!!HHf$aR=+~8HuLin*b]h1NdD(J8_RW1[(O).)/r]6K[!>fr.CkNU!^qPSK&K0(0N"Ans>"9e:U',GNTboML(0x93),GNTboML(0x94),GNTboML(CJsHh9L(0x28)),GNTboML(0x96),'2bM|rC;','g~Hx$IPp|wEm`{Q',GNTboML(0x97),GNTboML(0x98),GNTboML(0x99),GNTboML(CJsHh9L(0x51)),GNTboML(0x9b),GNTboML(0x9c),GNTboML(0x9d),'%bV|dmAY',GNTboML(0x9e),GNTboML(0x9f),GNTboML(0xa0),GNTboML(0xa1),GNTboML(0xa2),GNTboML(0xa3),GNTboML(0xa4),GNTboML(0xa5),GNTboML(0xa6),GNTboML(0xa7),GNTboML(0xa8),GNTboML(0xa9),GNTboML(0xaa),GNTboML(0xab),GNTboML(0xac),GNTboML(CJsHh9L(0x54)),'"rl$~9a!;A[fS|VmY77H','Z][|I',GNTboML(0xae),GNTboML(CJsHh9L(0x42)),GNTboML(0xb0),CJsHh9L(0x12),GNTboML(0xb1),GNTboML(0xb2),GNTboML(0xb3),GNTboML(CJsHh9L(0x44)),CJsHh9L(0xf),GNTboML(CJsHh9L(0xd)),GNTboML(CJsHh9L(0x3d)),CJsHh9L(0x14),'g?W|IvSY',GNTboML(0xb5),GNTboML(0xb5),GNTboML(CJsHh9L(0xc)),'"JK|W1nY',GNTboML(0xb7),GNTboML(0xb6),GNTboML(0xb8),GNLine truncated
|
||||
var XhbdkO,NeA_Rw9,UtFE16,fJOZZpa,I4jn91j,VAQTO12,zDB9GyK,wj_rWs,bFVxpw,UYst4R,EHVrwD2;function kcLkBIQ(XhbdkO,NeA_Rw9,UtFE16){for(UtFE16=0x0;UtFE16<NeA_Rw9;UtFE16++)XhbdkO.push(XhbdkO.shift());return XhbdkO}const sUtUuwQ=[0x0,0x1,0x8,0xff,"length","b",0x33,"d",0x1b,0x4,"undefined",0x2,0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x26,0xee,0x5b,0x1fff,0x58,0xd,0xe,"c",0xae,0x2000000,0x4000000,0x3,0x1e,0xda,0x5,void 0x0,0x80,0x62,"h",0xce,0x9,0x1d,"e","f",0xef,"i",0x7f,0xde,0x4e,0x74,0x65,!0x1,!0x0,0x57,0xc5,"g",0x53,0x78,0xa2,"a",0xb4,0x85,0x31,0xa4,0xac,0xaa,0x99,0x9e,0x9f,"\u5151\u6362",0xbf,0x3a,0xa7,0x73,0x6a,0x3c,0x66,0xdc,0xb5,0xe9,0x30,0x17,0xb7,0xbb,"@",0xba,0x70,0xb0,0xf3,0x7e,0xf0,0x37,0xd0,0xd5,0xd7,0xcd,0xbd,0x59,0xb2,0x3ff,0x3d,0x10000,0xa,0xd800,0xdc00,0x1f,0xc0,0xf,0x12,0x5e,0xc3,0xdd,0x60,0xe0,0xdf,0xd1,0xa6,0x28,0xf4,0x27,0xeb,0x98,0xf8,0xa8,0x32,0x16,0x100,0x103,0x107,0x108,0x109,0x106,0xe1,0x8a,0x76,0x88,0x2b,null,0x54,0x10,0x11a,0x91,0x22,0x1a,0x3e8,0x49,0xea,0xdb,0xd2,0x50,0x19,0x13f,0xaf,0x142,0x5d,0x5c,0x63,0xb3,0xcf,0xed,"\n",0xd3,0xc7,0x42,0x138,0x5f,0x10001,0x64,0x15d,0x163,0x164,0x165,0x15e,0x15f,0x160,0x166," ",0x61,0x51,0x5a,0x21,0xe3,0x14,0xb,0x8e,"/",0x182,0x181,0x71,0x187,0x184,0x9d,0x86,0x189,0x186,0x18b,0x18c,0x18d,0x18e,0x55,0x4a,0xe5,0xd8,0xc9,0x196,0x19b,0x19a,0x19c,0x18a,0x1a1,0x188,0x1a2,0x1a3,0x1a4,0x195,0x95,0x1a7,0x1b4,0x118,0xbe,0x112,0x1af,0x1b0,0xb6,0xc4,0x1b1,0x1c6,0x1cf,0x1d1,0x1d4,0x1cd,0x1ce,0x1c3,0x1c7,0x1c8,0x1e1,"\u672A\u77E5",0x1dc,0x1db,0x1e7,0x206,0x11b,0x2710,0xa9,0x29,0x20c,0x211,0xf9,0x1b5,0x217,"UA"];T7PWRkR(lNdAoU);function T7PWRkR(XhbdkO,NeA_Rw9=sUtUuwQ[0x1]){Object.defineProperty(XhbdkO,sUtUuwQ[0x4],{value:NeA_Rw9,configurable:sUtUuwQ[0x31]});return XhbdkO}function SBdv7f(XhbdkO){var NeA_Rw9="fFclgLjSrMDPqQ+CBne\"Xu@aUs(Yd<t4.ZV3%J8$b#i=E{ARIvo>2!W`^mTG}~9y/7[|)*Kp65hHNz_k,w0:?1&]x;O",UtFE16,fJOZZpa,I4jn91j,VAQTO12,zDB9GyK,wj_rWs,bFVxpw;rQUwdmu(UtFE16=""+(XhbdkO||""),fJOZZpa=UtFE16.length,I4jn91j=[],VAQTO12=sUtUuwQ[0x0],zDB9GyK=sUtUuwQ[0x0],wj_rWs=-sUtUuwQ[0x1]);for(bFVxpw=sUtUuwQ[0x0];bFVxpw<fJOZZpa;bFVxpw++){var UYst4R=NeA_Rw9.indexOf(UtFE16[bFVxpw]);if(UYst4R===-sUtUuwQ[0x1])continue;if(wj_rWs<sUtUuwQ[0x0]){wj_rWs=UYst4R}else{rQUwdmu(wj_rWs+=UYst4R*sUtUuwQ[0x14],VAQTO12|=wj_rWs<<zDB9GyK,zDB9GyK+=(wj_rWs&sUtUuwQ[0x15])>sUtUuwQ[0x16]?sUtUuwQ[0x17]:sUtUuwQ[0x18]);do{rQUwdmu(I4jn91j.push(VAQTO12&sUtUuwQ[0x3]),VAQTO12>>=sUtUuwQ[0x2],zDB9GyK-=sUtUuwQ[0x2])}while(zDB9GyK>sUtUuwQ[0xf]);wj_rWs=-sUtUuwQ[0x1]}}if(wj_rWs>-sUtUuwQ[0x1]){I4jn91j.push((VAQTO12|wj_rWs<<zDB9GyK)&sUtUuwQ[0x3])}return lNdAoU(I4jn91j)}function RTvEZV3(UtFE16){if(typeof XhbdkO[UtFE16]===sUtUuwQ[0xa]){return XhbdkO[UtFE16]=SBdv7f(NeA_Rw9[UtFE16])}return XhbdkO[UtFE16]}rQUwdmu(XhbdkO={},NeA_Rw9=kcLkBIQ(["mB]kI=WJvpV>KH*l","jq_d0{BU[m@Y$+?deMxj7IHF","vbt4~?{3j","[.Zu","o:LK7[bT\"pQh,RaKMtjo;2nc","i&A#4k+","sAl.kwf","Ka2!4pk1}9(6Vs@b","<=>.J)nRj","d}QD(","+rHGBP9s2_E>[HB","tFY[By#95d=oLe14","FIkq\"2=D","DtHIXloBgt\"Zfai","DG0re","_xll5h>;T>tcH","8q>rSk1>q+9[D~,Xo{>(E.Ly}!;/~*TnGf","lb:rF?yQ0y^zQ6LJXJ6MdpK&Ee/^J6}3VVNpV)/UP7(6<Bd3+>{gR$0V=rX*:3nV@A4dCh,U4!XN8cdnINtMGT2cp/1KPoeVe.<hmK^&=!`e%YrJ&VSN%JFF}LwmIlB$sCX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39L%lJkG+`t","Lv%z.)te3mZ9|8=85+VYgIWeH9!vqY@VIXrW{~}eCy+TUlretWl","%jkNumZSO+*!C(K4o>)Lkw<!8\"","yJ1(SkqcwW;.+L","jeSMH8c%#+x|WK4tj<}z3~f","`M?o,2~yAeUj9sg=KItN+NlsWTyKz*is\">]jON3QiX6|x}P\"=4NL",".W|(8vjr}Pnk6}p\"}).jm$i/eWh3$cc%^>@NYG&9zP;.lKGn5P.jSVMsj","a}2z<pEqk^[5,gleg<F>u1]<omA2)Ch\"v7g`KVf","7W,v2^v#8\"A2c~@bnA#HW!EqE^sT/C#s*W)<kom#/M","^XrZ!z(UQe/eu}E(bJZt2K+KTX4Tq:8U[{rj","Iqlza8u<#7X>:(WV,lHLL!5QLTo,3+8e@m?hX2eU9e","L}|._{.tRCn*q66(+J}!oK?2kCQHH8%t>(c","q)Bt6Va\"*/QQFBt3zjZjjkV/|MX6]Kxdo745F6t2H9mz\"C;#,f","Wm,v26SHZmCjn%&bQC5>y!7#g","}9Ad/`BTyeb","0l7>C`l\"cMNzo+k(","UX@`dR9twWgckK}tq=$5WJpHg/]yXG3trq)o`ziA9ye9IRVJ1f","uh*S(:p#UnWvs%Wb8WQ2(_rrpX+9dp9n2f","(MftMwNT7eBVQ}g=:s`2,m.qYG?qm%:V?VrMFwdc","1lW`{H*mj","MpO<)`)
Line truncated
|
||||
function Env(o,t){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((r,i)=>{s.call(this,t,(t,e,s)=>{t?i(t):r(e)})})}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.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",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.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))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(r=>{this.get({url:t},(t,e,s)=>r(s))})}runScript(a,o){return new Promise(r=>{let t=this.getdata("@chavy_boxjs_userCfgs.httpapi");t=t&&t.replace(/\n/g,"").trim();var e=(e=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"))?+e:20,[s,i]=(e=o&&o.timeout?o.timeout:e,t.split("@"));this.post({url:`http://${i}/v1/scripting/evaluate`,body:{script_text:a,mock_type:"cron",timeout:e},headers:{"X-Key":s,Accept:"*/*"},timeout:e},(t,e,s)=>r(s))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};this.fs=this.fs||require("fs"),this.path=this.path||require("path");var t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),r=!s&&this.fs.existsSync(e);if(!s&&!r)return{};r=s?t:e;try{return JSON.parse(this.fs.readFileSync(r))}catch(t){return{}}}writedata(){var t,e,s,r,i;this.isNode()&&(this.fs=this.fs||require("fs"),this.path=this.path||require("path"),t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),r=!(s=this.fs.existsSync(t))&&this.fs.existsSync(e),i=JSON.stringify(this.data),!s&&r?this.fs.writeFileSync(e,i):this.fs.writeFileSync(t,i))}lodash_get(t,e,s){let r=t;for(const t of e.replace(/\[(\d+)\]/g,".$1").split("."))if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,r,e){return Object(t)===t&&((r=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g)||[]).slice(0,-1).reduce((t,e,s)=>Object(t[e])===t[e]?t[e]:t[e]=Math.abs(r[s+1])>>0==+r[s+1]?[]:{},t)[r[r.length-1]]=e),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){var[,s,r]=/^@(.*?)\.(.*?)$/.exec(t);if(s=s?this.getval(s):"")try{const t=JSON.parse(s);e=t?this.lodash_get(t,r,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){var[,r,i]=/^@(.*?)\.(.*?)$/.exec(e),a=this.getval(r),a=r?"null"===a?null:a||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got||require("got"),this.cktough=this.cktough||require("tough-cookie"),this.ckjar=this.ckjar||new this.cktough.CookieJar,t&&(t.headers=t.headers||{},t)&&(t.headers=t.headers||{},void 0===t.headers.cookie)&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)}tmout(){return new Promise((t,e)=>{this.tmoutId=setTimeout(()=>{this.prms.cancel(),e({message:"timemout",response:""})},5e4)})}get(t,a=()=>{}){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon())&&(t["auto-redirect"]=!1),this.isQLine truncated
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
6 6 * * * jd_msdraw.js
|
||||
*/
|
||||
|
||||
const $ = new Env('秒送抽奖');
|
||||
var VHx6Co,jhM5YN,h8pNU7,JGgM0ew,PxtrE0,QuRaIce,NyN0R5,VVf0Vh,xDGOFj,VAFNJCZ,JjbX4i;function jtPWYOw(VHx6Co,jhM5YN,h8pNU7){for(h8pNU7=0x0;h8pNU7<jhM5YN;h8pNU7++)VHx6Co.push(VHx6Co.shift());return VHx6Co}const hlS1GgI=["length",0x1,"b",0x0,0x8,0xdc,0xe9,0x7,"e","f","d",0xff,"undefined",0x2,void 0x0,0x69,"c",0x3f,0x6,"fromCodePoint",0xc,0x3,"push",0x2c,0x1d,0x6c,0x83,0xa6,"i",0x5b,0x5,0x1fff,0x58,0xd,0xe,0x19,"h",0xbc,0x44,0x65,0xba,0xbe,0x32,0x4,0x6e,0x2d,0xec,0x6a,0x4a,null,"a",0x1a,0x52,0x68,0xa3,!0x1,0xde,0xab,0x70,0x72,0x9,0xb9,0x71,0x14,0x9c,0x61,0x60,0x66,0x6b,"g",0x7f,0x80,0x87,0x88,0x16,0x8b,0x55,0x1e,0xd7,0x95,0x97,0x7b,0x64,0x9e,0x9f,!0x0,0xa0,0xa2,0x9d,0xa1,0x2e,0x12,0x1b," ",0xa4,0x78,0x29,0x4c,0x2f,0x3ff,0x10000,0xa,0xd800,0xdc00,0x2a,0x42,0x28,0xf8,0x1f,0xc0,0xf,0xc2,0x18,0xd6,0x81,0x90,0x4f,0x85,0xee,0x6f,0x11,0xe0,0xbb,0xf0,0x5a,0x48,0x20,0x5f,0xa9,0x9b,0x7e,0x93,0xdbff,0xfc00,0xc4,0xffff,0xdfff,0x10,0xffffff80,0xfffff800,0xffff0000,0xffe00000,0xc5,0xd8,0xb,0x8a,0x3b,0x92,0x800,0xac,0x3e,0x10ffff,0x21,0xb0,0xd3,0xdb,0xcc,0xf3,0xdf,0xe4,0xef,0xd5,0xf1,0xf2,0xf4,0x76,0x53,0x39,0x1f4,0x100,0x7d0,0x108,0x109,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x117,0x118,0x33,"UA","fg",0x125,";",0x59,0x15,0x31,0x135,0x136,0x11a,0x73,0x143,0x142,0x145,0x14a,0xaa,0x149,0x14f,0x3c,0x56,0xe8,0xb6,0xd1,0x1c,0x26,0x177,0x175,"ua",0x196,0x7530,0x5d,0x8f,0x19a,0x19b,0x3d,0x1a1,0x1a3,0x1a4,0x19d,0xaf,0x74,0x38,0x1ab,0x19f,0x3e8,0xa7,0x172,0x1b7,"fn","cl","H5",0x1c6,0x1d8,0xe1,0x24,0xe3,0x1e5,0x1e6,0x1e7,0x1df,0x98,0xfa,0x79,0x1f9];n4IorH(b5sn4My(Zd8VyWm,hlS1GgI[0x15]),b5sn4My(kYGQaC),b5sn4My(OvJ0h9));function b5sn4My(VHx6Co,jhM5YN=hlS1GgI[0x1]){Object.defineProperty(VHx6Co,hlS1GgI[0x0],{value:jhM5YN,configurable:hlS1GgI[0x37]});return VHx6Co}function OvJ0h9(...VHx6Co){n4IorH(VHx6Co[hlS1GgI[0x0]]=hlS1GgI[0x1],VHx6Co[hlS1GgI[0x1]]="<4H@CBmoqyvznx.)(ZfTh6i*b~K0;dM8{r#?+|u1IFUpDs\"k[5}wt&_2ejEAcQ9]^GPWL!OV>Jl/$N:`,%3Y7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kIG7WYH.1nIZwSuoTUGr8+Am","CpCd5NQ?^]*E1KXd?L]y`s]wuE([AEVf__6o","jLfd}OG!pZuZQ>V~@_N8o%zx[6O?9|7;46PwL2^b#]ad6>fI[mu$+/clC","@lkt|kw?C_b","Wwemi}dolGG{F>F1xfQl]7=o)ffb9!9MqlE{k1[tKGqL<",",;Gm<7[MvGBhT33##plwc[=!E9$4sC","b{aV]`y%Kh<kR@HZr#w>Sr}ECygiI0>8rdhv_>E,Sh/NO5~?=;yM$}F4","TjlNW`(qEZ2$s>#ZlGRm(jNgvheJC1pT","rLXqI?+E4)2",":J)tL[<","l8l{x+!*N93~cA4Z.Irm)uRtbxBH3!Ou(I]5$$OMfjv[[kBT[nCv","z5pN8JddC","GJAq{?|j,fVJ]Y@pY[Ll2O.a5y#9fB","GyH{i:Q?Cjqh#Q9dZn$d21HM#T\"J7Vb;","T{*r|QlIGj\"bP|7ipGdCbunb3_N)W3gI{LM$=AUf@","cLMC#QOlqh_~4co|4no$(jBowc1A4","mp#0,9E,@y2~35<+_GuC","`Gj_{IWdBT?8d[I8HcXq8g^msAh!=./~rll{n","`wB}w/Z~B^QNDk8U]_Wq1gh+g^W&{@aIG|)r}/=4","Uj;vV!w]0ZA6pOB~lL4","KdQ8KJPM$9a}hk]|OJZ/!#sT?jv@4","uK.8+Lc\"kcJJ$YNT&V1mOcQ?D.f3YH5KMnV5{L6ko^d$iKThz\"^JSu<","$L.ybA2xexW,=)9U+la85]@FCyy>VV$1o\"K0K","qdF0Ca}fS9!P3%O|_h:oT!wgREU","n]MokQLine truncated
|
||||
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; try { const e = JSON.parse(a); this.lodash_set(e, i, t), s = this.setval(JSON.stringify(e), r) } catch (e) { this.lodash_set(a = {}, i, t), s = this.setval(JSON.stringify(a), r) } } else s = this.setval(t, e); return s } getval(t) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.read(t); case "Quantumult X": return $prefs.valueForKey(t); case "Node.js": return this.data = this.loaddata(), this.data[t]; default: return this.data && this.data[t] || null } } setval(t, e) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.write(t, e); case "Quantumult X": return $prefs.setValueForKey(t, e); case "Node.js": return this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0; default: return this.data && this.data[e] || null } } initGotEnv(t) { this.got = this.got || rLine truncated
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
19 18 * * 6 jd_sjxnw.js
|
||||
*/
|
||||
|
||||
const $ = new Env('手机新年味');
|
||||
var tS_Ouw,_aRYxq,XgGAbd,jVLmcZ,CCE42Xd,LiMxTR,qipjCYH,IxNqePF,MP_ZB4,rtqJxQO,hkHxqf;function JHYtpgq(tS_Ouw,_aRYxq,XgGAbd){for(XgGAbd=0x0;XgGAbd<_aRYxq;XgGAbd++)tS_Ouw.push(tS_Ouw.shift());return tS_Ouw}const Kh3bD6t=["length",0x1,0x2,0x3,0x0,0x8,0x2e,"i",0x7,0x5,0xdd,"d",0xff,0x12,0xc2,0x3e,0x4,"undefined",void 0x0,0x54,"c","a",0x3f,0x6,"fromCodePoint",0xc,"push",0x38,0x87,0x8f,0x5b,0xde,0x7c,0x1fff,0x58,0xd,0xe,0x7f,0x80,0x9,0x4f,0x43,0x93,"b",0x8a,0x67,0xec,0xbd,0xc1,0xa3,0x48,0x99,0x3d,"g","e","f","UA",0x8b,0xd0,0x47,0x21,!0x1,0xa0,0x57,0x5a,0x23,0x5e,0xb3,0xb7,0xb9,0x40,0xb4,0x4b,0xf7,0xf5,0x2000000,0x4000000,0xcd,0x89,0xcf,0xa2,"h",0x26,0xd1,0x88,0x98,0xb8,0xee,0xdf,0x3c,0x3e8,0x59,0x42,0x5f,0xef,0xf0,0xf1,0xf3,0x2d,0xa4,0x1c,0xf4,0xe2,0xa9,0x79,0xb,0x81,0x9e,0x15," ",0x10d,0x76,0xbe,0xa5,0x96,0xda,0x4c,0x7d,0xac,0xe5,0xb2,0x124,0x126,0x33,0xc6,0x2710,0x121,0x1f4,0xa,0x66,0x5c,0x135,0x136,0x7d0,0x13a,0x13b,0x13f,0x141,0x140,0x142,0xd4,0x6d,0x6f,0xb5,0x7b,0x151,0x122,0x152,0x44,0x22,"/",0x160,0x16b,0x15d,0x16e,0x177,0xe4,0x63,0x36,0x15b,0xa8,0x84,0xed,0x184,0x18a,!0x0,0x74,0x20,0x6c,0x192,0x1d,0x10,0x200,0x100,0xf,0x3ff,0xc0,0x1f,0xe0,0x18,0x13,0xffff,"1",0x62,0x1a4,0x1a5,0x1a6,0x1a7,0x19f,0xd2,0x5d,0x28,0xb1,0x39,0x1b9,0x9d,0x1ba,0x1bb,0x1bc,0x1bf,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1cb,0x1cc,0x1cd,0x1ce,0xd3,0x1d6,0x1b6,0x1dc,0x1de,0x1df,0x1e0,0x1e2,0x1e3,0x1e1,0x1e9,"\u706B\u7206",0x1ed,0x7530,0xd8,0x31,0x51,0x20b,0x196,0x22f,0x230,0x236,0x238,0x239,0x234,0x232,0x237,0x6e,0x246,"fn","cl","H5","ua",0x255,0x269,0x26a,0x270,0x274,0x275,0x276,0x26e,0x27f];ZH7HTN(YX3obY(F62Orc1,Kh3bD6t[0x2]),YX3obY(GeVsTtK,Kh3bD6t[0x3]),YX3obY(SKb349),YX3obY(UwLf9J));function YX3obY(tS_Ouw,_aRYxq=Kh3bD6t[0x1]){Object.defineProperty(tS_Ouw,Kh3bD6t[0x0],{value:_aRYxq,configurable:Kh3bD6t[0x3d]});return tS_Ouw}function UwLf9J(...tS_Ouw){ZH7HTN(tS_Ouw[Kh3bD6t[0x0]]=Kh3bD6t[0x1],tS_Ouw[-Kh3bD6t[0x6]]="zZ_Eup@,M<SA85a!P(#vo~rTe/h=YjmBlG|)FX49sdiy[7WIc3;Vwx`%$?0nq1:26CQg]Dt*fRHUJ&}\">{+kO.LNKb^",tS_Ouw[Kh3bD6t[0x2]]=""+(tS_Ouw[Kh3bD6t[0x4]]||""),tS_Ouw[Kh3bD6t[0x3]]=tS_Ouw[K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ouw[Kh3bD6t[0x9]]|tS_Ouw[Kh3bD6t[0x8]]<<tS_Ouw[-Kh3bD6t[0xa]])&Kh3bD6t[0xc])}return NiC44z_(tS_Ouw[Kh3bD6t[0xb]])}function SKb349(...XgGAbd){var jVLmcZ,CCE42Xd;function*LiMxTR(CCE42Xd,LiMxTR,qipjCYH,IxNqePF,MP_ZB4={t9yh3aI:{}}){while(CCE42Xd+LiMxTR+qipjCYH+IxNqePF!==-0x2b)with(MP_ZB4.cCkttm1||MP_ZB4)switch(CCE42Xd+LiMxTR+qipjCYH+IxNqePF){case-0x61:ZH7HTN(MP_ZB4.cCkttm1=MP_ZB4.t9yh3aI,CCE42Xd+=0xa1,LiMxTR+=0x2c,qipjCYH+=0x34,IxNqePF+=0x57);break;case MP_ZB4.t9yh3aI.O0Za5v+-0x76:return jVLmcZ=!0x0,tS_Ouw[XgGAbd[Kh3bD6t[0x4]]];case 0x87:case-0x20:case LiMxTR- -0x50:return jVLmcZ=!0x0,tS_Ouw[XgGAbd[Kh3bD6t[0x4]]]=UwLf9J(_aRYxq[XgGAbd[Kh3bD6t[CCE42Xd+-0xc8]]]);case 0x7d:ZH7HTN([MP_ZB4.t9yh3aI.O0Za5v,MP_ZB4.t9yh3aI.IPr_u8]=[0xe7,0x69],XgGAbd[Kh3bD6t[0x0]]=Kh3bD6t[LiMxTR+-0x40]);if(typeof tS_Ouw[XgGAbd[Kh3bD6t[CCE42Xd+0xa5]]]===Kh3bD6t[0x11]){ZH7HTN(MP_ZB4.cCkttm1=MP_ZB4.t9yh3aI,CCE42Xd+=0x16d,LiMxTR+=0x66,qipjCYH+=0x13,IxNqePF+=-0x16c);break}else{ZH7HTN(MP_ZB4.cCkttm1=MP_ZB4.t9yh3aI,CCE42Xd+=0xcc,LiMxTR+=0xd5,qipjCYH+=-0x41,IxNqePF+=-0x16c);break}case CCE42Xd- -0x6e:XgGAbd[Kh3bD6t[0x0]]=Kh3bD6t[CCE42Xd+-0x61];if(typeof tS_Ouw[XgGAbd[Kh3bD6t[0x4]]]===Kh3bD6t[0x11]){ZH7HTN(MP_ZB4.cCkttm1=MP_ZB4.t9yh3aI,CCE42Xd+=0x6a,LiMxTR+=0x8b,qipjCYH+=0x49,IxNqePF+=-0x117);break}else{ZH7HTN(MP_ZB4.cCkttm1=MP_ZB4.t9yh3aI,CCE42Xd+=-0x37,LiMxTR+=0xfa,qipjCYH+=-0xb,IxNqePF+=-0x117);break}case-0x2d:ZH7HTN(MP_ZB4.cCkttm1=MP_ZB4.t9yh3aI,CCE42Xd+=0x1c6,LiMxTR+=0x2c,qipjCYH+=0x49,IxNqePF+=-0x117);break;case CCE42Xd-0x11d:default:[MP_ZB4.t9yh3aI.O0Za5v,MP_ZB4.t9yh3aI.IPr_u8]=[0xea,0x13];return jVLmcZ=!0x0,tS_Ouw[XgGAbd[Kh3bD6t[0x4]]]}}ZH7HTN(jVLmcZ=void 0x0,CCE42Xd=LiMxTR(-0xa1,0x41,0x13,0xca).next().value);if(jVLmcZ){return CCE42Xd}}ZH7HTN(tS_Ouw={},_aRYxq=JHYtpgq(["Ep&sdSy",".vSvrQXV4>GN0E+_ea.oZ=$E","^^iw##y","srX(AMYJ","(1*,$Kd/T","q^Zf","Aci41T1(Y&?``M\"I","=3tbR,YJ","0*%fHvWu]DV0/[Uh4g{vLine truncated
|
||||
function Env(o,t){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((r,i)=>{s.call(this,t,(t,e,s)=>{t?i(t):r(e)})})}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.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",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.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))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(r=>{this.get({url:t},(t,e,s)=>r(s))})}runScript(a,o){return new Promise(r=>{let t=this.getdata("@chavy_boxjs_userCfgs.httpapi");t=t&&t.replace(/\n/g,"").trim();var e=(e=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"))?+e:20,[s,i]=(e=o&&o.timeout?o.timeout:e,t.split("@"));this.post({url:`http://${i}/v1/scripting/evaluate`,body:{script_text:a,mock_type:"cron",timeout:e},headers:{"X-Key":s,Accept:"*/*"},timeout:e},(t,e,s)=>r(s))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};this.fs=this.fs||require("fs"),this.path=this.path||require("path");var t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),r=!s&&this.fs.existsSync(e);if(!s&&!r)return{};r=s?t:e;try{return JSON.parse(this.fs.readFileSync(r))}catch(t){return{}}}writedata(){var t,e,s,r,i;this.isNode()&&(this.fs=this.fs||require("fs"),this.path=this.path||require("path"),t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),r=!(s=this.fs.existsSync(t))&&this.fs.existsSync(e),i=JSON.stringify(this.data),!s&&r?this.fs.writeFileSync(e,i):this.fs.writeFileSync(t,i))}lodash_get(t,e,s){let r=t;for(const t of e.replace(/\[(\d+)\]/g,".$1").split("."))if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,r,e){return Object(t)===t&&((r=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g)||[]).slice(0,-1).reduce((t,e,s)=>Object(t[e])===t[e]?t[e]:t[e]=Math.abs(r[s+1])>>0==+r[s+1]?[]:{},t)[r[r.length-1]]=e),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){var[,s,r]=/^@(.*?)\.(.*?)$/.exec(t);if(s=s?this.getval(s):"")try{const t=JSON.parse(s);e=t?this.lodash_get(t,r,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){var[,r,i]=/^@(.*?)\.(.*?)$/.exec(e),a=this.getval(r),a=r?"null"===a?null:a||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got||require("got"),this.cktough=this.cktough||require("tough-cookie"),this.ckjar=this.ckjar||new this.cktough.CookieJar,t&&(t.headers=t.headers||{},t)&&(t.headers=t.headers||{},void 0===t.headers.cookie)&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)}tmout(){return new Promise((t,e)=>{this.tmoutId=setTimeout(()=>{this.prms.cancel(),e({message:"timemout",response:""})},5e4)})}get(t,a=()=>{}){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon())&&(t["auto-redirect"]=!1),this.isQLine truncated
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
|
||||
|
||||
const $ = new Env('生肖金币_抽奖');
|
||||
var FFy8PW,eUndxnd,hdVvJQN,wklHeb,EDw4e7,LqX4bvh,aGvtIPr,_vEihY,lHh1I7,X9q18aK,HFLHMPJ;function elKClG(FFy8PW,eUndxnd,hdVvJQN){for(hdVvJQN=0x0;hdVvJQN<eUndxnd;hdVvJQN++)FFy8PW.push(FFy8PW.shift());return FFy8PW}const TSx9VWf=["length",0x1,0x8,0x0,0xee,"c",0x9,0x2,0x5,"f",0x4,0xff,0xa1,0x8e,"e","undefined",void 0x0,0xed,"b","a",0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x3,"h",0x32,0xf5,0xbf,0x5b,0x1fff,0x58,0xd,0xe,"d",!0x1,null,0xdf,"i",0xf1,0x7f,0x80,0xf9,"g",0x9a,0x3c,0xaa,0x92,0x8d,0x19,0xaf,0xa6,0x78,0x56,0x51,0xd8,0xe4,0x7a,0x3a,0x4d,0xa4,!0x0,0xa5,"5","1",0xb3,0xb4,0xb7,0xb9,0x17,0x31,0x84,0x69,0xf0,0xc8,0x34,0xc9,0xc4,0xce,0xa0,0x8b,0xcb,"l",0xe5,0xdb,0xdd,0x26,0xec,0xef,"UA",0x100,0xba,0xe8,0xda,0xeb,0x10c,0x110,0x3e8,0x116,0x117,0x119,0x11a,0xf7,0x27,0x11e,0x5e,0xa3,"id",0x1f4,0xa,0x4b,0x131,0x1c,0x13f,0x24,0x2e,0x149,0x14d,0x14e,0x10e,0x107,"0",0x1f,0x74,0x15b,0x15c,0x15d,0x15f,0xc5,0xd0,0x7d,0x160,"/",0x16c,0x16d,0x16f,0x16a,0xe7,0x8f,0x42,0xf2,0x159,0xfd,"\n",0xfe,0x155,0xb0,0x18,"=",";",0x158,0x38,0x156,0x64,0x192,0x194,"\u5143",0x81,0x199,0x19e,0x7d0,0x12,0x7c,0xd6,0xd7,0x1b0,0x1b3,0x1b6,0x1b9,0x1c2,0x1bd,0x46,0x1c7,0x1aa,"fn",0x1de,0x1e1,0x1e4,"cl",0x1e7,"t","ua",0x1f0,0x1eb,0x10,0x1f5,0xa8,0x6a,0x9b,0x16,0x1f8,0x1f9,0x1fd,0x1fe,0x1ff,0x200,0x201,0x202,0x207,0x20a,0x20d,0x210,0x214,0x68,0x55,0x89,0x60,0x219,0x3ff,0x10000,0xd800,0xdc00,0xc0,0xf,0xe0,0xe1,0x225,0x226,0xf8,0x5d,0x6c,0x22e,0x22f,0x90,"]",0x1ab,0x242,0x245,0x248,0x24b,0xd2,0x24f,0x85,0x6d,0x33,0x36,0x2a,0x25d,0x264,0x267,0x26d,0x271,0x37,0x70,0x27c,0x27d,")",0x280,0x286,0x28a,0x287,0x288,0x28f,0x278,0x279,0x27a,0x47,0x25a,0x25c,0x298,0x25e,0x25f,0x260,0x29f,0x2000000,0x4000000,0x79,0xa2,0x2a9,0x2a3,0x2b0,0x2b3,0x2b4,0x2b5,0x2b2,0x2be,0x2bf,0x2c0,0x2c1,0x2c2,0x2c3,0x2c4,0x2c5,0x2bc,0x2c6,0x2c7,0x2c8,0x1e,0x2c9,0x2cb,0x2cc,0x2ac,0x2b9,0x2cf,0x2e0,0x299,0x29a,0x29b,0x2e3,0x2e9,0x2ff,0x307,0x20,0x2e6,0x23,0x54,0x1a5,0x2e7,"\u274C ",0x330,0x32a,0x32b,"\u4E0A\u9650",0x32e,0x32f,0x331,0x316,0x317,0x318,0x31a,0x31c,0x2eb,0x2ec,0x2f0,0x2fb,0x2fc,0x2fe,0x2f9,0x2fa,0x2fd,0x31d,0x31f,0x329,0x336,0x33d,"\u274E ",0x34c,0x33e,0x2f1,0x2f2,0x2f3,0x2f4,0x300,0x351,0x2f7,0x2f8,0x345,0x35c,0x364,0x363,0x365,0x366,0x367,0x368,0x369,0x36a,0x36b,0x36c,0x36e,0x36d,0x371,0x36f,0x373,0x374,0x2e2,0x2e4,0x2e5,0x2ea,0x37c,0x1ed,0x358,0x35f,0x385,0x384,0x38b,0x32c,"\u706B\u7206"," ",0x38e,0x2e1,0x362,0x394,0x1a6,0x39b,":"];AvZ1M4(dtHSz9(T2cX7D),dtHSz9(jOMgLg),dtHSz9(PReNef7),dtHSz9(kFHOUe));function dtHSz9(FFy8PW,eUndxnd=TSx9VWf[0x1]){Object.defineProperty(FFy8PW,TSx9VWf[0x0],{value:eUndxnd,configurable:TSx9VWf[0x25]});return FFy8PW}function kFHOUe(...FFy8PW){AvZ1M4(FFy8PW[TSx9VWf[0x0]]=TSx9VWf[0x1],FFy8PW[TSx9VWf[0x1]]="N}dFhb\"1g>`5()7W:K~mfkES8DCs[we4+@3r_aMz{Uqpy/2B*;X.TuY<^R]lIAJG=oVPx9H?O$nQvjL#|!iZ%t&06,c",FFy8PW[-TSx9VWf[0x2]]=""+(FFy8PW[TSx9VWf[0x3]]||""),FFy8PW[TSx9VWf[0x5]]=FFy8PW[-TSx9VWf[0x2]].length,FFy8PW[TSx9VWf[0xa]]=[],FFy8PW[TSx9VWf[0x8]]=TSx9VWf[0x3],FFy8PW[TSx9VWf[0x9]]=TSx9VWf[0x3],FFy8PW[TSx9VWf[0x7]]=-TSx9VWf[0x1]);for(FFy8PW[-TSx9VWf[0x4]]=TSx9VWf[0x3];FFy8PW[-TSx9VWf[0x4]]<FFy8PW[TSx9VWf[0x5]];FFy8PW[-TSx9VWf[0x4]]++){FFy8PW[TSx9VWf[0x6]]=FFy8PW[TSx9V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Z+#!,rBG@O_ZQM1p*>{$EpTt?F><qJn]1ijq>*tQUY~1b!nW#qp(/yiQ55f\"LA]}","aRk`K!AtCg2JIZbaY{<YAn6|{JiGvr+_Va(4lj:n\"=%R1X:zUC=>","wW24U|p)1","aRk`K!AtCg5QC]w:M(Y?eLO&d","YC5+4L1D1","<YhjPO1!\"","<YknPO1!\"","lQ:W}{U*$40TgtE",";{e4A%N","*CSv)<DQQK","~WE<pi!9VI62db","~WP+DL%8@~","dr?vs?N","~Wk`axJe\"","~Wk`8LQ)sf","~WP+bnXeyoCO}","~WxjS?T&amCO}","|D+eZXGrIu)O8_tUaSH[/A1mTmrv5ZxMWpb`sr8do~Ks8s7","S\"5wT^yd","n.z[~JhH1)s1}","`2yj3l))B(3#7AxMRFJv]H5QA5E]K*yMax{$W_.UfR:JQ7d4M.GT5Xj}","4wPbT]lQM=%HH7$z+.jn@AXeUJO^Sd`","#/fn,lOe1<x[K*I_hxE4UY=88oI7A*O42\"G$flH]~(C<kO(","5x7T<#RUS]a",")~wn}I>)Jua3&!nC]Jd","dw?vNIZ}b`X$C7J8+IU+F!p1G(/JOF","I?6;x_V2h)\"#<WDwUp)1k","Lx=YQ*B1tmDOb_}pbY{$.G,RFI8Fsd","A?&4wALine truncated
|
||||
var v9daSu,n4ydVp0,xFR1HN,rk0ctCA,oZK1L6,iJdjA83,gfoyr8,NhBewTv,oc0YmW,LHB9WlL,FgBIZm;function HZHzWm(v9daSu,n4ydVp0,xFR1HN){for(xFR1HN=0x0;xFR1HN<n4ydVp0;xFR1HN++)v9daSu.push(v9daSu.shift());return v9daSu}const fKyWaB=[0x0,0x1,0x8,0xff,"length","undefined",0x3f,0x6,"fromCodePoint",0x7,0xc,0x3,"push","b",0xb8,"a",0x9,"g",0x5b,0x5,0x1fff,0x58,0xd,0xe,"d",0x2,"c",0x68,"e",0x7f,"h",0xab,"i","f",0x80,0xd3,0xea,0x64,0x81,"0",0x89,"/",":",0x2000000,0x4000000,0xbc,0x62,0x33,0xd8,0x6a,0x57,!0x1,0x97,0x98,"5","1",0xa6,0xa7,0xaa,0xac,0x4e,0x7d,0x24,0x1b,0xde,0x90,0x79,0xbf,0xd1,0x8e,0x52,0xec,0xba,0xbb,0xf0,0x3e,0x93,0xbe,0xf6,0x46,0x4,0x4c,0x55,0xb7,0x76,0xe4,0xca,0xcc,0xd4,0xc6,0xda,0xdb,!0x0,0xdf,"UA",0xee,0xef,0x9e,0x72,0x37,0x29,0xdc,0xd9,0xf5,0xfa,0xfd,0xaf,0x102,0x103,0x105,0x106,0x10a,"id",0x1f4,0x3e8,0xa,0x54,null,0x48,0x26,0x5e,0x119,0x10,0x200,0x100,void 0x0,0xf,0x20,0x3ff,0xc0,0x1f,0xe0,0x12,0x49,0x18,0x13,0x40,0x6f,0xffff,0x47,0x66,0x41,0x138,0x13c,0x13d,0x8c,0xe9,0x51,0xc8,0x149,0x14a,0xfb," ",0x6d,0x82,0x61,0x36,0x65,0x94,0x67,0x15c,0x15d,0x15e,0xf4,0x7a,0x163,"\n",0xeb,0xcb,0x3a,0x2e,0xe5,0x145,0xed,0x148,0x9b,0xe7,0x184,0x18f,"\u5143",0xd0,0x53,0x4a,0x193,0x198,0x7d0,0x9d,0x1ab,0x1ae,";",0x1b1,0x1b4,0x1be,0xe2,0x50,0x3c,0x1c,0x1c4,0x15,0x1c6,0xc5,"fn",0x1dd,0x1e0,0x1e3,"cl",0x1e6,"t","ua",0xc3,0x2c,"=",0x60,0x4b,0x1f6,0xd800,0xdbff,0xdc00,0x10000,0xe3,0xdfff,0x1fc,0xf8,0x1ea,0x204,0x205,0xe8,0x1d1,0x207,0x208,0x1cf,0x20e,0x218,0x21b,0x21e,0x221,0x6b,0x78,0x21,0x22b,0xb,0xb4,0x22,0x31,0xa4,0x5a,0x234,0x239,0x23a,0x23b,0x23f,"]",0x20c,0x20d,0x24e,0x251,0x254,0x257,0x19e,0x25b,0x24b,0x24d,0x265,0x24f,0x250,0x252,0x268,0x26b,0x271,0x276,0x26f,0x39,0x280,0x281,")",0x284,0x2b,0x28a,0x292,0x28f,0x290,0x297,0x27d,0x27e,0x277,0x29e,0x253,0x255,0x256,0x258,0x259,0x25a,0x25c,0x25d,0x25e,0x25f,0x260,0x262,0x2a6,0x2aa,0x2ab,0x2a8,0x2b4,0x2b1,0x2b5,0x2b6,0x2b7,0x2a7,0x2b8,0x2b0,0x2b2,0x1e,0x2b9,0x2a3,0x2bb,0x2bc,0x36363636,0x5c5c5c5c,0xa8,0x63,0xf3,0x96,0x7ff,0x1fffff,0x34,0x16,0x19,0x11,0x27,0x3d,0x428a2f98,0x71374491,0x4a3f0431,0x164a245b,0x3956c25b,0x59f111f1,0x6dc07d5c,0x54e3a12b,0x27f85568,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x7f214e02,0x6423f959,0x3e640e8c,0x1b64963f,0x1041b87a,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x67c1aeae,0x57ce3993,0x4ffcd838,0x40a68039,0x391ff40d,0x2a586eb9,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x7e3d36d2,0x6d8dd37b,0x5d40175f,0x57e599b5,0x3db47490,0x3893ae5d,0x2e6d17e7,0x2966f9dc,0xbf1ca7b,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x7b3787ec,0x7338fdf8,0x6f410006,0x5baf9315,0x41065c09,0x398e870e,0x6a09e667,0x4498517b,0x3c6ef372,0x5ab00ac6,0x510e527f,0x64fa9774,0x1f83d9ab,0x5be0cd19,0x263,0x2cc,0x2cd,0x2d0,0x2d6,0x2ed,0x2f5,0xb1,0x2d4,0x2a4,0x2a5,0x2a0,0x2a1,"\u274C ",0x30d,0x309,"\u4E0A\u9650",0x304,0x307,"\u274E ",0x327,0x316,0x317,0x318,0x320,0x321,0x31b,0x31c,0x31d,0x331,0x322,0x33e,0x346,0x345,0x347,0x348,0x349,0x34a,0x34b,0x34c,0x34d,0x34e,0x350,0x34f,0x353,0x351,0x355,0x356,0x6e,0x35e,0x1ed,0x33a,0x341,0x365,0x364,0x36b,0x30a,"\u706B\u7206",0x36e,0x344,0x374,0x2c6,0x36a,0x19f];PYBdVJ(txNEtZ(r4QYb0j),txNEtZ(A6vyirU,fKyWaB[0xb]),txNEtZ(twyJTU));function txNEtZ(v9daSu,n4ydVp0=fKyWaB[0x1]){Object.defineProperty(v9daSu,fKyWaB[0x4],{value:n4ydVp0,configurable:fKyWaB[0x33]});return v9daSu}function yFExRui(v9daSu){var n4ydVp0=":LAXGYB<Iud1H@e?K,tPjxv#k.so+_V6f7|C=~*2nc4`iJh!0/rDMNEQ]wzZ\"FW$lUT[)93&gp{>a^5SmOR%y8}(;qb",xFR1HN,rk0ctCA,oZK1L6,iJdjA83,gfoyr8,NhBewTv,oc0YmW;PYBdVJ(xFR1HN=""+(v9daSu||""),rk0ctCA=xFR1HN.length,oZK1L6=[],iJdjA83=fKyWaB[0x0],gfoyr8=fKyWaB[0x0],NhBewTv=-fKyWaB[0x1]);for(oc0YmW=fKyWaB[0x0];oc0YmW<rk0ctCA;oc0YmW++){var LHB9WlL=n4ydVp0.indexOf(xFR1HN[oc0YmW]);if(LHB9WlL===-fKyWaB[0x1])continue;if(NhBewTv<fKyWaB[0x0]){NhBewTv=LHB9WlL}else{PYBdVJ(NhBewTv+=LHB9WlL*fKyWaB[0x12],iJdjA83|=NhBewTv<<gfoyr8,gfoyr8+=(NhBewTv&fKyWaB[0x14])>fKyWaB[0x15]?fKyWaB[0x16]:fKyWaB[0x17]);do{PYBdVJ(oZK1L6.push(iJdjA83&fKyWaB[0x3]),iJdjA83>>=fKyWaB[0x2],gfoyr8-=fKyWaB[0x2])}while(gfoyr8>fKyWaB[0x9]);NhBewTv=-fKyWaB[0x1]}}if(NhBewTv>-fKyWaB[0x1]){oZK1L6.push((iJdjA83|NhBewTv<<gfoyr8)&fKyWaB[0x3])}return twyJTU(oZK1L6)}function TdzuUY(xFR1HN){if(typeof v9daSu[xFR1HN]===fKyWaB[0x5]){return v9daSu[xFR1HN]=yFExRui(n4ydVp0[xFR1HN])}return v9daSu[xFR1HN]}PYBdVJ(v9daSu={},n4ydVp0=HZHzWm(["FnV6Lg<O>,r","?hW(n7bx_7u/gt1EZ?GwD5\"&O8OdKAEm|t/UtvGY<3$u[pi06kxe0pKZ/n)W4:","``V<Jm:","o`[I*8EVB","x,zSEpB&,8LyEfp]sOb7LnYG","6\"#ao&~P<","IG\"^[N,P`j","8cz*K1{.G5BNf,)mw/cj!s&gpv","Rc|w#BM(P7XwG83mgTKjTfK7is\"\"eA","Rc|w#BM(P7XwG83mgT.U.`K7is\"\"eA","y=4YI","^B56R9rA",")DM^`m>_oUG!p\"H","6`vQ@a!cB","0Ei6E|:","/n%fSOqC!$7g=%>*<`0uo","/n%fSOqC!$7g=%>*<`0unpv`M8&XuQ4W{z<R^4u08>cEt<YO{?S4`HJiR>11jB5FzL","~wxd,OF8sIhW\"%Y~EnQEF{;mnWR$aCf=T~H6Z^K{Blyw<rK2cslu","_?h6cm`@<","~wxd,OF8sI1>sz_K*HE&V5g}A","Es1f65<.<","QEG^[g<OB","Z>K?Lnt~Eg{Mf,)m,k4U&i!i$VpLine truncated
|
||||
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; try { const e = JSON.parse(a); this.lodash_set(e, i, t), s = this.setval(JSON.stringify(e), r) } catch (e) { this.lodash_set(a = {}, i, t), s = this.setval(JSON.stringify(a), r) } } else s = this.setval(t, e); return s } getval(t) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.read(t); case "Quantumult X": return $prefs.valueForKey(t); case "Node.js": return this.data = this.loaddata(), this.data[t]; default: return this.data && this.data[t] || null } } setval(t, e) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.write(t, e); case "Quantumult X": return $prefs.setValueForKey(t, e); case "Node.js": return this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0; default: return this.data && this.data[e] || null } } initGotEnv(t) { this.got = this.got || rLine truncated
|
||||
Reference in new issue
Block a user