This commit is contained in:
2024 committed 2026-08-02 21:17:07 +08:00
1 parent c251e0b9ec
commit c2c657edea
13 files changed
+22 -53

No files matched your search

+1 -1
View File
@@ -1 +1 @@
var acbfygQ,WaGTVFY,kJid9Ic,tw2m6Ns,j_qrMs,VC7vvi3,Ude9N9,ah6fEKD,wAWZZhi,o8kSC3,NjI9B9,GmnDnOG,LAAcN2y,dYTEWY,erolGa;const Bbe8ev=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x224,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x22a,0x12,0x220,0x59,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,0x1fff,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,"+","g",0x6d,0x6e,0x6f,0x70,0x1c,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,"x",0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x2000000,0x4000000,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x18,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,"ua",0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc8,0xc7,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,"w","-","l",0xd7,0xd8,0xd9,0xda,0x5,0xdb,0xdc,0xdd,0xde,0xa,0xb,0xe0,0xe1,0xe2,!0x1,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0x40,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,!0x0,0x1e,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0.75,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,void 0x0,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x3ff,0xffff,0xfff1,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,"06",0x130,0x131,0x132,0x133,0x134,0x135,"_",0x136,"=",0x137,0x138,0x26,0x139,0x13a,0x16,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,"1",0x144,0x145,0x146,0x9,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,"$1",0x19b,0x19c,0x19d,"(","S+",0x19e,"00",0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x24,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,"fp",0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,"tk",0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,"rd",0x1f1,0x1f2,0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,":","&",0x1fa,0x1fb,0x1fc,";",0x1fd,0x1fe,0x1ff,0x200,0x201,0x202,0x203,0x204,0x205,0x206,0x207,0x208,0x209,"t",0x20a,0x20b,0x20c,0x20d,0x20e,0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x216,0x217,0x218,0x219,0x21a,0x21b,"wd","ls",0x21c,0x21d,0x21e,0x21f,0x32,0x221,0x222,0x223,0x225,0x226,0x227,0x228,0x229,0x22b,0x22c,0x22d,0x22e,0x22f,0x230,0x232,0x234,0x233,0x231,0x235,0x236,0x237,0x240,0x23f,"pp","wk",0x46,"pf","v","0",0x23d,0x24d,0x24f,"iv",0x253,0x239,0x25a,0x25b,0x25c];kp4Jbdl(acbfygQ=function(){var WaGTVFY=String.fromCharCode,kJid9Ic="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",tw2m6Ns="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",j_qrMs={},VC7vvi3;function Ude9N9(VC7vvi3,Ude9N9){if(!j_qrMs[VC7vvi3]){var ah6fEKD;j_qrMs[VC7vvi3]={};for(ah6fEKD=Bbe8ev[0x0];ah6fEKD<VC7vvi3.length;ah6fEKD++)j_qrMs[VC7vvi3][VC7vvi3.charAt(ah6fEKD)]=ah6fEKD}return j_qrMs[VC7vvi3][Ude9N9]}VC7vvi3={compressToBase64:function(j_qrMs){var Ude9N9;if(Bbe8ev[0x1]==j_qrMs)return"";Ude9N9=VC7vvi3._compress(j_qrMs,Bbe8ev[0x6],function(Ude9N9){return kJid9Ic.charAt(Ude9N9)});switch(Ude9N9.length%Bbe8ev[0xa]){default:case Bbe8ev[0x0]:return Ude9N9;case Bbe8ev[0x4]:return Ude9N9+"===";case Bbe8ev[0x3]:return Ude9N9+"==";case Bbe8ev[0x7]:return Ude9N9+Bbe8ev[0x110]}},decompressFromBase64:function(j_qrMs){return Bbe8ev[0x1]==j_qrMs?"":""==j_qrMs?Bbe8ev[0x1]:VC7vvi3._decompress(j_qrMs.length,Bbe8ev[0x2],function(VC7vvi3){return Ude9N9(kJid9Ic,j_qrMs.charAt(VC7vvi3))})},compressToUTF16:function(tw2m6Ns){return Bbe8ev[0x1]==tw2m6Ns?"":VC7vvi3._compress(tw2m6Ns,Bbe8ev[0x11],function(j_qrMs){return WaGTVFY(j_qrMs+Bbe8ev[0x2])})+" "},decompressFromUTF16:function(tw2m6Ns){return Bbe8ev[0x1]==tw2m6Ns?"":""==tw2m6Ns?Bbe8ev[0x1]:VC7vvi3._decompress(tw2m6Ns.length,0x4000,function(j_qrMs){return tw2m6Ns.charCodeAt(j_qrMs)-Bbe8ev[0x2]})},compressToUint8Array:function(ah6fEKD){for(var wAWZZhi=VC7vvi3.compress(ah6fEKD),o8kSC3=new Uint8Array(Bbe8ev[0x3]*wAWZZhi.length),NjI9B9=Bbe8ev[0x0],GmnDnOG=wAWZZhi.length;NjI9B9<GmnDnOG;NjI9B9++){var LAAcN2y=wAWZZhi.charCodeAt(NjI9B9);kp4Jbdl(o8kSC3[Bbe8ev[0x3]*NjI9B9]=LAAcN2y>>>Bbe8ev[0x8],o8kSC3[Bbe8ev[0x3]*NjI9B9+Bbe8ev[0x4]]=LAAcLine truncated
var cQoXWpy,Vxz6m3,VUv1GOj,t5FV8n,Y6dGMU,QtGBZkp,Px3PfX,Bzbvv7,PEbIUK,eRb8O51,QUIx3p5,YTx20c1,snObps,PAmBnv,bh15Vla;const oJOOKT=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x220,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x226,0x12,0x21c,0x78,0x79,0x7a,0x7b,0x7c,0x1fff,0x7d,0x7e,0x81,0xc0,0xf0,0x40,0x3ff,0xe0,0xffff,0xfff1,0x82,0x83,0x84,"g","=",0x85,"+",0x86,0x87,0x88,0x89,0x8a,0x9,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x18,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,!0x1,0xaf,"w",0x63,"-","l",0x66,"1",0xb0,0xb1,0xb2,0xb3,0x5,0xb4,0xb5,0xb6,0xb7,0x1c,0xa,0xb,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc1,0xc2,0.75,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,void 0x0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,!0x0,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,"_",0x106,0x107,0x108,0x109,0x10a,"-v",0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,"x",0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,"06",0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x26,0x144,0x16,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x5f,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,"$1",0x19d,0x19e,"(","S+",0x19f,"00",0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,"ua",0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x24,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9," ",0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,"fp",0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x200,0x201,0x202,0x203,0x204,0x205,0x206,0x207,"tk",0x208,0x209,0x20a,0x20b,0x20c,0x20d,0x20e,"rd",0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x216,":","&",0x217,0x218,0x219,0x21a,0x21b,";",0x21d,0x21e,0x21f,0x221,0x222,0x223,0x224,"t",0x225,0x227,0x228,0x229,0x22a,0x22b,0x22c,0x22f,"wd","ls",0x32,0x23c,0x23d,0x23e,0x240,0x248,0x24a,0x24c,0x24b,0x249,0x24d,",",0x24f,0xd800,0x10000,0xdc00,0x255,0x256,0x800,0x250,0x25f,0x25e,0x231,"pp","wk",0x232,0x235,0x64,0x236,0x46,"pf",0x268,"v","0",0x25c,0x26f,0x271,0x239,0x23a,0x23b,"iv",0x23f,0x241,0x242,0x243,0x244,0x275,0x25a,0x27c];z992dH(cQoXWpy=function(){var Vxz6m3=String.fromCharCode,VUv1GOj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t5FV8n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",Y6dGMU={},QtGBZkp;function Px3PfX(QtGBZkp,Px3PfX){if(!Y6dGMU[QtGBZkp]){var Bzbvv7;Y6dGMU[QtGBZkp]={};for(Bzbvv7=oJOOKT[0x0];Bzbvv7<QtGBZkp.length;Bzbvv7++)Y6dGMU[QtGBZkp][QtGBZkp.charAt(Bzbvv7)]=Bzbvv7}return Y6dGMU[QtGBZkp][Px3PfX]}QtGBZkp={compressToBase64:function(Y6dGMU){var Px3PfX;if(oJOOKT[0x1]==Y6dGMU)return"";Px3PfX=QtGBZkp._compress(Y6dGMU,oJOOKT[0x6],function(Px3PfX){return VUv1GOj.charAt(Px3PfX)});switch(Px3PfX.length%oJOOKT[0xa]){default:case oJOOKT[0x0]:return Px3PfX;case oJOOKT[0x4]:return Px3PfX+"===";case oJOOKT[0x3]:return Px3PfX+"==";case oJOOKT[0x7]:return Px3PfX+oJOOKT[0x33]}},decompressFromBase64:function(Y6dGMU){return oJOOKT[0x1]==Y6dGMU?"":""==Y6dGMU?oJOOKT[0x1]:QtGBZkp._decompress(Y6dGMU.length,oJOOKT[0x2],function(QtGBZkp){return Px3PfX(VUv1GOj,Y6dGMU.charAt(QtGBZkp))})},compressToUTF16:function(t5FV8n){return oJOOKT[0x1]==t5FV8n?"":QtGBZkp._compress(t5FV8n,oJOOKT[0x11],function(Y6dGMU){return Vxz6m3(Y6dGMU+oJOOKT[0x2])})+oJOOKT[0x1b0]},decompressFromUTF16:function(t5FV8n){return oJOOKT[0x1]==t5FV8n?"":""==t5FV8n?oJOOKT[0x1]:QtGBZkp._decompress(t5FV8n.length,0x4000,function(Y6dGMU){return t5FV8n.charCodeAt(Y6dGMU)-oJOOKT[0x2]})},compressToUint8Array:function(Bzbvv7){for(var PEbIUK=QtGBZkp.compress(Bzbvv7),eRb8O51=new Uint8Array(oJOOKT[0x3]*PEbIUK.length),QUIx3p5=oJOOKT[0x0],YTx20c1=PEbIUK.length;QUIx3p5<YTx20c1;QUIx3p5++){var snObps=PEbIUK.charCodeAt(QUIx3p5);z992dH(eRb8O51[oJOOKT[0x3]*QUIx3p5]=snObps>>>oJOOKT[0x8],eRb8O51[oJOOKT[0x3]*QUIx3p5+oJOOKT[0x4]]=snObps%oJOOKT[0x5])}return eRb8O51},decLine truncated
-7
View File
@@ -1,7 +0,0 @@
/*
0 6,20 * * * jd_cjzzj.js
*/
const $ = new Env('超级抓抓机');
var nCRt0CO,Zq8FVCt,PdOfDP,UFIbFd,WadKC9T,ucpzJ5E,Mll49B,kTAXFGh,I_T5e9,v71uLeN,VR1BxwO,hb1_W8,FhE_At;const HYksTj=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1eb,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1f1,0x12,0x1e7,0x1fff,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,!0x1,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,"UA",0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0x1f4,0xa,0xc8,0x258,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,"="," ",0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x3e8,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x7d0,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x32,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x5,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,";",0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x200,0x1a4,0x1a5,0x1a6,0x3ff,0x18,0x16,0xb,0x19,0x11,0x13,0x1c,0x22,0x27,0x29,0x3d,0x40,0x9,0xffff,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x36363636,0x5c5c5c5c,0x1b5,0x1b6,0x1b7,0x1b8,0xd800,0xdbff,0xdc00,0xdfff,0x10000,0x7ff,0x1fffff,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,0x1b9,0x1ba,0x1bb,void 0x0,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,!0x0,0x1ce,0x1cf,0x1d0,"\u706B\u7206",0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e8,0x1e9,0x1ea,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,0x1f2,0x1f3,0x1f5,0x1f6,0x1f7," \u274C",0x28,0x37,0x230,0x14,0x233,0x23d,0x23e,0x23f,"\u3011"];tXa6qfh(nCRt0CO=function(){var Zq8FVCt=String.fromCharCode,PdOfDP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",UFIbFd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",WadKC9T={},ucpzJ5E;function Mll49B(ucpzJ5E,Mll49B){if(!WadKC9T[ucpzJ5E]){var kTAXFGh;WadKC9T[ucpzJ5E]={};for(kTAXFGh=HYksTj[0x0];kTAXFGh<ucpzJ5E.length;kTAXFGh++)WadKC9T[ucpzJ5E][ucpzJ5E.charAt(kTAXFGh)]=kTAXFGh}return WadKC9T[ucpzJ5E][Mll49B]}ucpzJ5E={compressToBase64:function(WadKC9T){var Mll49B;if(HYksTj[0x1]==WadKC9T)return"";Mll49B=ucpzJ5E._compress(WadKC9T,HYksTj[0x6],function(Mll49B){return PdOfDP.charAt(Mll49B)});switch(Mll49B.length%HYksTj[0xa]){default:case HYksTj[0x0]:return Mll49B;case HYksTj[0x4]:return Mll49B+"===";case HYksTj[0x3]:return Mll49B+"==";case HYksTj[0x7]:return Mll49B+HYksTj[0x9f]}},decompressFromBase64:function(WadKC9T){return HYksTj[0x1]==WadKC9T?"":""==WadKC9T?HYksTj[0x1]:ucpzJ5E._decompress(WadKC9T.length,HYksTj[0x2],function(ucpzJ5E){return Mll49B(PdOfDP,WadKC9T.charAt(ucpzJ5E))})},compressToUTF16:function(UFIbFd){return HYksTj[0x1]==UFIbFd?"":ucpzJ5E._compress(UFIbFd,HYksTj[0x11],function(WadKC9T){return Zq8FVCt(WadKC9T+HYksTj[0x2])})+HYksTj[0xa0]},decompressFromUTF16:function(UFIbFd){return HYksTj[0x1]==UFIbFd?"":""==UFIbFd?HYksTj[0x1]:ucpzJ5E._decompress(UFIbFd.length,0x4000,function(WadKC9T){return UFIbFd.charCodeAt(WadKC9T)-HYksTj[0x2]})},compressToUint8Array:function(kTAXFGh){for(var I_T5e9=ucpzJ5E.compress(kTAXFGh),v71Line 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
View File
@@ -3,5 +3,5 @@ cron: 6 8,16 * * *
*/
const $ = new Env('互动游戏赚豆');
var n53cfg,JiCN_0,nibpgn7,MPwE1p,VliKVl,yDCjbYm,uPC5G2,xpg0WpV,DZSD53,hreY4M,ADrKSI,ZFRRg8R,g6xx6gt;function LwiSr_(JiCN_0,nibpgn7,MPwE1p){for(MPwE1p=0x0;MPwE1p<nibpgn7;MPwE1p++)JiCN_0.push(JiCN_0.shift());return JiCN_0}const W9DFvP=LwiSr_([0x162,0x164,0x165,0x166,0x167,0x168,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x172,0x184,0x28,0x2000000,0x4000000,0x13,0x19c,0x7530,0x19d,0x1ac,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x163,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x169,0x12,0x15f,0x1fff,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,!0x1,0xcb,0xcc,!0x0,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,"UA",0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc," ",0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,"\u8D26\u53F7",0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0xa,0x10c,0x1f4,0x3e8,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,"\u3010",0x119,0x11a,0x11b,0x11c,0x9c4,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,";",0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x160,0x161],0x16);ZryVVy4(n53cfg=function(){var JiCN_0=String.fromCharCode,nibpgn7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",MPwE1p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",VliKVl={},yDCjbYm;function uPC5G2(yDCjbYm,uPC5G2){if(!VliKVl[yDCjbYm]){var xpg0WpV;VliKVl[yDCjbYm]={};for(xpg0WpV=W9DFvP[0x0];xpg0WpV<yDCjbYm.length;xpg0WpV++)VliKVl[yDCjbYm][yDCjbYm.charAt(xpg0WpV)]=xpg0WpV}return VliKVl[yDCjbYm][uPC5G2]}yDCjbYm={compressToBase64:function(VliKVl){var uPC5G2;if(W9DFvP[0x1]==VliKVl)return"";uPC5G2=yDCjbYm._compress(VliKVl,W9DFvP[0x6],function(uPC5G2){return nibpgn7.charAt(uPC5G2)});switch(uPC5G2.length%W9DFvP[0xa]){default:case W9DFvP[0x0]:return uPC5G2;case W9DFvP[0x4]:return uPC5G2+"===";case W9DFvP[0x3]:return uPC5G2+"==";case W9DFvP[0x7]:return uPC5G2+"="}},decompressFromBase64:function(VliKVl){return W9DFvP[0x1]==VliKVl?"":""==VliKVl?W9DFvP[0x1]:yDCjbYm._decompress(VliKVl.length,W9DFvP[0x2],function(yDCjbYm){return uPC5G2(nibpgn7,VliKVl.charAt(yDCjbYm))})},compressToUTF16:function(MPwE1p){return W9DFvP[0x1]==MPwE1p?"":yDCjbYm._compress(MPwE1p,W9DFvP[0x11],function(VliKVl){return JiCN_0(VliKVl+W9DFvP[0x2])})+W9DFvP[0x84]},decompressFromUTF16:function(MPwE1p){return W9DFvP[0x1]==MPwE1p?"":""==MPwE1p?W9DFvP[0x1]:yDCjbYm._decompress(MPwE1p.length,0x4000,function(VliKVl){return MPwE1p.charCodeAt(VliKVl)-W9DFvP[0x2]})},compressToUint8Array:function(xpg0WpV){for(var DZSD53=yDCjbYm.compress(xpg0WpV),hreY4M=new Uint8Array(W9DFvP[0x3]*DZSD53.length),ADrKSI=W9DFvP[0x0],ZFRRg8R=DZSD53.length;ADrKSI<ZFRRg8R;ADrKSI++){var g6xx6gt=DZSD53.charCodeAt(ADrKSI);ZryVVy4(hreY4M[W9DFvP[0x3]*ADrKSI]=g6xx6gt>>>W9DFvP[0x8],hreY4M[W9DFvP[0x3]*ADrKSI+W9DFvP[0x4]]=g6xx6gt%W9DFvP[0x5])}return hreY4M},decompressFromUint8Array:function(xpg0WpV){var DZSD53;if(W9DFvP[0x1]==xpg0WpV)return yDCjbYm.decompress(xpg0WpV);for(var hreY4M=new Array(xpg0WpV.length/W9DFvP[0x3]),ADrKSI=W9DFvP[0x0],ZFRRg8R=hreY4M.length;ADrKSI<ZFRRg8R;ADrKSI++)hreY4M[ADrKSI]=W9DFvP[0x5]*xpg0WpV[W9DFvP[0x3]*ADrKSI]+xpg0WpV[W9DFvP[0x3]*ADrKSI+W9DFvP[0x4]];DZSD53=[];return hreY4M.forEach(function(hreY4M){DZSD53.push(JiCN_0(hreY4M))}),yDCjbYm.decompress(DZSD53.join(""))},compressToEncodedURIComponent:function(nibpgn7){return W9DFvP[0x1]==nibpgn7?"":yDCjbYm._compress(nibpgn7,W9DFvP[0x6],function(VliKVl){return MPwE1p.charAt(VliKVl)})},decompressFromEncodedURIComponent:function(VliKVl){return W9DFvP[0x1]==VliKVl?"":""==VliKVl?W9DFvP[0x1]:(VliKVl=VliKVl.replace(/ /g,"+"),yDCjbYm._decompress(VliKVl.length,W9DFvP[0x2],function(yDCjbYm){return uPC5G2(MPwE1p,VliKVl.charAt(yDCjbYm))}))},compress:function(MPwE1p){return yDCjbYm._compress(MPwE1p,W9DFvP[0x9],function(VliKVl){return JiCN_0(VliKVl)})},_compress:function(xpg0WpV,DZSD53,hreY4M){if(W9DFvP[0x1]==xpg0WpV)return"";var ADrKSI,ZFRRg8R,g6xx6gt,LwiSr_={},xNCaEAr={},NmZnXlG="",EOosXz="",MlEhaze="",VEfIgW=W9DFvP[0x3],qmK8tW=W9DFvP[0x7],tFiuqx=W9DFvP[0x3],u02T46c=[],VaSTcc=W9DFvP[0x0],tih1hZ=W9DFvP[0x0];for(g6xx6gt=W9DFvP[0x0];g6xx6gt<xpg0WpV.length;g6xx6gt+=W9DFvP[0x4])if(NmZnXlG=xpg0WpV.charAt(g6xx6gt),Object.prototype.hasOwnProperty.call(LwiSr_,NmZnXlG)||(LwiSr_[NmZnXlG]=qmK8tW++Line truncated
var daRoQD,krUBPX8,f_6ttIy,LALnyF,tYiu6F,nMZvPA,FZwIU3,eDE9CUQ,ckFUiLO,cS4Nb8,MBaqQYo,KoqejW,EpGglu;const uEYENp=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x17c,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x182,0x12,0x178,0x59,0x1fff,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,!0x1,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,"UA",0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1," ",0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,"\u8D26\u53F7",0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,!0x0,0xeb,0xec,0xed,0xee,void 0x0,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x3e8,0xa,0x101,0x1f4,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,"\u3010",0x11f,0x120,0x121,0x122,0x9c4,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,";",0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x179,0x17a,0x17b,0x17d,0x17e,0x17f,0x180,0x181,0x183,0x184,0x185,0x186,0x187,0x188,0x7530,0x28,0x13,0x1ad];PN0GmA(daRoQD=function(){var krUBPX8=String.fromCharCode,f_6ttIy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",LALnyF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",tYiu6F={},nMZvPA;function FZwIU3(nMZvPA,FZwIU3){if(!tYiu6F[nMZvPA]){var eDE9CUQ;tYiu6F[nMZvPA]={};for(eDE9CUQ=uEYENp[0x0];eDE9CUQ<nMZvPA.length;eDE9CUQ++)tYiu6F[nMZvPA][nMZvPA.charAt(eDE9CUQ)]=eDE9CUQ}return tYiu6F[nMZvPA][FZwIU3]}nMZvPA={compressToBase64:function(tYiu6F){var FZwIU3;if(uEYENp[0x1]==tYiu6F)return"";FZwIU3=nMZvPA._compress(tYiu6F,uEYENp[0x6],function(FZwIU3){return f_6ttIy.charAt(FZwIU3)});switch(FZwIU3.length%uEYENp[0xa]){default:case uEYENp[0x0]:return FZwIU3;case uEYENp[0x4]:return FZwIU3+"===";case uEYENp[0x3]:return FZwIU3+"==";case uEYENp[0x7]:return FZwIU3+"="}},decompressFromBase64:function(tYiu6F){return uEYENp[0x1]==tYiu6F?"":""==tYiu6F?uEYENp[0x1]:nMZvPA._decompress(tYiu6F.length,uEYENp[0x2],function(nMZvPA){return FZwIU3(f_6ttIy,tYiu6F.charAt(nMZvPA))})},compressToUTF16:function(LALnyF){return uEYENp[0x1]==LALnyF?"":nMZvPA._compress(LALnyF,uEYENp[0x11],function(tYiu6F){return krUBPX8(tYiu6F+uEYENp[0x2])})+uEYENp[0x98]},decompressFromUTF16:function(LALnyF){return uEYENp[0x1]==LALnyF?"":""==LALnyF?uEYENp[0x1]:nMZvPA._decompress(LALnyF.length,0x4000,function(tYiu6F){return LALnyF.charCodeAt(tYiu6F)-uEYENp[0x2]})},compressToUint8Array:function(eDE9CUQ){for(var ckFUiLO=nMZvPA.compress(eDE9CUQ),cS4Nb8=new Uint8Array(uEYENp[0x3]*ckFUiLO.length),MBaqQYo=uEYENp[0x0],KoqejW=ckFUiLO.length;MBaqQYo<KoqejW;MBaqQYo++){var EpGglu=ckFUiLO.charCodeAt(MBaqQYo);PN0GmA(cS4Nb8[uEYENp[0x3]*MBaqQYo]=EpGglu>>>uEYENp[0x8],cS4Nb8[uEYENp[0x3]*MBaqQYo+uEYENp[0x4]]=EpGglu%uEYENp[0x5])}return cS4Nb8},decompressFromUint8Array:function(eDE9CUQ){var ckFUiLO;if(uEYENp[0x1]==eDE9CUQ)return nMZvPA.decompress(eDE9CUQ);for(var cS4Nb8=new Array(eDE9CUQ.length/uEYENp[0x3]),MBaqQYo=uEYENp[0x0],KoqejW=cS4Nb8.length;MBaqQYo<KoqejW;MBaqQYo++)cS4Nb8[MBaqQYo]=uEYENp[0x5]*eDE9CUQ[uEYENp[0x3]*MBaqQYo]+eDE9CUQ[uEYENp[0x3]*MBaqQYo+uEYENp[0x4]];ckFUiLO=[];return cS4Nb8.forEach(function(cS4Nb8){ckFUiLO.push(krUBPX8(cS4Nb8))}),nMZvPA.decompress(ckFUiLO.join(""))},compressToEncodedURIComponent:function(f_6ttIy){return uEYENp[0x1]==f_6ttIy?"":nMZvPA._compress(f_6ttIy,uEYENp[0x6],function(tYiu6F){return LALnyF.charAt(tYiu6F)})},decompressFromEncodedURIComponent:function(tYiu6F){return uEYENp[0x1]==tYiu6F?"":""==tYiu6F?uEYENp[0x1]:(tYiu6F=tYiu6F.replace(/ /g,"+"),nMZvPA._decompress(tYiu6F.length,uEYENp[0x2],function(nMZvPA){return FZwIU3(LALnyF,tYiu6F.charAt(nMZvPA))}))},compress:function(LALnyF){return nMZvPA._compress(LALnyF,uEYENp[0x9],function(tYiu6F){return krUBPX8(tYiu6F)})},_compress:function(eDE9CUQ,ckFUiLO,cS4Nb8){if(uEYENp[0x1]==eDE9CUQ)return"";var MBaqQYo,KoqejW,EpGglu,j3jJjEv={},qODRx9={},bY_rtF="",m7s99R="",Uyrv75Q="",BHLbLi=uEYENp[0x3],IuNkF91=uEYENp[0x7],orv9p4e=uEYENp[0x3],VQDcmPQ=[],V159UG=uEYENp[0x0],SzW3R2=uEYENp[0x0];for(EpGglu=uEYENp[0x0];EpGglu<eDE9CUQ.length;EpLine 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
+6
View File
@@ -0,0 +1,6 @@
/*
cron: 50 8,16 * * *
*/
const $ = new Env('天天赚京豆');
var g2S_PCt,Fr9fhe2,virFBiY,KcoCRe_,Antvjl,SH5SHk,IVTPEm,kwEAA5,g3Tt5U,FvoBGZ,rwkL9x,nBAtz_,cecmqP;function v3jX1PO(Fr9fhe2,virFBiY,KcoCRe_){for(KcoCRe_=0x0;KcoCRe_<virFBiY;KcoCRe_++)Fr9fhe2.push(Fr9fhe2.shift());return Fr9fhe2}const R8yRNFC=v3jX1PO([0x26e,"h5",0x26f,0x270,0x285,0x282,0x29e,0x295,0x297,0x298,0x299,0x29a,0x29b,0x2a4,0x2a5,0x27f,0x2b3,0x2c3,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x264,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x26a,0x12,0x260,0x65,0x66,0x67,0x1fff,0x68,0x69,0x6a,0x6b,0x6c,0xc8,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84," ",0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,!0x1,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,!0x0,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0x32,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,"UA",0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,"\u8D26\u53F7",0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,"fp",0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,"Q",".",0x14c,0x14d,0x14e,0x14f,0x150,0x2000000,0x4000000,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0xa,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x3e8,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,"=",0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x7d0,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,"\u79D2",0x1b2,0x64,0x1f4,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,"10",0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,"\u7B49\u5F85",0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x2bb5,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,0x1fc,0x1fd,"2",0x1fe,0x1ff,0x200,0x201,0x202,0x203,"0",0x204,0x205,0x206,0x207,0x208,0x209,0x20a,0x20b,0x20c,0x20d,0x20e,0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x216,0x217,0x218,0x219,0x21a,0x21b,0x21c,0x21d,0x21e,0x21f,0x220,0x221,"t",0x222,0x223,0x224,0x225,0x226,0x227,0x228,0x229,0x22a,0x22b,0x22c,0x22d,0x22e,0x22f,0x230,0x231,0x232,0x233,0x234,0x235,0x236,0x237,0x238,0x239,0x23a,0x23b,"62",0x23c,0x23d,0x23e,0x23f,0x240,0x241,0x242,0x243,0x244,0x245,0x246,0x247,0x248,"ua",0x249,0x24a,0x24b,0x24c,0x24d,0x24e,0x24f,0x250,0x251,0x252,0x253,0x254,0x255,0x256,0x257,0x258,0x259,0x25a,0x25b,0x25c,0x25d,0x25e,0x25f,0x261,0x262,0x263,0x265,0x266,0x267,0x268,0x269,0x26b,0x26c,0x26d],0x12);OAbRdf(g2S_PCt=function(){var Fr9fhe2=String.fromCharCode,virFBiY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",KcoCRe_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",Antvjl={},SH5SHk;function IVTPEm(SH5SHk,IVTPEm){if(!Antvjl[SH5SHk]){var kwEAA5;Antvjl[SH5SHk]={};for(kwEAA5=R8yRNFC[0x0];kwEAA5<SH5SHk.length;kwEAA5++)Antvjl[SH5SHk][SH5SHk.charAt(kwEAA5)]=kwEAA5}return Antvjl[SH5SHk][IVTPEm]}SH5SHk={compressToBase64:function(Antvjl){var IVTPEm;if(R8yRNFC[0x1]==Antvjl)return"";IVTPEm=SH5SHk._compress(Antvjl,R8yRNFC[0x6],function(IVTPEm){return virFBiY.charAt(IVTPEm)});switch(IVTPEm.length%R8yRNFC[0xa]){default:case R8yRNFC[0x0]:return IVTPEm;case R8yRNFC[0x4]:return IVTPEm+"===";case R8yRNFC[0x3]:return IVTPEm+"==";case R8yRNFC[0x7]:return IVTPEm+R8yRNFC[0x157]}},decompressFromBase64:function(Antvjl){return R8yRNFC[0x1]==Antvjl?"":""==Antvjl?R8yRNFC[0x1]:SH5SHk._decompress(Antvjl.length,R8yRNFC[0x2],function(SH5SHk){return IVTPEm(virFBiY,Antvjl.charAt(SH5SHk))})},compressToUTF16:function(KcoCRe_){return R8yRNFC[0x1]==KcoCRe_?"":SH5SHk._compress(KcoCRe_,R8yRNFC[0x11],function(Antvjl){return Fr9fhe2(Antvjl+R8yRNFC[0x2])})+R8yRNFC[0x3f]},decompressFromUTF16:function(KcoCRe_){return R8yRNFC[0x1]==KcoCRe_?"":""==KcoCRe_?R8yRNFC[0x1]:SH5SHk._decompress(KcoCRe_.length,0x4000,function(Antvjl){return KcoCRe_.charCodeAt(Antvjl)-R8yRNFC[0xLine 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
+7
View File
@@ -0,0 +1,7 @@
/*
cron: 23 9,13 * * *
*/
const $ = new Env('天天领权益');
var XtsBmN,IGn7_rP,fx2WGb,BjGmo7,hEF7wS,YW3bEm,vcEmFX,W6yA3M3,tg_nCi,q3Iej7,aUsGcJf,AxyO9A,WExaAHh;const GHNUWk4=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1d3,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1d9,0x12,0x1cf,0x1fff,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,!0x0,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x200,0x9e,0x9f,0xa0,0xa,0x3ff,0xc0,0xe0,0xf0,0x5,0x18,0x16,0xb,0x19,0x11,0x13,0x1c,0x22,0x27,0x29,0x3d,0x40,0x9,0xffff,0xa1,0xa2,0xa3,0xa4,0xc8,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0x24,0xb7,0xb8,0xb9,0xba,0xbb,"--",0xbc,0xbd,0xbe,0xbf,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0x2000000,0x4000000,0xec,0xed,0xee,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x17,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,!0x1,0x11f,0x120,0x121,0x122,"UA",0x123,0x124,0x125,0x126," ",0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,"\u8D26\u53F7",0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,"fp",0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,"id",0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,void 0x0,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196," x",0x197,0x198,0x199,0x19a,0x19b,0x3e8,0x19c,"=",0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1d0,0x1d1,0x1d2,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e5,0x1f6,0x3c,";",0x1fe,0x20f,0x7d0,0x219,0x21c,0x222,0x224,0x232];CiIjjz(XtsBmN=function(){var IGn7_rP=String.fromCharCode,fx2WGb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",BjGmo7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",hEF7wS={},YW3bEm;function vcEmFX(YW3bEm,vcEmFX){if(!hEF7wS[YW3bEm]){var W6yA3M3;hEF7wS[YW3bEm]={};for(W6yA3M3=GHNUWk4[0x0];W6yA3M3<YW3bEm.length;W6yA3M3++)hEF7wS[YW3bEm][YW3bEm.charAt(W6yA3M3)]=W6yA3M3}return hEF7wS[YW3bEm][vcEmFX]}YW3bEm={compressToBase64:function(hEF7wS){var vcEmFX;if(GHNUWk4[0x1]==hEF7wS)return"";vcEmFX=YW3bEm._compress(hEF7wS,GHNUWk4[0x6],function(vcEmFX){return fx2WGb.charAt(vcEmFX)});switch(vcEmFX.length%GHNUWk4[0xa]){default:case GHNUWk4[0x0]:return vcEmFX;case GHNUWk4[0x4]:return vcEmFX+"===";case GHNUWk4[0x3]:return vcEmFX+"==";case GHNUWk4[0x7]:return vcEmFX+GHNUWk4[0x15f]}},decompressFromBase64:function(hEF7wS){return GHNUWk4[0x1]==hEF7wS?"":""==hEF7wS?GHNUWk4[0x1]:YW3bEm._decompress(hEF7wS.length,GHNUWk4[0x2],function(YW3bEm){return vcEmFX(fx2WGb,hEF7wS.charAt(YW3bEm))})},compressToUTF16:function(BjGmo7){return GHNUWk4[0x1]==BjGmo7?"":YW3bEm._compress(BjGmo7,GHNUWk4[0x11],function(hEF7wS){return IGn7_rP(hEF7wS+GHNUWk4[0x2])})+GHNUWk4[0xe2]},decompressFromUTF16:function(BjGmo7){return GHNUWk4[0x1]==BjGmo7?"":""==BjGmo7?GHNUWk4[0x1]:YW3bEm._decompress(BjGmo7.length,0x4000,function(hEF7wS){return BjGmo7.charCodeAt(hEF7wS)-GHNUWk4[0x2]})},compressToUint8Array:function(W6yA3M3){for(var tg_nCi=YW3bEm.compress(W6yA3M3),q3Iej7=new Uint8Array(GHNUWk4[0x3]*tg_nCi.length),aUsGcJf=GHNUWk4[0x0],AxyO9A=tg_nCi.length;aUsGcJf<AxyO9A;aUsGcJf++){var WExaAHh=tg_nCi.charCodeAt(aUsGcJf);CiIjjz(q3Iej7[GHNUWk4[0x3]*aUsGcJf]=WExaAHh>>>GHNUWk4[0x8],q3Iej7[GHNUWk4[0x3]*aUsGcJf+GHNUWk4[0x4]]=WExaAHh%GHNUWk4[0x5])}return q3Iej7},decompressFromUint8Array:function(W6yA3M3){var tg_nCi;if(GHNUWk4[0x1]==W6yA3M3)return YW3bEm.decompress(W6yA3M3);for(var q3Iej7=new Array(W6yA3M3.length/GHNUWk4[0x3]),aUsGcJf=GHNUWk4[0x0],AxyO9A=q3Iej7.length;aUsGcJf<AxyO9A;aUsGcJf++)q3Iej7[aUsGcJf]=GHNUWk4[0x5]*W6yA3M3[GHNUWk4[0x3]*aUsGcJf]+W6yA3M3[GHNUWk4[0x3]*aUsGcJf+GHNUWk4[0x4]];tg_nCi=[];return q3Iej7.forEach(function(q3Iej7){tg_nCi.push(IGn7_rP(q3Iej7))}),YW3bEm.decompress(tg_nCi.join(""))},compressToEncodedURIComponent:function(fx2WGb){return GHNUWk4[0x1]==fx2WGb?"":YW3bEm._compress(fx2WGb,GHNUWk4[0x6],function(hEF7wS){return BjGmo7.charAt(hEF7wS)})},decompressFromEncodedURIComponent:function(hEF7wS){return GHNUWk4[0x1]==hEF7wS?"":""==hEF7wS?GHNUWk4[0x1]: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 || rLine truncated
-7
View File
@@ -1,7 +0,0 @@
/*
cron: 10 9 * * *
*/
const $ = new Env('天天抽好运');
var p7ibug,SFNp6k,Icu9wmS,H7f7FQ2,l70vEI,ui3LysP,h47X0D0,O5W9v1p,bgnvEFK,RvgZgD4,QTfMIO,LxBuFB,TOG6TC;function kJm1o1D(SFNp6k,Icu9wmS,H7f7FQ2){for(H7f7FQ2=0x0;H7f7FQ2<Icu9wmS;H7f7FQ2++)SFNp6k.push(SFNp6k.shift());return SFNp6k}const Kf_oBva=kJm1o1D([0x1c4,0x1c5,0x1c6,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d8,0x1f6,0x1ff,"\u706B\u7206",0x28,0x13,0x212,0x213,0x214,0x215,0x208,0x20a,0x220,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1c7,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1cd,0x12,0x1c3,0x57,0x59,0x5a,0x1fff,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x7530,0x72,!0x1,!0x0,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,"UA",0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc," ",0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,"\u8D26\u53F7",0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0x3e8,0xa,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,";",0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,"Q",".",0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2],0x1b);MhRBKj(p7ibug=function(){var SFNp6k=String.fromCharCode,Icu9wmS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",H7f7FQ2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",l70vEI={},ui3LysP;function h47X0D0(ui3LysP,h47X0D0){if(!l70vEI[ui3LysP]){var O5W9v1p;l70vEI[ui3LysP]={};for(O5W9v1p=Kf_oBva[0x0];O5W9v1p<ui3LysP.length;O5W9v1p++)l70vEI[ui3LysP][ui3LysP.charAt(O5W9v1p)]=O5W9v1p}return l70vEI[ui3LysP][h47X0D0]}ui3LysP={compressToBase64:function(l70vEI){var h47X0D0;if(Kf_oBva[0x1]==l70vEI)return"";h47X0D0=ui3LysP._compress(l70vEI,Kf_oBva[0x6],function(h47X0D0){return Icu9wmS.charAt(h47X0D0)});switch(h47X0D0.length%Kf_oBva[0xa]){default:case Kf_oBva[0x0]:return h47X0D0;case Kf_oBva[0x4]:return h47X0D0+"===";case Kf_oBva[0x3]:return h47X0D0+"==";case Kf_oBva[0x7]:return h47X0D0+"="}},decompressFromBase64:function(l70vEI){return Kf_oBva[0x1]==l70vEI?"":""==l70vEI?Kf_oBva[0x1]:ui3LysP._decompress(l70vEI.length,Kf_oBva[0x2],function(ui3LysP){return h47X0D0(Icu9wmS,l70vEI.charAt(ui3LysP))})},compressToUTF16:function(H7f7FQ2){return Kf_oBva[0x1]==H7f7FQ2?"":ui3LysP._compress(H7f7FQ2,Kf_oBva[0x11],function(l70vEI){return SFNp6k(l70vEI+Kf_oBva[0x2])})+Kf_oBva[0x96]},decompressFromUTF16:function(H7f7FQ2){return Kf_oBva[0x1]==H7f7FQ2?"":""==H7f7FQ2?Kf_oBva[0x1]:ui3LysP._decompress(H7f7FQ2.length,0x4000,function(l70vEI){return H7f7FQ2.charCodeAt(l70vEI)-Kf_oBva[0x2]})},compressToUint8Array:function(O5W9v1p){for(var bgnvEFK=ui3LysP.compress(O5W9v1p),RvgZgD4=new Uint8Array(Kf_oBva[0x3]*bgnvEFK.length),QTfMIO=Kf_oBva[0x0],LxBuFB=bgnvEFK.length;QTfMIO<LxBuFB;QTfMIO++){var TOG6TC=bgnvEFK.charCodeAt(QTfMIO);MhRBKj(RvgZgD4[Kf_oBva[0x3]*QTfMIO]=TOG6TC>>>Kf_oBva[0x8],RvgZgD4[Kf_oBva[0x3]*QTfMIO+Kf_oBva[0x4]]=TOG6TC%Kf_oBva[0x5])}return RvgZgD4},decompressFromUint8Array:function(O5W9v1p){var bgnvEFK;if(Kf_oBva[0x1]==O5W9v1p)return ui3LysP.decompress(O5W9v1p);for(var RvgZgD4=new Array(O5W9v1p.length/Kf_oBva[0x3]),QTfMIO=Kf_oBva[0x0],LxBuFB=RvgZgD4.length;QTfMIO<LxBuFB;QTfMIO++)RvgZgD4[QTfMIO]=Kf_oBva[0x5]*O5W9v1p[Kf_oBva[0x3]*QTfMIO]+O5W9v1p[Kf_oBva[0x3]*QTfMIO+Kf_oBva[0x4]];bgnvEFK=[];return RvgZgD4.forEach(function(RvgZgD4){bgnvEFK.push(SFNp6k(RvgZgD4))}),ui3LysP.decompress(bgnvEFK.join(""))},compressToEncodedURIComponent:function(Icu9wmS){return Kf_oBva[0x1]==Icu9wmS?"":ui3LysP._compress(Icu9wmS,Kf_oBva[0x6],funLine 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
-6
View File
@@ -1,6 +0,0 @@
/*
cron: 13 9 * * *
*/
const $ = new Env('plus天天盲盒');
var oRLqDY,N6T0z3,WcMtmG,mGoJD5,QhcWQj,Zmx434u,OihS7g2,jYwgIB,M69_nK,DJM84r,elLjHzG;function Q37vkCh(oRLqDY,N6T0z3,WcMtmG){for(WcMtmG=0x0;WcMtmG<N6T0z3;WcMtmG++)oRLqDY.push(oRLqDY.shift());return oRLqDY}const ygzF7Gq=["length",0x1,0x2,0x0,0x87,0xa5,"i",0x7d,0x5,0x6,0x44,0x8,0xff,"undefined",0x3f,"fromCodePoint",0x7,0xc,"push",0x3,0x91,0x63,0xda,0x15,0x5b,"e",0xbc,0x1fff,0x58,0xd,0xe,"d",0xd4,0xe2,0xce,0x9,0x57,"f","UA",0x2f,0xe7,0x6d,!0x1,0x10,0x200,0x68,"h","g",0xd2,0xa3,0x38,0xf,0x4,"b",0x3ff,0x7f,0x1f,0x80,0x12,0xf6,0x98,"a",0x20,0x18,0xa,0x13,0x40,0x22,0xffff,0x54,0xb1,0x85,0xc2,"c",0x4a,0x5a,0x17,0xdc,0xbb,0x99,0x9e,0xa7,0xaf,!0x0,0x4d,0xc9,0xe1,0xb3,0xb5,0xb2,0x9c,0x3c,0xf9,0xc0," ",null,0x3d,0xcd,0xb9,0xb4,0xc8,0x3e8,0x1a,0x39,0x51,"=",";",0xdf,0xe0,0xef,0xf0,0xe5,0x64,0xca,0x42,"j",0x100,0x101,0xd5,0x86,0x52,0x8a,0xd3,0x3b,0x2a,"ua",0x11a,0x112,0x12e,0x66,0x79,0x1e,0x134,0x133,0x137,0x138,0x13a,void 0x0,0x151,0x8b,0x9a,0x41,0x2e,"k"];_VHUcL(J5MSJF(zL7UaZ),J5MSJF(NKmI6I),J5MSJF(RRTh7U),J5MSJF(dlURN6Z),J5MSJF(mbzT3D));function J5MSJF(oRLqDY,N6T0z3=ygzF7Gq[0x1]){Object.defineProperty(oRLqDY,ygzF7Gq[0x0],{value:N6T0z3,configurable:ygzF7Gq[0x2a]});return oRLqDY}function mbzT3D(...oRLqDY){_VHUcL(oRLqDY[ygzF7Gq[0x0]]=ygzF7Gq[0x1],oRLqDY[ygzF7Gq[0x1]]="N)sI0@4/&rGduXT:vtwfk_>JU2Mq|ECxhY,pOy=3~{W1in[V%S#R.;L\"QH(zDmP*oBAK5}]76l<ab$jc+Fe`^g?9!8Z",oRLqDY[ygzF7Gq[0x2]]=""+(oRLqDY[ygzF7Gq[0x3]]||""),oRLqDY[-ygzF7Gq[0x5]]=oRLqDY[ygzF7Gq[0x2]].length,oRLqDY[-ygzF7Gq[0xa]]=[],oRLqDY[ygzF7Gq[0x8]]=ygzF7Gq[0x3],oRLqDY[ygzF7Gq[0x9]]=ygzF7Gq[0x3],oRLqDY[ygzF7Gq[0x7]]=-ygzF7Gq[0x1]);for(oRLqDY[ygzF7Gq[0x4]]=ygzF7Gq[0x3];oRLqDY[ygzF7Gq[0x4]]<oRLqDY[-ygzF7Gq[0x5]];oRLqDY[ygzF7Gq[0x4]]++){oRLqDY[ygzF7Gq[0x6]]=oRLqDY[ygzF7Gq[0x1]].indexOf(oRLqDY[ygzF7Gq[0x2]][oRLqDY[ygzF7Gq[0x4]]]);if(oRLqDY[ygzF7Gq[0x6]]===-ygzF7Gq[0x1])continue;if(oRLqDY[ygzF7Gq[0x7]]<ygzF7Gq[0x3]){oRLqDY[ygzF7Gq[0x7]]=oRLqDY[ygzF7Gq[0x6]]}else{_VHUcL(oRLqDY[ygzF7Gq[0x7]]+=oRLqDY[ygzF7Gq[0x6]]*ygzF7Gq[0x18],oRLqDY[ygzF7Gq[0x8]]|=oRLqDY[ygzF7Gq[0x7]]<<oRLqDY[ygzF7Gq[0x9]],oRLqDY[ygzF7Gq[0x9]]+=(oRLqDY[ygzF7Gq[0x7]]&ygzF7Gq[0x1b])>ygzF7Gq[0x1c]?ygzF7Gq[0x1d]:ygzF7Gq[0x1e]);do{_VHUcL(oRLqDY[-ygzF7Gq[0xa]].push(oRLqDY[ygzF7Gq[0x8]]&ygzF7Gq[0xc]),oRLqDY[ygzF7Gq[0x8]]>>=ygzF7Gq[0xb],oRLqDY[ygzF7Gq[0x9]]-=ygzF7Gq[0xb])}while(oRLqDY[ygzF7Gq[0x9]]>ygzF7Gq[0x10]);oRLqDY[ygzF7Gq[0x7]]=-ygzF7Gq[0x1]}}if(oRLqDY[ygzF7Gq[0x7]]>-ygzF7Gq[0x1]){oRLqDY[-ygzF7Gq[0xa]].push((oRLqDY[ygzF7Gq[0x8]]|oRLqDY[ygzF7Gq[0x7]]<<oRLqDY[ygzF7Gq[0x9]])&ygzF7Gq[0xc])}return RRTh7U(oRLqDY[-ygzF7Gq[0xa]])}function dlURN6Z(...WcMtmG){WcMtmG[ygzF7Gq[0x0]]=ygzF7Gq[0x1];if(typeof oRLqDY[WcMtmG[ygzF7Gq[0x3]]]===ygzF7Gq[0xd]){return oRLqDY[WcMtmG[ygzF7Gq[0x3]]]=mbzT3D(N6T0z3[WcMtmG[ygzF7Gq[0x3]]])}return oRLqDY[WcMtmG[ygzF7Gq[0x3]]]}_VHUcL(oRLqDY={},N6T0z3=Q37vkCh(["_gz7GmP88y","azjl>`{p0","J!U4]\"//=(di~z<M?T5<IK&s","00.$x7N","$4jxe}#s","p1&r","zav:)~wyL6<.ht5+tUWB7iVi*ClC2aFS:XUm?6ZzXW`tZ!;o!GEQ3>z%FJwH!{<F|?tk,@_jH]J^O<,[%:Y,n","/C_%E^*P","kg!|BTLl@","xxV^>bB","9c5,","EO5,","Pxh%U","G:EA65^OJ0DOFT+)g*w|<T7.(1~Y%\".n>[mhK:O&ob[No43)J01!hZL;G8Cnva0k0D1gE.N0%qtgJ5!y`RdC@~mtk<{VM","7%a<@F.<Uk6$b%U,GuC/E.1X(d;wl0:~yRj/sON","cz^@}c2f/","@<@\"9VeUZT0RuIYxLRq<L]io0Lk\")","W1lRXOKEHtb&)6]=XhULU7gt1d=GR=ZWdS|G:FN","r7)hfF){1ze<(]4ymL>SGP$/tw6Sb`/xshNL?7%.KD!]^%S3@LeE6#N","an~L%QW~cuz_&3%3","E[P\"vbpX@(Hz,S\"E01(h$Oj~/oUb)","ZQ?xV*][CzHTHvBJlQc0F\"PUhD./u`]2!Bs","N*Cbq`k?0","fhYC|7})","c2QS=V;JV:6*B0sJ","p5?|YVG&$zw4F+KxhHrj]<9)","y5G6AFgEuBM,LXf~)1{RUHKJqT%/Ve@xrwz&yz}EXARAxe/fyES4<=YH/","u[0E.]b4/","40?.9j7Eou=/&qoOCB#ho3!PWk}*zT>{hI`El}!U<tJ,^IG","cxjx$<bu6BdcUI9EhHybO~r{AfYqdeoW)DUr>#1f$wm_~7d2ikZhC.|s@","W5RE!b]Upu[P.I4xt[fGA%_XYHZ]8+T","yD%RWLoCMTIc{6)1",">MHR8ldXETlp8O\"EBJ`@FYv(/(tcVVUW07\".56*H5fEblFVMfLb@ZzP(/","|<I@]%zX{t;2feCUkL~R8Yiw#fd4(y)t*zEG4%@)","RRP\"Y.#~%_PA)6!|,R!LwPgX$w\"]\"]X","*zS6=yxVPdN61sQWG7<@sFUCYHYb?]=wFBr6G<Q~pHBhjF4","jB?r}%o?ZPgw)^*Cp1b@#^);7oS","jQ$0I,`{Io~U=2AO8z{Cz]=+}fu6Js`{","4wIhWm/}n_","W7<E\"[.(vw0cI=ZOwRk$0,huhw","0rO<5D0CHTu\"7Tqt","\"Tj7CVuoNAs6Rz72.k_<`7^+x_?<:zEE&0*b&%!U%H4,kq)1=7I","e%=|}%.[btkXbz&wg]}<z3\"E$;@R&:BJY%wRT}>&lk","QIjb8`npIHkb_vzJ]N",";IHLvH(+Yr5D/M#,;Lhr6\"M+|T?Ov:&fV4C\"YL&(4oGyV]2J[y+4\"*R)","q~C.V3b<FHIv=y#|~I\"rc7|C2(Hdps","_5rCP,MOYu&BSv01mI>\"jP|s","5xb$I;W[;o@y(yX","ekqh~5..9oQQhIX","s*2h7,dXzkc]jF=2?4oL4OWuGt!OVTuMHBF&","ez_|\",Sf,HgwF+32,rV..eX*i&W%!7hC*zPr#^6u\"oQQ3s(JjN","xHnGQ,RX=X}|lO;p<TMhG=<~1k","fHkxE7Q<9XNqkq(W",".4[/$O_p7(:c`=W=d[JS`zk?!(A2@^syNH!RA[WUP*CU#X]x45jxX<,+NAE.)","BR1ESS1p\"XwXOIEClyrLGPuU;LNY)","zzT/B^|U)wD_U`&f05p6n*P5TA<pw@","dum\"C7Q~zBIq5qEtitS4P(K)",".4*0|~c)xA%pX6aM!PR<nmtfQBdv#X5xGEorf=o4VAy/|V13!nhlfzN","<%?r^=BHWB`]WX3=u59r)[0Cut[z@v]w&5?xn5S*::m*D`zEyR~S06^u0","64R6Ym4C@XmT5Iu3Hnp6b<x*)rj2a]I2:wI","+R{aG%UOYAXko:X=mB1E(;j4[*|6uzg{sh~l8nN","(JP\"+b^u[&Y",":Rg.wOX{%ATe$0",":rXGy5NO/(6]i%:q2<7S{LhOadkbY6NJ`T}G|gX24","Ru}M\"(fpAfExfshyv70xfHgJornxJMNU$zME3*wUrt82_OI2B|j/5;x{gfM","an@x_#fpWtV/IMvk(JY4B^+.&(NjvLine 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
-7
View File
@@ -1,7 +0,0 @@
/*
cron: 1 1 1 1 *
*/
const $ = new Env('秒送抽奖');
var whlA_3,xBbMKn,eBcb971,vsuRoqh,s9W30J,A7KMWjv,x8uiAI,JhqBlf,iERB10,Plg9eqV,YPNBHrV;function C0_ies(whlA_3,xBbMKn,eBcb971){for(eBcb971=0x0;eBcb971<xBbMKn;eBcb971++)whlA_3.push(whlA_3.shift());return whlA_3}const ZeRW_E=["length",0x1,"b",0x0,"h","c","a",0x9,0x30,0x5,0x6,"d",0x8,0xff,0x2,0x4,"undefined",0x3f,"fromCodePoint",0x7,0xc,0x3,"push","g",0x5b,"f",0x1fff,0x58,0xd,0xe,0x2e,"i",0x63,0xf9,0x69,0x42,0xd9,0xd1,0x7d,0x40,0x9e,0x29,0xf5,0x8c,void 0x0,0x64,0xe3,0xa2,0x78,!0x1,0x7f,0x80,0x83,0xa1,0xe2,0x11,"e",0x87,0x89,!0x0,0x4f,0x81,0x8a,0xe9,0xbd,0xf,0x31,0x9f,0xa0,0x1f,0x45,0xda,0xa5,0x5a,0xb2,0xe7,0x4a,0xae,0xa9,0xb7,0xb8,0xb9,0xbb,0xb6,"UA",0x95,0x27,0xbc,0x2d,0xc8,0x23,0xb4," ","\u8D26\u53F7",0xd7,0xdf,0x8d,0xb,0x6b,0x44,0x34,0xef,0xb1,0x7a,0xb5,0x84,0xfa,0xfb,0xfc,0xfd,"id",0x100,0xe8,0x105,0x3e8,0xa,0x76,0x4b,0x11a,0x11b,0x11f,0x120,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0xd8,0x74,0xc6,0x3e,";",0x13a,0xf2,0x66,0x3ff,0x10000,0xd800,0xdc00,0xc0,0xe0,0x12,0xf0,0xd3,0xc4,0x6c,0xba,0x7c,0xf8,0xbf,0xac,0x88,0x9c,0x2c,null,0x16f,0x7e,0x168,0xca,0x171,0x170,0x55,0x17a,0x186,0xe6,0xa8,0x52,0x191,0x94,0x1a3,0x196,0x1a6,"ua",0x7530,0xcb,0x13,0x14,0x53,0x1d4,0x1d7,0x1e8,0x1d2,0x1a7,0x1f4,0x1f1,"fn","cl","H5",0x200,0x21c,0x220,0x221,0x21a,0x10001,0x1e,0x229];y6114u(nOOVJU(kQc77BY),nOOVJU(conoFf,ZeRW_E[0xe]),nOOVJU(GtuJns,ZeRW_E[0x15]),nOOVJU(AS9SD6_),nOOVJU(n5LFTlA));function nOOVJU(whlA_3,xBbMKn=ZeRW_E[0x1]){Object.defineProperty(whlA_3,ZeRW_E[0x0],{value:xBbMKn,configurable:ZeRW_E[0x31]});return whlA_3}function n5LFTlA(...whlA_3){y6114u(whlA_3[ZeRW_E[0x0]]=ZeRW_E[0x1],whlA_3[ZeRW_E[0x6]]="c1+o:s=Vz~XM,FjkmK4?|P_yh.{x3BtIqOlZ$9W>#a)w68f[E@bL%<NY&T^d2rAn]RGQ5i7;Cpe}SU\"v`!D0uJ/(*gH",whlA_3[ZeRW_E[0x2]]=""+(whlA_3[ZeRW_E[0x3]]||""),whlA_3[ZeRW_E[0x5]]=whlA_3[ZeRW_E[0x2]].length,whlA_3[ZeRW_E[0xb]]=[],whlA_3[ZeRW_E[0x9]]=ZeRW_E[0x3],whlA_3[ZeRW_E[0xa]]=ZeRW_E[0x3],whlA_3[ZeRW_E[0x8]]=-ZeRW_E[0x1]);for(whlA_3[ZeRW_E[0x4]]=ZeRW_E[0x3];whlA_3[ZeRW_E[0x4]]<whlA_3[ZeRW_E[0x5]];whlA_3[ZeRW_E[0x4]]++){whlA_3[ZeRW_E[0x7]]=whlA_3[ZeRW_E[0x6]].indexOf(whlA_3[ZeRW_E[0x2]][whlA_3[ZeRW_E[0x4]]]);if(whlA_3[ZeRW_E[0x7]]===-ZeRW_E[0x1])continue;if(whlA_3[ZeRW_E[0x8]]<ZeRW_E[0x3]){whlA_3[ZeRW_E[0x8]]=whlA_3[ZeRW_E[0x7]]}else{y6114u(whlA_3[ZeRW_E[0x8]]+=whlA_3[ZeRW_E[0x7]]*ZeRW_E[0x18],whlA_3[ZeRW_E[0x9]]|=whlA_3[ZeRW_E[0x8]]<<whlA_3[ZeRW_E[0xa]],whlA_3[ZeRW_E[0xa]]+=(whlA_3[ZeRW_E[0x8]]&ZeRW_E[0x1a])>ZeRW_E[0x1b]?ZeRW_E[0x1c]:ZeRW_E[0x1d]);do{y6114u(whlA_3[ZeRW_E[0xb]].push(whlA_3[ZeRW_E[0x9]]&ZeRW_E[0xd]),whlA_3[ZeRW_E[0x9]]>>=ZeRW_E[0xc],whlA_3[ZeRW_E[0xa]]-=ZeRW_E[0xc])}while(whlA_3[ZeRW_E[0xa]]>ZeRW_E[0x13]);whlA_3[ZeRW_E[0x8]]=-ZeRW_E[0x1]}}if(whlA_3[ZeRW_E[0x8]]>-ZeRW_E[0x1]){whlA_3[ZeRW_E[0xb]].push((whlA_3[ZeRW_E[0x9]]|whlA_3[ZeRW_E[0x8]]<<whlA_3[ZeRW_E[0xa]])&ZeRW_E[0xd])}return OQ71v8y(whlA_3[ZeRW_E[0xb]])}function AS9SD6_(...eBcb971){var vsuRoqh,s9W30J;function*A7KMWjv(s9W30J,A7KMWjv,x8uiAI={xsGeKr1:{}}){while(s9W30J+A7KMWjv!==-0x67)with(x8uiAI.JVzll8B||x8uiAI)switch(s9W30J+A7KMWjv){case s9W30J!=-0x57&&s9W30J- -0x26:case 0xca:eBcb971[ZeRW_E[s9W30J+0x89]]=ZeRW_E[0x1];if(typeof whlA_3[eBcb971[ZeRW_E[0x3]]]===ZeRW_E[0x10]){y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0x6a,A7KMWjv+=0x4a);break}else{y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0x71,A7KMWjv+=-0xe);break}case-0x1b:case 0x14:case-0x31:eBcb971[ZeRW_E[0x0]]=ZeRW_E[0x1];if(typeof whlA_3[eBcb971[ZeRW_E[s9W30J+0x5a]]]===ZeRW_E[s9W30J+0x67]){y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0x9c,A7KMWjv+=0x4a);break}else{y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0xa3,A7KMWjv+=-0xe);break}case x8uiAI.xsGeKr1.XhHbcXd+0xd2:y6114u([x8uiAI.xsGeKr1.XhHbcXd,x8uiAI.xsGeKr1.wGBRYMT]=[0xbd,0x57],x8uiAI.JVzll8B=x8uiAI.KPV9qVe,s9W30J+=0xa6,A7KMWjv+=-0x17);break;default:case-0x6c:y6114u([x8uiAI.xsGeKr1.XhHbcXd,x8uiAI.xsGeKr1.wGBRYMT]=[-0xbd,0x16],eBcb971[ZeRW_E[s9W30J+-0x4f]]=ZeRW_E[s9W30J+-0x4e]);if(typeof whlA_3[eBcb971[ZeRW_E[s9W30J+-0x4c]]]===ZeRW_E[0x10]){y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0x142,A7KMWjv+=0x1b);break}else{y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0x149,A7KMWjv+=-0x3d);break}case s9W30J- -0x18:return vsuRoqh=!0x0,whlA_3[eBcb971[ZeRW_E[0x3]]];case 0x6f:case 0x9:case s9W30J!=-0x46&&s9W30J- -0x2f:return vsuRoqh=!0x0,whlA_3[eBcb971[ZeRW_E[0x3]]];case-0x5d:case-0xe5:case-0x17:eBcb971[ZeRW_E[0x0]]=ZeRW_E[0x1];if(typeof whlA_3[eBcb971[ZeRW_E[s9W30J+0x49]]]===ZeRW_E[s9W30J+0x56]){y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0xad,A7KMWjv+=0x41);break}else{y6114u(x8uiAI.JVzll8B=x8uiAI.xsGeKr1,s9W30J+=-0xb4,A7KMWjv+=-0x17);break}case 0xdd:case x8uiAI.xsGeKr1.XhHbcXd+0x3a:case-0xbf:return vsuRoqh=!0x0,whlA_3[eBcb971[ZeRW_E[0x3]]]=n5LFTlA(xBbMKn[eBcb971[ZeRW_E[s9W30J+0xf6]]])}}y6114u(vsuRoqh=void 0x0,s9W30J=A7KMWjv(0x4f,0x55).next().value);if(vsuRoqh){return s9W30J}}y6114u(whlA_3={},xBbMKn=C0_ies(["@C\"Nw[iH","Na>^g%Le]","F$b.","4j/EfRfc]~kzze(H","}U8<i&])","0q7pF@1%w?20IQBDE=a@cht","1Uapw5>Ip_#b9QFEor","0q7pN~?#+v}!1u&ipr","+Dy<j2pI,GViU]f>Q=Oo}","+DLine 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
-6
View File
@@ -1,6 +0,0 @@
/*
cron: 38 4,16 * * *
*/
const $ = new Env('秒送签到');
var ZEtAz_,CSS5L4M,gSR3vP,K3Yz9x,VOz84K,o9U5tE,b3P54_q,NqI7mF,AYq4yk,iU7MXh,anpX_N,Zj5JEo,iLUKVt;function a_QdR5(CSS5L4M,gSR3vP,K3Yz9x){for(K3Yz9x=0x0;K3Yz9x<gSR3vP;K3Yz9x++)CSS5L4M.push(CSS5L4M.shift());return CSS5L4M}const euQWMyf=a_QdR5([0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1ba,0x1bb,0x1bc,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ce,0x1d4,0x1d6,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1bd,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1c3,0x12,0x1b9,0x7a,"="," ",0x7b,0x7c,0x1fff,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,!0x1,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,!0x0,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,"UA",0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0x1f4,0xa,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0x3e8,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1],0x18);kbTik1a(ZEtAz_=function(){var CSS5L4M=String.fromCharCode,gSR3vP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",K3Yz9x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",VOz84K={},o9U5tE;function b3P54_q(o9U5tE,b3P54_q){if(!VOz84K[o9U5tE]){var NqI7mF;VOz84K[o9U5tE]={};for(NqI7mF=euQWMyf[0x0];NqI7mF<o9U5tE.length;NqI7mF++)VOz84K[o9U5tE][o9U5tE.charAt(NqI7mF)]=NqI7mF}return VOz84K[o9U5tE][b3P54_q]}o9U5tE={compressToBase64:function(VOz84K){var b3P54_q;if(euQWMyf[0x1]==VOz84K)return"";b3P54_q=o9U5tE._compress(VOz84K,euQWMyf[0x6],function(b3P54_q){return gSR3vP.charAt(b3P54_q)});switch(b3P54_q.length%euQWMyf[0xa]){default:case euQWMyf[0x0]:return b3P54_q;case euQWMyf[0x4]:return b3P54_q+"===";case euQWMyf[0x3]:return b3P54_q+"==";case euQWMyf[0x7]:return b3P54_q+euQWMyf[0x20]}},decompressFromBase64:function(VOz84K){return euQWMyf[0x1]==VOz84K?"":""==VOz84K?euQWMyf[0x1]:o9U5tE._decompress(VOz84K.length,euQWMyf[0x2],function(o9U5tE){return b3P54_q(gSR3vP,VOz84K.charAt(o9U5tE))})},compressToUTF16:function(K3Yz9x){return euQWMyf[0x1]==K3Yz9x?"":o9U5tE._compress(K3Yz9x,euQWMyf[0x11],function(VOz84K){return CSS5L4M(VOz84K+euQWMyf[0x2])})+euQWMyf[0x21]},decompressFromUTF16:function(K3Yz9x){return euQWMyf[0x1]==K3Yz9x?"":""==K3Yz9x?euQWMyf[0x1]:o9U5tE._decompress(K3Yz9x.length,0x4000,function(VOz84K){return K3Yz9x.charCodeAt(VOz84K)-euQWMyf[0x2]})},compressToUint8Array:function(NqI7mF){for(var AYq4yk=o9U5tE.compress(NqI7mF),iU7MXh=new Uint8Array(euQWMyf[0x3]*AYq4yk.length),anpX_N=euQWMyf[0x0],Zj5JEo=AYq4yk.length;anpX_N<Zj5JEo;anpX_N++){var iLUKVt=AYq4yk.charCodeAt(anpX_N);kbTik1a(iU7MXh[euQWMyf[0x3]*anpX_N]=iLUKVt>>>euQWMyf[0x8],iU7MXh[euQWMyf[0x3]*anpX_N+euQWMyf[0x4]]=iLUKVt%euQWMyf[0x5])}return iU7MXh},decompressFromUint8Array:function(NqI7mF){var AYq4yk;if(euQWMyf[0x1]==NqI7mF)return o9U5tE.decompress(NqI7mF);for(var iU7MXh=new Array(NqI7mF.length/euQWMyf[0x3]),anpX_N=euQWMyf[0x0],Zj5JEo=iU7MXh.length;anpX_N<Zj5JEo;anpX_N++)iU7MXh[anpX_N]=euQWMyf[0x5]*NqI7mF[euQWMyf[0x3]*anpX_N]+NqI7mF[euQWMyf[0x3]*anpX_N+euQWMyf[0x4]];AYq4yk=[];return iU7MXh.forEach(function(iU7MXh){AYq4yk.push(CSS5L4M(iU7MXh))}),o9U5tE.decompress(AYq4yk.join(""))},compressToEncodedURIComponent:function(gSR3vP){return euQWMyf[0x1]==gSR3vP?"":o9U5tE._compress(gSR3vP,euQWMyf[0x6],function(VOz84K){return K3Yz9x.charAt(VOz84K)})},decompressFromEncodedURIComponent:function(VOz84K){return euQWMyf[0x1]==VOz84K?"":""==VOz84K?euQWMyf[0x1]:(VOz84K=VOz84K.replace(/ /g,"+"),o9U5tE._decompress(VOz84K.length,euQWMyf[0x2],function(o9U5tE){return b3P54_q(K3Yz9x,VOz84K.charAt(o9U5tE))}))},compress:function(K3Yz9x){return o9U5tE._compress(K3Yz9x,euQWMyf[0x9],function(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 || rLine truncated
-6
View File
@@ -1,6 +0,0 @@
/*
1 1 29 2 * jd_video_task.js
*/
const $ = new Env('看视频赚现金-任务');
var OdLIO7,U_NR39,KoJgcs,L1pPvC,hhwuo6,tsBmf7v,vsSg59m,qiQhiuP,xqMacIf,CrpF7v,U74rYK,qGDSSx,zlwEsZI;function qmjWzv(U_NR39,KoJgcs,L1pPvC){for(L1pPvC=0x0;L1pPvC<KoJgcs;L1pPvC++)U_NR39.push(U_NR39.shift());return U_NR39}const aR_T_y5=qmjWzv([0x11,0x13,0x1c,0x27,0x29,0x3d,0x40,0x9,0xffff,0x292,0x294,0x297,0x29a,0x2a3,0x293,0x280,0x281,0x29c,0x29d,0x29e,0x2a9,0x2ad,0x2b2,0x2bc,0x2bd,0x2710,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x273,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x279,0x12,0x26f,0x1fff,0x57,0x59,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x1e,0x6c,0x6d,0x6e,0x6f,0x70,0x71,!0x1,0x72,!0x0,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,"UA",0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba," ",0xbb,0xbc,0xbd,0xbe,0xbf,0x1f4,0xa,0xc0,0xc1,0xc2,0xc3,0x23,0x22,0x1d,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,"1",0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0x7d0,0xdd,"31",0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,"\u3011",0x12c,0x12d,0x12e,0x12f,0x130,0x131,"tm",0x132,0x133,0x3e8,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,"g",0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,"0",0x177,0x178,0x179,0x17a,0x17b,0x17c,"21",0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,"24",0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,"20",0x1c2,0x1c3,0x1c4,"2",0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,"3",0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,"25",0x1d5,0x1d6,"26",0x1d7,"27",0x1d8,"29",0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x200,0x201,0x202,0x203,0x204,0x205,0x206,0x207,0x208,0x209,0x20a,0x20b,0x20c,0x20d,0x20e,0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x216,0x217,0x218,0x219,0x21a,0x21b,0x21c,0x21d,0x21e,0x21f,0x220,0x221,0x222,0x223,0x224,0x225,0x226,0x227,0x228,0x229,0x22a,0x22b,0x22c,0x22d,0x22e,0x22f,0x230,0x231,0x232,0x233,0x234,0x235,0x236,0x237,0x238,0x239,0x23a,0x23b,0x23c,0x23d,0x23e,0x23f,0x240,0x241,0x242,0x243,0x244,0x245,0x246,0x247,0x248,0x249,0x24a,0x24b,0x24c,0x24d,0x24e,0x24f,0x250,0x251,0x252,0x253,0x254,0x255,0x256,0x257,0x258,0x259,0x25a,0x25b,0x25c,0x25d,0x25e,0x25f,0x260,0x261,0x262,0x263,0x264,0x265,0x266,0x267,0x268,0x269,";",0x26a,0x26b,0x26c,0x26d,0x26e,"ua",0x270,0x271,0x272,0x274,0x275,0x276,0x277,0x278,0x27a,0x27b,0x27c,0x27d,0x27e,0x27f,0x283,0x287,0x289,0x3ff,0x5,0x18,0x16,0xb,0x19],0x1a);QLlQMxe(OdLIO7=function(){var U_NR39=String.fromCharCode,KoJgcs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",L1pPvC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",hhwuo6={},tsBmf7v;function vsSg59m(tsBmf7v,vsSg59m){if(!hhwuo6[tsBmf7v]){var qiQhiuP;hhwuo6[tsBmf7v]={};for(qiQhiuP=aR_T_y5[0x0];qiQhiuP<tsBmf7v.length;qiQhiuP++)hhwuo6[tsBmf7v][tsBmf7v.charAt(qiQhiuP)]=qiQhiuP}return hhwuo6[tsBmf7v][vsSg59m]}tsBmf7v={compressToBase64:function(hhwuo6){var vsSg59m;if(aR_T_y5[0x1]==hhwuo6)return"";vsSg59m=tsBmf7v._compress(hhwuo6,aR_T_y5[0x6],function(vsSg59m){return KoJgcs.charAt(vsSg59m)});switch(vsSg59m.length%aR_T_y5[0xa]){default:case aR_T_y5[0x0]:return vsSg59m;case aR_T_y5[0x4]:return vsSg59m+"===";case aR_T_y5[0x3]:return vsSg59m+"==";case aR_T_y5[0x7]:return vsSg59m+"="}},decompressFromBase64:function(hhwuo6){return aR_T_y5[0x1]==hhwuo6?"":""==hhwuo6?aR_T_y5[0x1]:tsBmf7v._decompress(hhwuo6.length,aR_T_y5[0x2],function(tsBmf7v){return vsSg59m(KoJgcs,hhwuo6.charAt(tsBmf7v))})},compressToUTF16:function(L1pPvC){return aR_T_y5[0x1]==L1pPvC?"":tsBmf7v._compress(L1pPvC,aR_T_y5[0x11],function(hhwuo6){return Line truncated
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(tLine truncated
-6
View File
@@ -1,6 +0,0 @@
/*
1 1 29 2 * jd_video_view.js
*/
const $ = new Env('看视频赚现金-浏览');
var PU3PdGJ,QVxIbp,LmjEKFv,d9J42y,eor_V3,jZgVu0,INY4kZ8,D6zedo,louEtdi,mCAtL7,oiSmxJI;function jqvHzvz(PU3PdGJ,QVxIbp,LmjEKFv){for(LmjEKFv=0x0;LmjEKFv<QVxIbp;LmjEKFv++)PU3PdGJ.push(PU3PdGJ.shift());return PU3PdGJ}const qyFEeg=[0x0,0x1,0x8,0xff,"length","undefined",void 0x0,0xa3,0x3,"b",0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0xb0,"h","a","i","g",0x5b,0x90,0xb2,0x1fff,0x58,0xd,0xe,"d",0x3c,"=",";",!0x1,0x12,0x50,"c","e",0x2c,0xe6,0x2,!0x0,0x75,0x7f,0x80,0x7e,0xbf,0xe9,0x9a,0x4,null,"\n",0x62,0x1a,0x5,"f",0x76,0x8e,0xb4,0xdd,0x95,0x96,0x99,0x8b,0x23,0x9,0xa,0xa5,"id",0x17,0x42,0xc6,0x20,0xd1,0xa9,0xd2,"\u8D26\u53F7","\u3010",0xb6,0xb8,0x49,0x18,0x3e8,0x66,0xdb,0x45,0xdf,0x4f,0xde,0xb3,0x2b,0xe5,0x9c,0x3a,0xbd,0xef,0x6e,0x52,0x1b,0xf2,0xf3,0xd4,0xee,"\u3011",0x2710,0xf0,0xf1,0x100,0xa7,0x9e,0xfc,0x1f4,0xe7,0x91,0x72,"\uD83D\uDCB0",0x119,0x117,0x122,0x126,0x114,0x115,0x133,0x89,0xea,0x13d,"0","1",0x13e,0x140,0x141,0x142,0x143,0x146,0x147,0x148,0x15c,0x12d,0x8a,0x14b,0x161,0x186,0x178,0x165,0x1a8,0x14c,0x14e,"UA","ua",0x1b2,0x1bf,0x1bc,0x1c9,0x10c,0x1ce,0x173,0x174,0x1dd,0x1e9,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1f1,0x1d6,0x10d,0xd6,0x1ee,0x1ef,"\"}",0x1f2,0x1f6,0x1f7,0x1fc,0x204,0x167,0x168,0x169,0x16c,0x16d,0x16e,0x16f,0x20a];jFN6Sa(yowDmom);function jFN6Sa(PU3PdGJ,QVxIbp=qyFEeg[0x1]){Object.defineProperty(PU3PdGJ,qyFEeg[0x4],{value:QVxIbp,configurable:qyFEeg[0x20]});return PU3PdGJ}function Tffrhd(PU3PdGJ){var QVxIbp="!=([58/\"aj$NsnIV.WUl1Sb&APzX^<fLBphY*i2v3~6QFgtOoC9}:m;E>{4kD)wH7M%e0y#uJKx_Tr@q+d|,G`Zc]R?",LmjEKFv,d9J42y,eor_V3,jZgVu0,INY4kZ8,D6zedo,louEtdi;wP6W4f3(LmjEKFv=""+(PU3PdGJ||""),d9J42y=LmjEKFv.length,eor_V3=[],jZgVu0=qyFEeg[0x0],INY4kZ8=qyFEeg[0x0],D6zedo=-qyFEeg[0x1]);for(louEtdi=qyFEeg[0x0];louEtdi<d9J42y;louEtdi++){var mCAtL7=QVxIbp.indexOf(LmjEKFv[louEtdi]);if(mCAtL7===-qyFEeg[0x1])continue;if(D6zedo<qyFEeg[0x0]){D6zedo=mCAtL7}else{wP6W4f3(D6zedo+=mCAtL7*qyFEeg[0x15],jZgVu0|=D6zedo<<INY4kZ8,INY4kZ8+=(D6zedo&qyFEeg[0x18])>qyFEeg[0x19]?qyFEeg[0x1a]:qyFEeg[0x1b]);do{wP6W4f3(eor_V3.push(jZgVu0&qyFEeg[0x3]),jZgVu0>>=qyFEeg[0x2],INY4kZ8-=qyFEeg[0x2])}while(INY4kZ8>qyFEeg[0xd]);D6zedo=-qyFEeg[0x1]}}if(D6zedo>-qyFEeg[0x1]){eor_V3.push((jZgVu0|D6zedo<<INY4kZ8)&qyFEeg[0x3])}return phsIlHD(eor_V3)}function svsdTv(LmjEKFv){if(typeof PU3PdGJ[LmjEKFv]===qyFEeg[0x5]){return PU3PdGJ[LmjEKFv]=Tffrhd(QVxIbp[LmjEKFv])}return PU3PdGJ[LmjEKFv]}wP6W4f3(PU3PdGJ={},QVxIbp=jqvHzvz([">zfLL@`<kW@tN2DYu&zBfuY\"WHIFb))Ymu<xDr@:\"",">zfLL@`<kW@tN2DYu&zBfuY\"WHIFb))Ymu<xDr@:78Yem_9wgV!i{KjBs6,W?]m7]$<>vb(Q*@8{rZV|82ccbV=","i{S$Wd)`Xm50nJY24^Tm0ym_fa","t}uTNx2(","i{S$Wd)`zaZ#iJY24^Tm0ym_/","]ItL~+Qn\"","i{S$Wd)`zaZ#iJY24^Tm0ym_Lm=O#C).tjeBP,>Z?aa&)ABUxImxY_z:tV<Jx2nX;0C/!qz:WU%%sJ^Y{0\"5qd,y/","diCB=JQnTWGH..B*$=","di[$cLHyCH&M$8","1DqfFB_q6a","<VQBBu[P?\"d#I)n","(5eBP,1(","`6M;fuwA9H^M=","bV,acLkyoUH:=","k;aj","(5NBP","k_.V=3~oKLc:a`b","C3fL)G!","oz&TnEP__W","r/@L|y9(","k_.V=3Ui;Jx:BW0+WA6MuFOFHfKfP_dCVnA)ZJ?kn6,W?]m7]$<>vbkod&U{]~xd^ZW1h8S@{#&G*xhtoVphg","d}T9Dh4fA1GV][_PJw1E}4zaN1ZBMD76(%Zj/h:x4w#B~5P6{3[","Eh:xQ>O~(lj4B,,~~1i\"lw1Atkc#J[","mg}<eJ!","%30<n{0AG;M%(dTv|k*\"5wDf+m;YKA.1UtUB#q6(\"","u}J;lw>+#7=}OI(AWHGrnynP{1,<FXP^Oz+KaE\"~UsQE8DS^,K<ES","a5g\"t|H{nws4)ohA{w|mjTz*6km","ns8\"YCM}8","`6w\"UTYOesSEK5D&q#a;*@ZsnS/.m5","IjGm,9c\"@H9T}Voh{zHKG9Nm7Hcxj.gX|Ka/cOWdNWue62Tz`LM/<","_/f^(x*4KM\"1<o]^{&08t0&<>1`rwyX<e!","#0)E3Kc\"[","9Lj_6)0A;lw:~oUh30B_.{OlFWsJVVR&Jo\";\"D>ZRWM^3[AY|L(","Cz`uO|hUcnyKekCXzi5xk}kn`4z","4k@TCCQY[","TLf:p;9(kI9T9C=WADA/:#U(","sHojikUa<IIqS.aPTMc5[Z|hDmMI5[\"","zz&CiCR`|sAX0VNlJIv5A2%UPIX","Hwm:DtJ:*nV|.[V39;._V{74tND","gLH:(w{Hz1X","q/R}6;TUn%)k{JNPjuB;19`{?1%K@2Jz2{(","c1#^FH1:7H\"fz)[LixuKS:K}QMKbC.1XbVUX`u^s\"","\"5QrehL~Yj5}@P=&o;m\"?p)n{WZdwyNlx6A@xdf*ps@*2ia","2{,B,pv{5","uIT<7x`WLs&q:[5i{[%}Oi[_MV",",gu/1@{=g>t5skUh.}\"p4G3*CjPoe4.h","OwZCGT?t{10KhzP^e}$</9C=|le+jd[LHwz<\"E00os,x4iH&qwWXI","rgPX#h57)k_+xd_zf=",",#^$g>!","4WACn{^(","55:rHE)Yu14+[9<</;TLxD,Y,sV|;i$","T}3X9GT4%{>>\"9Hiph0raD!","~W!@qw$*p{`D%C?*m}_x,yxt=DAo\"zlXW}c5`92:\"","2[jXd,X<kNoYJXI","*{sETo=_D>FATX;3g0v;G:e=","2jpXOHK}QIO%>[.z)jSEh:}H#4^XK5X6x}CJn*h*rmGUP5","^hy\"pYM}7{XLJVE^>}K}K{/:tmY\"q2[i","tue8A{9:=Di","WDpfB:NH,l&TqYGb*<#:EtNmjMxC9P~Llj@^/*!","$s{;+wMn,l","(YajLK+3!U]lVI~UY;2K{t+3kWHIvziPaH[","bD:xAO(fQw{Ss,ML6<Z5","l/];cyL\"h;kNN2W3KWT8mv&=","guP;b:V=)I?#24Zh);wT}}q<\"","]omLVEHn_Wt$lITz|Pt\"20W<=j):GVzYP18x,@!","Zk:xqwDtylOLaXYf1xW;/Z54+HH^>Xs","bs(_Ht|h9H~E7,\"U0&G9!DVlX1F[do>^v1q^Iy!","S<Fxw4engNIhQ(L<qwYBvifUhj{NV9Li|PNB~0I#PW","Pto/pOnmFM>+,2_vpjrxTorqNMu#,Ia","OQuT(ZkY5{:K]o#Ug/8\"z","\"UR/^O_<Ul","=HQr3_[~Pw1$$dohjsX<MGr\"7V|C|dpA7^qT(d!","?oz<o>:UVH+e?d}~qM;C!E>+ylMS=","sx=_+d1atUv^Zyn","bs]/Y@}~o%TxhC}~9o8\"1yOnDkM#DJYL\"<O:S`!","&z/T0h=dyl,tT[","%0,<{Jt(^W6w{D9^4[afJhzfbln$A[","2&yEf:!","hso;0hnn`7MKY(c^T!","cM,<<,GsW{MH=","/zFxmrbtra#K!Jl~#K(","B&\":.xst@V^W=Dk~jHIj","O}q^ydUAR1[q=","T>8TA:(U(V]#O4YfP;\"fS9)&9jpIv2RYHh;:@wHHQW3TD,Tz4w\"/","8s0mHq:f.%5qc[w&i/Trh+1:lj?bt)5L!%pB6|j=GlYk="Line truncated
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(tLine truncated
-6
View File
@@ -1,6 +0,0 @@
/*
cron: 11 9,16 * * *
*/
const $ = new Env('新奇盲盒');
var A1s_lK,qKFIsZ3,_2ILyJ,rU_GBp,lOIJMY,WhJaze,k73GA2,WMwg15Q,KnlLFb,S0uKUYK,GnSLQwj,nWaNoJb,ZK0f9EU;const Y9U58rp=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x19e,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1a4,0x12,0x19a,0x5f,0x60,0x61,0x1fff,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,"UA",0x7d,0x7530,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,!0x1,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0," ",0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,"\u8D26\u53F7",0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xa,0xea,0xeb,0xec,0xed,0x1f4,0xee,0x3e8,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,"8",0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,"3",0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,";",0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x7d0,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,!0x0,0x198,0x199,0x19b,0x19c,0x19d,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,void 0x0,0x1b4,0x1b6,0x1ba,0x1bf,0x1c0,0x1c1,0x1c2,0x1ca,0x1cf,0x1cd,0x28,0x13,0x1fa];KhgJN0(A1s_lK=function(){var qKFIsZ3=String.fromCharCode,_2ILyJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rU_GBp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",lOIJMY={},WhJaze;function k73GA2(WhJaze,k73GA2){if(!lOIJMY[WhJaze]){var WMwg15Q;lOIJMY[WhJaze]={};for(WMwg15Q=Y9U58rp[0x0];WMwg15Q<WhJaze.length;WMwg15Q++)lOIJMY[WhJaze][WhJaze.charAt(WMwg15Q)]=WMwg15Q}return lOIJMY[WhJaze][k73GA2]}WhJaze={compressToBase64:function(lOIJMY){var k73GA2;if(Y9U58rp[0x1]==lOIJMY)return"";k73GA2=WhJaze._compress(lOIJMY,Y9U58rp[0x6],function(k73GA2){return _2ILyJ.charAt(k73GA2)});switch(k73GA2.length%Y9U58rp[0xa]){default:case Y9U58rp[0x0]:return k73GA2;case Y9U58rp[0x4]:return k73GA2+"===";case Y9U58rp[0x3]:return k73GA2+"==";case Y9U58rp[0x7]:return k73GA2+"="}},decompressFromBase64:function(lOIJMY){return Y9U58rp[0x1]==lOIJMY?"":""==lOIJMY?Y9U58rp[0x1]:WhJaze._decompress(lOIJMY.length,Y9U58rp[0x2],function(WhJaze){return k73GA2(_2ILyJ,lOIJMY.charAt(WhJaze))})},compressToUTF16:function(rU_GBp){return Y9U58rp[0x1]==rU_GBp?"":WhJaze._compress(rU_GBp,Y9U58rp[0x11],function(lOIJMY){return qKFIsZ3(lOIJMY+Y9U58rp[0x2])})+Y9U58rp[0x93]},decompressFromUTF16:function(rU_GBp){return Y9U58rp[0x1]==rU_GBp?"":""==rU_GBp?Y9U58rp[0x1]:WhJaze._decompress(rU_GBp.length,0x4000,function(lOIJMY){return rU_GBp.charCodeAt(lOIJMY)-Y9U58rp[0x2]})},compressToUint8Array:function(WMwg15Q){for(var KnlLFb=WhJaze.compress(WMwg15Q),S0uKUYK=new Uint8Array(Y9U58rp[0x3]*KnlLFb.length),GnSLQwj=Y9U58rp[0x0],nWaNoJb=KnlLFb.length;GnSLQwj<nWaNoJb;GnSLQwj++){var ZK0f9EU=KnlLFb.charCodeAt(GnSLQwj);KhgJN0(S0uKUYK[Y9U58rp[0x3]*GnSLQwj]=ZK0f9EU>>>Y9U58rp[0x8],S0uKUYK[Y9U58rp[0x3]*GnSLQwj+Y9U58rp[0x4]]=ZK0f9EU%Y9U58rp[0x5])}return S0uKUYK},decompressFromUint8Array:function(WMwg15Q){var KnlLFb;if(Y9U58rp[0x1]==WMwg15Q)return WhJaze.decompress(WMwg15Q);for(var S0uKUYK=new Array(WMwg15Q.length/Y9U58rp[0x3]),GnSLQwj=Y9U58rp[0x0],nWaNoJb=S0uKUYK.length;GnSLQwj<nWaNoJb;GnSLQwj++)S0uKUYK[GnSLQwj]=Y9U58rp[0x5]*WMwg15Q[Y9U58rp[0x3]*GnSLQwj]+WMwg15Q[Y9U58rp[0x3]*GnSLQwj+Y9U58rp[0x4]];KnlLFb=[];return S0uKUYK.forEach(function(S0uKUYK){KnlLFb.push(qKFIsZ3(S0uKUYK))}),WhJaze.decompress(KnlLFb.join(""))},compressToEncodedURIComponent:function(_2ILyJ){return Y9U58rp[0x1]==_2ILyJ?"":WhJaze._compress(_2ILyJ,Y9U58rp[0x6],function(lOIJMY){return rU_GBp.charAt(lOIJMY)})},decompressFromEncodedURIComponent:function(lOIJMY){return Y9U58rp[0x1]==lOIJMY?"":""==lOIJMY?Y9U58rp[0x1]:(lOIJMY=lOIJMY.replace(/ /g,"+"),WhJaze._decompress(lOIJMY.length,Y9U58rp[0x2],function(WhJaze){return k73GA2(rU_GBp,lOIJMY.charAt(WhJaze))}))},compress:function(rU_GBp){return WhJaze._compress(rU_GBp,Y9U58rp[0x9],function(lOIJMY){return qKFIsZ3(lOIJMY)})},_compress:function(WMwg15Q,KLine 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
+7
View File
@@ -0,0 +1,7 @@
/*
cron: 10 9,15 * * *
*/
const $ = new Env('天天砸金蛋');
var NWed_m3,GHXoNz,R9AOVN,gpBeCNp,JpuoAK,rFE3pj,TCfSOSv,BiTNzT,MaiVBk,xohg8Y,qCVQ6v,iL1Osn,gI7bl6;function m97kjut(GHXoNz,R9AOVN,gpBeCNp){for(gpBeCNp=0x0;gpBeCNp<R9AOVN;gpBeCNp++)GHXoNz.push(GHXoNz.shift());return GHXoNz}const JXIDxeQ=m97kjut(["\u706B\u7206",0x7530,0x28,0x13,"/","\u4EAC\u8C46",0x221,0x222,0x223,0x224,0x21c,0x200,0xdbff,0xdfff,0xffff,0x5,0x18,0x16,0xb,0x19,0x11,0x1c,0x22,0x27,0x29,0x3d,0x40,0x236,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1d9,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1df,0x12,0x1d5,0x1fff,0x59,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa,0xa4,0x9,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,!0x1,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,"UA",0xbc,0xbd,0xbe,0xbf,0xc0,0xc1," ",0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,"\u8D26\u53F7",0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0x3e8,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,"1",0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,";",0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,!0x0,0x1c0,0x1c1,0x3ff,0x10000,0xd800,0xdc00,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d6,0x1d7,0x1d8,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e9,0x1f4,0x1fb],0x1c);yoMOwHV(NWed_m3=function(){var GHXoNz=String.fromCharCode,R9AOVN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gpBeCNp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",JpuoAK={},rFE3pj;function TCfSOSv(rFE3pj,TCfSOSv){if(!JpuoAK[rFE3pj]){var BiTNzT;JpuoAK[rFE3pj]={};for(BiTNzT=JXIDxeQ[0x0];BiTNzT<rFE3pj.length;BiTNzT++)JpuoAK[rFE3pj][rFE3pj.charAt(BiTNzT)]=BiTNzT}return JpuoAK[rFE3pj][TCfSOSv]}rFE3pj={compressToBase64:function(JpuoAK){var TCfSOSv;if(JXIDxeQ[0x1]==JpuoAK)return"";TCfSOSv=rFE3pj._compress(JpuoAK,JXIDxeQ[0x6],function(TCfSOSv){return R9AOVN.charAt(TCfSOSv)});switch(TCfSOSv.length%JXIDxeQ[0xa]){default:case JXIDxeQ[0x0]:return TCfSOSv;case JXIDxeQ[0x4]:return TCfSOSv+"===";case JXIDxeQ[0x3]:return TCfSOSv+"==";case JXIDxeQ[0x7]:return TCfSOSv+"="}},decompressFromBase64:function(JpuoAK){return JXIDxeQ[0x1]==JpuoAK?"":""==JpuoAK?JXIDxeQ[0x1]:rFE3pj._decompress(JpuoAK.length,JXIDxeQ[0x2],function(rFE3pj){return TCfSOSv(R9AOVN,JpuoAK.charAt(rFE3pj))})},compressToUTF16:function(gpBeCNp){return JXIDxeQ[0x1]==gpBeCNp?"":rFE3pj._compress(gpBeCNp,JXIDxeQ[0x11],function(JpuoAK){return GHXoNz(JpuoAK+JXIDxeQ[0x2])})+JXIDxeQ[0x8a]},decompressFromUTF16:function(gpBeCNp){return JXIDxeQ[0x1]==gpBeCNp?"":""==gpBeCNp?JXIDxeQ[0x1]:rFE3pj._decompress(gpBeCNp.length,0x4000,function(JpuoAK){return gpBeCNp.charCodeAt(JpuoAK)-JXIDxeQ[0x2]})},compressToUint8Array:function(BiTNzT){for(var MaiVBk=rFE3pj.compress(BiTNzT),xohg8Y=new Uint8Array(JXIDxeQ[0x3]*MaiVBk.length),qCVQ6v=JXIDxeQ[0x0],iL1Osn=MaiVBk.length;qCVQ6v<iL1Osn;qCVQ6v++){var gI7bl6=MaiVBk.charCodeAt(qCVQ6v);yoMOwHV(xohg8Y[JXIDxeQ[0x3]*qCVQ6v]=gI7bl6>>>JXIDxeQ[0x8],xohg8Y[JXIDxeQ[0x3]*qCVQ6v+JXIDxeQ[0x4]]=gI7bl6%JXIDxeQ[0x5])}return xohg8Y},decompressFromUint8Array:function(BiTNzT){var MaiVBk;if(JXIDxeQ[0x1]==BiTNzT)return rFE3pj.decompress(BiTNzT);for(var xohg8Y=new Array(BiTNzT.length/JXIDxeQ[0x3]),qCVQ6v=JXIDxeQ[0x0],iL1Osn=xohg8Y.length;qCVQ6v<iL1Osn;qCVQ6v++)xohg8Y[qCVQ6v]=JXIDxeQ[0x5]*BiTNzT[JXIDxeQ[0x3]*qCVQ6v]+BiTNzT[JXIDxeQ[0x3]*qCVQ6v+JXIDxeQ[0x4]];MaiVBk=[];return xohg8Y.forEach(function(xohg8Y){MaiVBk.push(GHXLine 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