forked from yks2021/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdyjsb.js
2 lines (2 loc) · 29.8 KB
/
dyjsb.js
1
2
const _0x6f16=['V28PVh7CpHQy','w6ZMw40sYMOL','w5DDhUbDsMO/GVRm','EcOVCg==','8YCRneefmuiko+mguumjmumeoOetslw=','HcK7wqNJD8KFw5bDjw==','w4DClsKqw5zCsmPCilo=','P8OFasO8H8OIw5tV','wo7CvcOrVMOWw5s=','FMKmwrY=','w4HCncKyw7DCpFXCiExRwrHDhcK6TiA=','5omt5Yil6I+a5Y285Yu66Ziv5pS65bmr5ZKz5Lmy5Yu05paN5o++8YauuQ==','w7EONgrDvcOPXA==','4piU77ml5b++5busLg==','6I6m5b+Fw6A=','w7XCkwQ=','w5jDhFM=','w5pPVQ==','CMKmwqJi','w7ZHdQnCscOSwpwe','6Zu15peV556p5bi45ZGD6Le06Z+/56y06L6O5Zm977yX','fT3CvQ==','csO8fAjDk8KP','wpwgd8OK','KcOSbMOHCsOVw4o=','HMKIwrc=','5oiQ6Z+a5p2Q6YCQ54u/6KeH6aGMFhvDn8Kpw7c=','w5HDjl7DnMOpL0Z6EcKCwqxFVMO7w4jDjA==','w69NTsKkRQ==','w5LDpsOc','wrMQF8K1','w5PCosKF','5oql6Z+l5p+k6YC654i056675Yi0AcOnUT7Cm8KDw4hH','w5vCs8OLwojCrsOGw6R0woNvwrDDpkUxwpkTbcKFIcOTDsOPwoIVV3VywqTCrx7CsMOtw4g9LcOTFcOhFQPDi8OqwpJ4wotnwopdw4hDPcOhw5h8eUc=','w6nDjnM=','wpUjwqfDo8OMw5bCnA==','GcKJwrRiwp/CisOI','wpY4cMOcPUTCk3jCu8KHw4LDpsO9w71kYzc=','6Kyj6Yau5pSC5oqP5byd5ayc562g55+d5bm+5ZCp6I2k5Y2/5paO5o2zIw==','ZXrCuDA=','PsOOcsOQCcO+w4NJw5PCgg==','U8KCEEfCnw==','w4XCgAbDnsK8SQ==','w67Dh8Or','5oqb6Z+v5p+46YCJ54q36ZuA5pSX5bug5ZKv5Luc5Ymkwql6wrnDkUvDhcKRAcOl','YXMe','wozDn8KjwpbDjg==','w6cZMDHDqMOSTVc=','EMOJCg==','QcOxMQ==','wpNHaQ==','w5nDmFM=','8LKBlOW8tOWssuesuuedu+W5m+WRn+mjr+mcruevqys=','eCHClMKPw61i','w4PDrcOaw67DmcK/w4HDtxzDg8KjwrrDncOwG2DCvQ==','w6ofNh7Dr8KBEgs=','w4BLZm4=','w6JQwrt8w5Vewr8MEcOsw7LCswbDnmvDhMOcw7JC','wqvDssOQLcOGw55zOzYhegrCv8O2','5Yy/5oCa5o2u56eRw7/Cnw==','wohSw5UIwrIMXSFdUQ==','ecKcdmXDtHnDqg==','e3rCpyZ4','w6NbwqNQw4Nowq0Q','w5FFRhnCpsKw','w6YSKB3DvsOkT0HDgx/CmMOzb1pMwpzDkg==','L8OFdA==','UMO6Nx4+w7HCoQvDqkozw5fCqQ==','w6/Dm8Or','w6tJTsKTRMK2EQ==','wrMeDcKx','w6HDmH5mWzEKwpI=','w7bDgntnXA8bwo/DlF1uw4A=','wpzCq8OKwpvCtsKFwqg6','FMKewrp0woXCmsOMwpsPwphgwpUr','bmnCpwppw6N+eA==','AMKIwqNz','5Y2J5oKu5o6S56WUwqbCmw==','w7ZPVcOYSQ==','F8KCwqRKwo7Cq8ObwoASwrQ=','w5zDvsOWwoYhaA==','4pu677q45bya5bqbUQ==','wpsGwonCt3/Di8ORS8OnHcKHJXVZPzjCvcOcB0PCuFFNDsOsUsO4w7xBwptOdsOQF8KuwrXDrA==','w41Gw4MjbMOcfw==','w5HDmFrDisKkFVx2AMKpwqxVYsOhw5TDvwxC','WsKBAVrCiUvDpHk=','MDsAw4k=','w71vAcOgEw==','wrseBA==','w4/DoMOEw63DiMOawp3CsQ==','DMK7wrR3CMKZw5TDmVxywpph','w6bDkcOmw6fCusKXwonDmQ==','wqjDvcKIw5gzwrdZwq0twr8GfsONQgXCiTtuwpAL','ankNYMKew7w=','NSRJJMOMwqfDmcKmw5YW','XmUC','fnXCsTB7w6NgbsO4','fXMKYg==','w5LCvsKF','w4fCjgzDvg==','6K+c6YWa5pWg5oq95b6t5a2O56+06I+q5Y6f5paI5o+ow5k=','wrMICcKnJVzDsEZEwos=','w79cVsKuWQ==','wo5VfMKsDg==','PcOSbMO3AsOMw44=','wo/DisKjwozDhTs6Mi8=','w7dMbSXCp8OkwoQCBMKb','8LyDreesjeWKo3w=','6Ky46YWG5pSK6aOY5Y2y6ZuR5pe25Lqp5Yuw6I+45Y+z5pSP5o6jwpA=','w5dBYVLDtlJIAQ==','w5Rdf2nDu0ZKAg==','wrvCssKbw5zCqXNXaWs=','8YqikumYs+aUouedjOW5vOWTkui1s+mfhOevmcKk','CDUBw44a','5LuI6Le+5Y2yHsKPwp7CkFnCisOqXcK7wo07wpcrRsOow4bCig==','W3MEQRnCt3c=','5ouM6Z2E5p6Z6YK854ij5b6h5ay2566X5Lmb5YmXMn8ya0duRcKPw7s=','w7IKMB3DuQ==','w7bDlWZ8VzcTwoTDgg==','w6FfXQ==','w7Nbwr0=','w6pMwr9ow4Np','TwbCuMK+wro=','5YyD5oCD5oy556aPw700','8LKSieW/vOWtieeupcK4','5o2S54+bckDCr+WHuDc=','w5EYwo7Ci2DDm8OCWQ==','w4zCnRPDhMKgVA==','wpLCucO3QMOH','w4cawpDCvWA=','5Y6z5oCM5oyB56SsQcOM','6K+n6YS/5pai5omT5b6M5a6r56y96I6X5Y6r5pWe5oyIwro=','5Y2u5oOm5o2y56W9M8KO','w6XCnsKocQDCj8KgJ8Oq','w6YKNg8=','6K2D6Yan5pWM55+f6KeS6aCj6IyF5Y+85pej5o2cw6w=','5oij6Z2E5p616YKw54uD6Zig5peS5bmq5ZCj5Lim5YmsVHnDosKAwoA=','wqnDtsKQw7QlwoFFwrc=','6K+66YeR5peJ6aKQ5Yyp6ZuA5pSX5Lmk5YmE6I6Q5YyT5pax5o2x','w7dMbSXCp8Okwp8EEMKBesO+fBQ=','wpZRb8K7DsO1woY=','w6l3GcOgFMK3wrTCo13DomtFwqXDjFooeg==','GgcDKMOJw53Do0w=','b3TCuzAyw7hrasO4','w5xLcg==','wppNZMKsCcOYwod8wpMXwp/DncKnwoIAXhc=','w7gdFsK3LHrDu0hDw5DDj0g8R2sjwpw8dW8HfyrDvwRMw6VFwqDCgcOTXGXDlsKzw4ViwqdtLR1bwpo9w5vCsw==','w6YSKB3DvsOkTk3DhRXCmMO4ZVRDwpDDhQ==','w7HCoMK2wpMbXg==','6IyJ5b2Gw5g=','5ouu6Z6n5p+y6YKi54i35b225a6l56615Li15YqLwpw9bsOtw5c=','wo1AfMK2BcOgwpx/wos=','a8OQe27Dk0XDvH8JRwvDlVALw7AawpPDow==','W1TChgE=','GxofEsKSw5HDq1zDp8OmLsK0amoOZyhuUMOwwptmw5snQH1nwrhXO8OJ','wqvDocKWw6Y4woZAwrAlwqU=','w7VeS8OCWA==','w43CtMKWwpACwrB8','w6hVUMK0T8KEFsO2wpvChHfCq8OAwoTDn18=','5Y+l5oK05oyN56epw6XCqeW7gOWRmuinp+minOWFhuWlieS5qO+9r+ivluepjuWTkOWFouiuve+9rsO8','e3TCpiE=','6Iyu5b2rWQ==','RMOiLx45','w7nCocKj','w5gFwps=','wqgSFMKcEGVvOMKYw4nClSIUUOW+pOWmi+aIvOihgeeuvg==','UBkEFMOWw43DsF7DusK9LsK3ZmgFFz87IMOzwohvw5YxQSB2woZeMcOuwrZ9w6jDgMK6YsOuwpfDncKUMGLDjsK2SCsKw6XCskgBZgNawozCqU83Ag==','w6XCj8K0fCDCh8K9KMO1wqk=','HC0Zw44dKVRtwqNDwp0QdsK2woRffsOww7rDrg==','w6l3GcOgFMK3wrTCo13DomtYwrLDgQ==','5Y2u5oOm5o2y56W9M8KO5be+5omB5b2a6L2k5LqL776K56my5ZGt5YSD6K+Vdg==','w7rCiMKowqchwoVNMg==','w5rCmxPDssKgXMOmVsOh','T8OuwrrCncOPwow2NC7ClsOZwqZTYA==','A8KTwqJuwonCosOHwpIO','wr/DsMKQw4I/wo9cwqI5','w4ZBQBzCog==','5oio6Zyi5p2j6YOr54ir5b+E5a6A56+T556r5bqc5ZCY5LqJ5YqRcAnCoVHCqsOhwpLDlTo=','wrMICcKnJVzDqkxWwpvDsVc8S2ppwpg=','wrnCsMOEwoLCqcOTw6Y6w4Juw6HCsQg1wqxUdMOaa8KcT8O/wrlvE3NMwqnDrxXCrcKuw64abMKWTsORTwPCm8KuwqFlwpJnw4tjw5xSeMOxw6kzWVF9IhrDjsO5a0PDtMKWwo5tcMK+w6gUw4fDpMKPwrljLsKEJW9wdiBLw4fDqsKJSHFlVMK/wqnDtToTw7kNNsKswqZgwo/Cmm3DlUokDyXCgg==','5oml6Z655p2I6YKd54uo56+E5YuVw7Rww7rCvFU=','w6h8AcOMAsKBwrbCtQ==','w6vDhsOow7HCoMKzwoo=','wptGfMKABcOo','w50EwpjCsWzDvcOU','wppbYMK6','w7JYaCPCq8OP','X3kC','w7ZIwqN8w5I=','ZCDCtg==','CMOIAQ==','5omt5Yil6I+a5Y285Yu66Ka56aGd5pWk5o6X8L2fnA==','wo1EYsK2Hw==','w7rChcK9','wofCqsO3bMOWw5rDjQc=','5Y2O5oGk5o+E56SvA3DkurDmlIflvrvlrrXnrrHnnr/luKXlk47po5HpnJDnrK7lt53ovbTli67kurjpmbTvvY3kvJbmgbXkubPkuJLCleaak+WnueWHueaeleeftuWSmyQ=','w4PDrcOaw67DmcKBw4LDrg==','HcK7wqNJFcKD','w5HDjl7DnMOpL0Z6EcKCwqVEasOqw5/Dkg==','PcOfPy3CoRvCoQ1QA0vCnV8L5Ya7','wqXDt8Ksw4Q1wo0=','w6HDmH5mWw8JwovDnEZfw4Eow6g=','FhsVEsOFw7vDtQ==','UmEASBk=','5b6l5a25562p556I5bq55ZGA6Lyu5Zu377yq','w5HDjl7DnMOpL0Z6EcKCwqxFVMOmw5/DgQlDYw==','wqrDjWF2UikZwoPDjwdhw4M/w6kyw4x+HsOlwqrDk1cqKH4cd8KOwrLCohHCkcKZwoM=','w4N6VAI=','5Lqv6LSZ5Y+OwpwQZW84wpjDicKVIhRdwoltdiDCv8O5','w73CvMKgwqkNfsKr','w6NadCI=','wpYzw7k9Z8KbZkU=','wpnDjMKjwrrDhTM=','UMKdw7DDjsKPwro2AijCjcOywrwDLETDtcK/wrDDsDlPwrFxWCd6BRpvw7rDucKJw6HDo8OCDcKYwpbCk1fDtsO/NcKxUj3DiMK0fAJbH0bCnMKmw7MsLRDDuMOPwo9nw4XDkmDCkcOILsOME8O2EHbCr3rCosORw51+FsOuPMOSXjvDk8KFw47ClMOCEkLChUtpJcOUwoXDvyTCn8KHwq/Dv8KLVhbDv8KrLMOXCToZaic1w5/ChRoGw4jDmV4JwrzCuHEP','wqTCqcKO','w50tb8OMNGLCgnzCrsOMw7zDucO9w7FlKTPDocK8TWo7w40ew7d1D0rDq8OAB8Kqw6vCtH/DpyfCrsOQUsKJwqXCnQ==','5oqG5Ym16I2t5Y+O5Yme5b+o5a2U56+w5Lmo5Ymx5pSb5oyD8Kqsgg==','5Y2f5oCX5oyU56e2TxE=','4pqL77qY5b+S5buW','w4HCncKyw7DCpFXCmEZIworDr8K9UA==','w5NSQDDCs8K1wrDDng==','5oyh54+mwr1bO+WGrR4=','XQHCscK6wqs=','w73ChQlHw7fDjWkRYsKsesKCKcKxw4g4Dg58PQ==','woMrwrvDscOF'];(function(_0x369e5a,_0x6f164d){const _0x520e4a=function(_0x518f13){while(--_0x518f13){_0x369e5a['push'](_0x369e5a['shift']());}};_0x520e4a(++_0x6f164d);}(_0x6f16,0x149));const _0x520e=function(_0x369e5a,_0x6f164d){_0x369e5a=_0x369e5a-0x0;let _0x520e4a=_0x6f16[_0x369e5a];if(_0x520e['wAkWLU']===undefined){(function(){let _0x263e2;try{const _0x1b8894=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x263e2=_0x1b8894();}catch(_0x50348d){_0x263e2=window;}const _0x1ca1e0='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x263e2['atob']||(_0x263e2['atob']=function(_0x3c993d){const _0x3a3ca6=String(_0x3c993d)['replace'](/=+$/,'');let _0x1a5267='';for(let _0x29ec19=0x0,_0xf5205,_0xb59a5a,_0x23c1d1=0x0;_0xb59a5a=_0x3a3ca6['charAt'](_0x23c1d1++);~_0xb59a5a&&(_0xf5205=_0x29ec19%0x4?_0xf5205*0x40+_0xb59a5a:_0xb59a5a,_0x29ec19++%0x4)?_0x1a5267+=String['fromCharCode'](0xff&_0xf5205>>(-0x2*_0x29ec19&0x6)):0x0){_0xb59a5a=_0x1ca1e0['indexOf'](_0xb59a5a);}return _0x1a5267;});}());const _0x5b9935=function(_0x3da78f,_0x571b35){let _0x1af265=[],_0x248f00=0x0,_0x37d6cd,_0xe30854='',_0x119e84='';_0x3da78f=atob(_0x3da78f);for(let _0x41e7b7=0x0,_0x4c07c7=_0x3da78f['length'];_0x41e7b7<_0x4c07c7;_0x41e7b7++){_0x119e84+='%'+('00'+_0x3da78f['charCodeAt'](_0x41e7b7)['toString'](0x10))['slice'](-0x2);}_0x3da78f=decodeURIComponent(_0x119e84);let _0x48e2aa;for(_0x48e2aa=0x0;_0x48e2aa<0x100;_0x48e2aa++){_0x1af265[_0x48e2aa]=_0x48e2aa;}for(_0x48e2aa=0x0;_0x48e2aa<0x100;_0x48e2aa++){_0x248f00=(_0x248f00+_0x1af265[_0x48e2aa]+_0x571b35['charCodeAt'](_0x48e2aa%_0x571b35['length']))%0x100;_0x37d6cd=_0x1af265[_0x48e2aa];_0x1af265[_0x48e2aa]=_0x1af265[_0x248f00];_0x1af265[_0x248f00]=_0x37d6cd;}_0x48e2aa=0x0;_0x248f00=0x0;for(let _0x21b572=0x0;_0x21b572<_0x3da78f['length'];_0x21b572++){_0x48e2aa=(_0x48e2aa+0x1)%0x100;_0x248f00=(_0x248f00+_0x1af265[_0x48e2aa])%0x100;_0x37d6cd=_0x1af265[_0x48e2aa];_0x1af265[_0x48e2aa]=_0x1af265[_0x248f00];_0x1af265[_0x248f00]=_0x37d6cd;_0xe30854+=String['fromCharCode'](_0x3da78f['charCodeAt'](_0x21b572)^_0x1af265[(_0x1af265[_0x48e2aa]+_0x1af265[_0x248f00])%0x100]);}return _0xe30854;};_0x520e['kXCaJZ']=_0x5b9935;_0x520e['tdEran']={};_0x520e['wAkWLU']=!![];}const _0x518f13=_0x520e['tdEran'][_0x369e5a];if(_0x518f13===undefined){if(_0x520e['WHjKNU']===undefined){_0x520e['WHjKNU']=!![];}_0x520e4a=_0x520e['kXCaJZ'](_0x520e4a,_0x6f164d);_0x520e['tdEran'][_0x369e5a]=_0x520e4a;}else{_0x520e4a=_0x518f13;}return _0x520e4a;};const jsname='DYJSBAPP';const $=Env(jsname);let dyjsbapp=$['getjson'](_0x520e('0x5c','b1AT'),[]);let dyjsbkey=$[_0x520e('0xd6','(2oP')](_0x520e('0xd4','x5d3'))||0x1;const invite=0x1;const logs=0x0;let tz=$[_0x520e('0xb9','ooKa')]('tz')||'1';var hour='';var minute='';if($[_0x520e('0xae','D!A1')]()){dyjsbapp=JSON[_0x520e('0xe0','TryU')](process['env'][_0x520e('0x43','R#O[')]);hour=new Date(new Date()[_0x520e('0xbe','kl^m')]()+0x8*0x3c*0x3c*0x3e8)[_0x520e('0x6b','G68C')]();minute=new Date(new Date()[_0x520e('0x0','vTlO')]()+0x8*0x3c*0x3c*0x3e8)[_0x520e('0x33','n5FL')]();}else{hour=new Date()[_0x520e('0x5','dU1R')]();minute=new Date()[_0x520e('0xc8','6uF[')]();}!(async()=>{if(typeof $request!==_0x520e('0xd9','mJWi')){GetCookie();$[_0x520e('0x51','TryU')]();}$[_0x520e('0x92','6uF[')](_0x520e('0x5f','jxvF')+dyjsbapp[_0x520e('0x11','M^dE')]+_0x520e('0xa','ApC#'));message='';for(let _0x35a0db=0x0;_0x35a0db<dyjsbapp[_0x520e('0x81','ApC#')];_0x35a0db++){$[_0x520e('0xdb','R#O[')](_0x520e('0x3d','zsfX')+(_0x35a0db+0x1)+_0x520e('0x68','zsfX'));if(dyjsbapp[_0x35a0db][_0x520e('0xba','IC!O')])await invitation(dyjsbapp[_0x35a0db]['dyjsb_host'],dyjsbapp[_0x35a0db]['dyjsb_sign_url'],dyjsbapp[_0x35a0db][_0x520e('0x25','7Qpi')]);if(dyjsbapp[_0x35a0db][_0x520e('0x61','pbN#')])await sign_in(dyjsbapp[_0x35a0db][_0x520e('0xde','tK7p')],dyjsbapp[_0x35a0db][_0x520e('0x23','GeK[')],dyjsbapp[_0x35a0db][_0x520e('0xaf','b1AT')]);if(dyjsbapp[_0x35a0db]['dyjsb_read_header'])await withdraw(dyjsbapp[_0x35a0db]['dyjsb_host'],dyjsbapp[_0x35a0db]['dyjsb_sign_url'],dyjsbapp[_0x35a0db][_0x520e('0x9e','U7bK')]);if(dyjsbapp[_0x35a0db][_0x520e('0x83','dgpZ')])await watch_video(dyjsbapp[_0x35a0db]['dyjsb_host'],dyjsbapp[_0x35a0db]['dyjsb_read_url'],dyjsbapp[_0x35a0db][_0x520e('0x4a','tK7p')]);if(dyjsbapp[_0x35a0db][_0x520e('0x77','2VU*')])await limitTask(dyjsbapp[_0x35a0db]['dyjsb_host'],dyjsbapp[_0x35a0db][_0x520e('0x40','oKm[')],dyjsbapp[_0x35a0db]['dyjsb_limit_task_header']);if(dyjsbapp[_0x35a0db][_0x520e('0xbc','V3RC')])await openBox(dyjsbapp[_0x35a0db][_0x520e('0xb5','[bma')],dyjsbapp[_0x35a0db][_0x520e('0x73','dgpZ')],dyjsbapp[_0x35a0db][_0x520e('0x5e','xpP#')]);if(dyjsbapp[_0x35a0db]['dyjsb_box_ad_url'])await openBoxAd(dyjsbapp[_0x35a0db][_0x520e('0xa1','vTlO')],dyjsbapp[_0x35a0db]['dyjsb_box_ad_url'],dyjsbapp[_0x35a0db][_0x520e('0xb2','M^dE')]);await showmsg();}})()[_0x520e('0x95','kl^m')](_0xbda4b8=>$[_0x520e('0xa3','H!Y)')](_0xbda4b8))[_0x520e('0x9c','fua0')](()=>$[_0x520e('0xbf','tK7p')]());function GetCookie(){if($request&&$request['url'][_0x520e('0x50','UrA8')](_0x520e('0x12','3RUx')&&'sign_in')>=0x0){const _0x3ea8c5=$request[_0x520e('0xb','l%Ap')][_0x520e('0x7a','a0*S')];const _0xbb20ea=$request['url'][_0x520e('0x76','3RUx')]('?')[0x1];let _0x4ed5c5=dyjsbkey-0x1;if(dyjsbapp[_0x4ed5c5]){dyjsbapp[_0x4ed5c5][_0x520e('0x45','1&w6')]=_0xbb20ea;dyjsbapp[_0x4ed5c5]['dyjsb_sign_cookie']=_0x3ea8c5;}else{dyjsbapp[_0x4ed5c5]={'dyjsb_sign_url':_0xbb20ea,'dyjsb_sign_cookie':_0x3ea8c5};}dyjsbapp[_0x4ed5c5][_0x520e('0xb3','rT0n')]=_0xbb20ea;dyjsbapp[_0x4ed5c5][_0x520e('0x2b','IC!O')]=_0x3ea8c5;$[_0x520e('0x91','vTlO')](JSON[_0x520e('0xe','pbN#')](dyjsbapp,null,0x2),_0x520e('0x79','l%Ap'));$['log'](_0x520e('0x4c','fua0')+_0xbb20ea);$[_0x520e('0x8a','ooKa')](_0x520e('0x99','l%Ap')+_0x3ea8c5);$[_0x520e('0x3b','SOmn')]($[_0x520e('0x90','U7bK')],'成功获取到签到数据🎉');}if($request&&$request[_0x520e('0x96','b1AT')][_0x520e('0xb6','jxvF')](_0x520e('0x63','l%Ap')&&_0x520e('0x27','mJWi'))>=0x0){const _0xefda8a=JSON[_0x520e('0x44','H!Y)')]($request['headers']);const _0x4d44bd=$request['url'][_0x520e('0x19','UrA8')]('?')[0x1];let _0x15f873=dyjsbkey-0x1;dyjsbapp[_0x15f873][_0x520e('0x2','GeK[')]=$request['headers'][_0x520e('0xcf','oKm[')];dyjsbapp[_0x15f873][_0x520e('0x41','7Qpi')]=_0x4d44bd;dyjsbapp[_0x15f873][_0x520e('0x29','TryU')]=_0xefda8a;$['setdata'](JSON[_0x520e('0x1d','M#vP')](dyjsbapp,null,0x2),'dyjsbapp');$[_0x520e('0x9b','pbN#')](_0x520e('0x93','M^dE')+_0x4d44bd);$[_0x520e('0x3c','UrA8')]('抖音极速版视频headers:\x20'+_0xefda8a);$[_0x520e('0xf','kl^m')]($[_0x520e('0xdc','H!Y)')],_0x520e('0x57',')A@l'));}if($request&&$request[_0x520e('0xaa','V3RC')][_0x520e('0x62','[B*2')]('aweme'&&'done/treasure_task')>=0x0){const _0x2737cc=JSON['stringify']($request['headers']);const _0x2a0f1c=$request['url'][_0x520e('0xdf','kl^m')]('?')[0x1];let _0x585558=dyjsbkey-0x1;dyjsbapp[_0x585558][_0x520e('0xc3','6uF[')]=_0x2a0f1c;dyjsbapp[_0x585558][_0x520e('0x36','kl^m')]=_0x2737cc;$[_0x520e('0x35','R#O[')](JSON[_0x520e('0x46','6uF[')](dyjsbapp,null,0x2),_0x520e('0xc0','pbN#'));$[_0x520e('0x59','M#vP')](_0x520e('0x2e','oKm[')+_0x2a0f1c);$[_0x520e('0x28','dU1R')](_0x520e('0xc','vTlO')+_0x2737cc);$[_0x520e('0x98','R#O[')]($[_0x520e('0x90','U7bK')],_0x520e('0x70','M#vP'));}if($request&&$request[_0x520e('0x55','D!A1')][_0x520e('0x4e','x5d3')](_0x520e('0xa2','br#d')&&_0x520e('0x32','[B*2'))>=0x0){const _0x1f4914=JSON['stringify']($request[_0x520e('0xcc','a0*S')]);const _0x525150=$request[_0x520e('0x56',')A@l')][_0x520e('0x58','TryU')]('?')[0x1];let _0x387f73=dyjsbkey-0x1;dyjsbapp[_0x387f73][_0x520e('0x94','xpP#')]=_0x525150;dyjsbapp[_0x387f73][_0x520e('0x65','xpP#')]=_0x1f4914;$['setdata'](JSON[_0x520e('0x1','o7oV')](dyjsbapp,null,0x2),'dyjsbapp');$[_0x520e('0xa6','(2oP')]('抖音极速版开宝箱看广告任务url:\x20'+_0x525150);$['log'](_0x520e('0x49','R#O[')+_0x1f4914);$[_0x520e('0x89','xpP#')]($['name'],'成功获取到开宝箱看广告任务数据🎉');}if($request&&$request[_0x520e('0x10','M^dE')][_0x520e('0x9d','6uF[')](_0x520e('0x12','3RUx')&&_0x520e('0xcd','xpP#'))>=0x0&&$request[_0x520e('0xbb','vTlO')][_0x520e('0x69','SOmn')](_0x520e('0xd3','Z]ZW'))<0x0){const _0x500989=JSON[_0x520e('0x47','n5FL')]($request[_0x520e('0x24','TryU')]);const _0x56903d=$request[_0x520e('0xaa','V3RC')][_0x520e('0xc7','zsfX')]('?')[0x1];let _0x3b125b=dyjsbkey-0x1;dyjsbapp[_0x3b125b][_0x520e('0xd5','n5FL')]=_0x56903d;dyjsbapp[_0x3b125b]['dyjsb_limit_task_header']=_0x500989;$[_0x520e('0x85','IC!O')](JSON[_0x520e('0x2f','TryU')](dyjsbapp,null,0x2),_0x520e('0x6','dU1R'));$[_0x520e('0xa4','x5d3')](_0x520e('0x20','xpP#')+_0x56903d);$[_0x520e('0x88','2VU*')](_0x520e('0xa5','(2oP')+_0x500989);$['msg']($[_0x520e('0xa0','mJWi')],_0x520e('0x84',')A@l'));}}function sign_in(_0x3bd64b,_0x498cff,_0x4bc553){return new Promise((_0x306136,_0x334e16)=>{let _0x5599a6={'url':_0x520e('0xc2','l&1g')+_0x3bd64b+_0x520e('0xcb','UrA8')+_0x498cff,'headers':{'Cookie':_0x4bc553,'User-Agent':_0x520e('0x4b','l&1g')}};$['post'](_0x5599a6,(_0x265e58,_0x33474a,_0x54ca7e)=>{const _0x3359e3=JSON[_0x520e('0x34','zsfX')](_0x54ca7e);if(logs)$['log'](_0x54ca7e);message+=_0x520e('0x3','7Qpi');if(_0x3359e3[_0x520e('0x4f','TryU')]==0x2716){message+=_0x3359e3[_0x520e('0x80','vTlO')]+'\x0a';}else{message+=_0x520e('0x72','1&w6')+_0x3359e3[_0x520e('0x16','UrA8')]+'\x0a';}_0x306136();});});}function watch_video(_0x4d2a0d,_0x198db8,_0x3f930d){return new Promise((_0x16489d,_0x4ca2c0)=>{let _0x549904={'url':_0x520e('0xb0','IC!O')+_0x4d2a0d+_0x520e('0x66','pbN#')+_0x198db8,'headers':JSON['parse'](_0x3f930d),'body':'{\x0a\x20\x20\x22in_sp_time\x22\x20:\x200,\x0a\x20\x20\x22task_key\x22\x20:\x20\x22read\x22\x0a}'};$[_0x520e('0xc5','6uF[')](_0x549904,(_0x26a819,_0x3ebea7,_0x33caeb)=>{const _0x4092be=JSON[_0x520e('0x9','oKm[')](_0x33caeb);if(logs)$[_0x520e('0x6e','@58s')](_0x33caeb);message+=_0x520e('0x7d','o7oV');if(_0x4092be[_0x520e('0x2c','SOmn')]==0x0){message+='🎉'+_0x4092be[_0x520e('0x26','[B*2')]+_0x520e('0x2d','R#O[')+_0x4092be['data'][_0x520e('0xc1','pbN#')]+'\x0a';}else if(_0x4092be[_0x520e('0xc9','cU2A')]==0x2716){message+='⚠️异常:已经读过了\x0a';}else{message+=_0x520e('0xca','vTlO')+_0x4092be[_0x520e('0x8c','GeK[')]+'\x0a'+_0x520e('0x1f','UrA8');let _0x1cf061=_0x520e('0x86','UrA8')+_0x4092be['err_tips']+'请重新看视频获取数据\x0a';$['msg'](jsname,'',_0x1cf061);}_0x16489d();});});}function openBox(_0x3a61fe,_0x47c37c,_0x20a660){return new Promise((_0x5faa36,_0x56a155)=>{let _0x49249e={'url':'https://'+_0x3a61fe+_0x520e('0x6f','U7bK')+_0x47c37c,'headers':JSON[_0x520e('0xa7','o7oV')](_0x20a660),'body':_0x520e('0x30','jxvF')};$[_0x520e('0x38','mJWi')](_0x49249e,(_0x27f7d6,_0x12ce43,_0x2533d9)=>{const _0x56045c=JSON[_0x520e('0xb7','mJWi')](_0x2533d9);if(logs)$[_0x520e('0x82','Z]ZW')](_0x2533d9);message+=_0x520e('0x14','UrA8');if(_0x56045c[_0x520e('0x6c','o7oV')]==0x0){message+='🎉'+_0x56045c[_0x520e('0x21','n5FL')]+_0x520e('0x39','2VU*')+_0x56045c['data']['amount']+'\x0a';}else if(_0x56045c[_0x520e('0x17','H!Y)')]==0x2716){message+=_0x520e('0x42','a0*S');}else{message+=_0x520e('0xb4','l&1g')+_0x56045c[_0x520e('0x5a','ApC#')]+'\x0a'+_0x520e('0x1b','jxvF');let _0x33e5ae=_0x520e('0x13','@58s')+_0x56045c[_0x520e('0x7e','Z]ZW')]+_0x520e('0xdd','1&w6');$[_0x520e('0xa9',')A@l')](jsname,'',_0x33e5ae);}_0x5faa36();});});}function openBoxAd(_0x4ea4d6,_0x593e99,_0x2e2a9d){const _0x7d8881=_0x520e('0x67','GeK[');const _0x39ac4b='';return new Promise((_0x5dc710,_0x4f86a7)=>{const _0x93b46={'url':_0x520e('0xce','br#d')+_0x4ea4d6+_0x520e('0x9a','l&1g')+_0x593e99,'method':_0x7d8881,'headers':JSON[_0x520e('0x3a','V3RC')](_0x2e2a9d),'body':_0x39ac4b};$[_0x520e('0xda','(2oP')](_0x93b46,(_0x1b49fd,_0x51c434,_0x23f7c9)=>{const _0x42b928=JSON[_0x520e('0x48','ooKa')](_0x23f7c9);if(logs)$[_0x520e('0xac','xpP#')](_0x520e('0x64','dgpZ')+_0x23f7c9);message+=_0x520e('0xad','xpP#');if(_0x42b928[_0x520e('0x5d','Z]ZW')]==0x0){message+='🎉'+_0x42b928[_0x520e('0x7b','xpP#')]+_0x520e('0x87','D!A1')+_0x42b928[_0x520e('0x97','tK7p')][_0x520e('0x52','GeK[')]+'\x0a';}else if(_0x42b928[_0x520e('0x8f','0A0v')]==0x2716){message+=_0x520e('0x5b','pbN#');}else{message+=_0x520e('0x71','SOmn')+_0x42b928[_0x520e('0xc4','mJWi')]+'\x0a'+'请重新打开宝箱看广告获取数据\x0a';let _0x491670=_0x520e('0x1c','a0*S')+_0x42b928[_0x520e('0x74','ooKa')]+_0x520e('0x9f','1&p2');$[_0x520e('0xab','TryU')](jsname,'',_0x491670);}_0x5dc710();});});}function limitTask(_0x470bd1,_0x22ec8e,_0x78fc91){const _0x43d91e=_0x520e('0x31','mJWi');const _0x54eae='';return new Promise((_0x45d683,_0x572cb1)=>{const _0xd01c00={'url':'https://'+_0x470bd1+'/luckycat/aweme/v1/task/done/excitation_ad?'+_0x22ec8e,'method':_0x43d91e,'headers':JSON[_0x520e('0x54','M^dE')](_0x78fc91),'body':_0x54eae};$[_0x520e('0x6a','GeK[')](_0xd01c00,(_0x4f27de,_0x13f2f1,_0x4f335)=>{const _0x21653a=JSON[_0x520e('0x18','ApC#')](_0x4f335);if(logs)$[_0x520e('0xac','xpP#')](_0x520e('0x8d','a0*S')+_0x4f335);message+=_0x520e('0x8','tK7p');if(_0x21653a['err_no']==0x0){message+='🎉'+_0x21653a[_0x520e('0x7f','dgpZ')]+'获得:'+_0x21653a[_0x520e('0x1e','IC!O')]['amount']+'\x0a';}else if(_0x21653a[_0x520e('0x8f','0A0v')]==0x2716){message+=_0x520e('0x37','3RUx');}else{message+=_0x520e('0xc6','IC!O')+_0x21653a[_0x520e('0xc4','mJWi')]+'\x0a'+_0x520e('0x22','(2oP');let _0x30956e=_0x520e('0x1a','Z]ZW')+_0x21653a[_0x520e('0x4d','7Qpi')]+_0x520e('0x4','rT0n');$[_0x520e('0xbd','x5d3')](jsname,'',_0x30956e);}_0x45d683();});});}function invitation(_0x1812ae,_0x375cd6,_0x1053cb){return new Promise((_0x4df055,_0x38f370)=>{let _0xbfc51c={'url':_0x520e('0xd2','b1AT')+_0x1812ae+_0x520e('0x2a','tK7p')+_0x375cd6,'headers':JSON[_0x520e('0x78','fua0')](_0x1053cb),'body':JSON[_0x520e('0x7','@58s')]({'in_sp_time':0x0,'invite_code':_0x520e('0xd7','(2oP')})};$[_0x520e('0xb1','dU1R')](_0xbfc51c,(_0x10b8f3,_0x249494,_0x3beba4)=>{const _0x2152e8=JSON['parse'](_0x3beba4);_0x4df055();});});}function withdraw(_0x126135,_0x2deb2a,_0x24cd05){return new Promise((_0x10d591,_0x56d838)=>{let _0x1eaccb={'url':'https://'+_0x126135+_0x520e('0x3e','[B*2')+_0x2deb2a,'headers':JSON[_0x520e('0xd','IC!O')](_0x24cd05),'body':_0x520e('0x6d','1&w6')};$[_0x520e('0x8b','Z]ZW')](_0x1eaccb,(_0x27cb40,_0xd1f196,_0x5649b3)=>{const _0x2d7f8e=JSON[_0x520e('0xd0','7Qpi')](_0x5649b3);if(logs)$['log'](_0x5649b3);if(_0x2d7f8e[_0x520e('0x17','H!Y)')]==0x0){console[_0x520e('0x53','l%Ap')](_0x2d7f8e[_0x520e('0x7e','Z]ZW')]+_0x520e('0x15','IC!O'));message+=_0x2d7f8e[_0x520e('0xa8','IC!O')]+_0x520e('0x75','G68C');}else{console[_0x520e('0xd1','tK7p')](_0x2d7f8e[_0x520e('0xb8','M^dE')]);}_0x10d591();});});}async function showmsg(){if(tz==0x1){if($[_0x520e('0x60','n5FL')]()){if(hour==0xc&&minute<=0x14||hour==0x17&&minute>=0x28){await notify[_0x520e('0x3f','M#vP')]($[_0x520e('0xdc','H!Y)')],message);}else{$[_0x520e('0x7c',')A@l')](message);}}else{if(hour==0xc&&minute<=0x14||hour==0x17&&minute>=0x28){$[_0x520e('0xd8','l%Ap')](jsname,'',message);}else{$[_0x520e('0xac','xpP#')](message);}}}else{$[_0x520e('0x8e','D!A1')](message);}}
function Env(t, e) { 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("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) } 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("@"), a = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(a, (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(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && 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.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t) { let e = { "M+": (new Date).getMonth() + 1, "d+": (new Date).getDate(), "H+": (new Date).getHours(), "m+": (new Date).getMinutes(), "s+": (new Date).getSeconds(), "q+": Math.floor(((new Date).getMonth() + 3) / 3), S: (new Date).getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }