-
Notifications
You must be signed in to change notification settings - Fork 322
/
Copy pathwnn.js
10 lines (10 loc) · 8.38 KB
/
wnn.js
1
2
3
4
5
6
7
8
9
10
/*
小程序:薇诺娜专柜商城
首次跑需要点击首页右侧“小游戏”
奖品:种树换实物
已实现功能:双签到、种树任务、自动浇水
变量名:wnn
变量值:域名api.qiumeiapp.com请求体中的appUserToken值,多账号换行
export wnn="appUserToken"
*/
const _0x825e12=_0x504c;(function(_0x2e96ad,_0x15a913){const _0x15bee0=_0x504c,_0x4b2dfd=_0x2e96ad();while(!![]){try{const _0x2f4727=-parseInt(_0x15bee0(0xc6))/0x1*(-parseInt(_0x15bee0(0xaf))/0x2)+parseInt(_0x15bee0(0x76))/0x3*(parseInt(_0x15bee0(0xae))/0x4)+-parseInt(_0x15bee0(0xc2))/0x5*(-parseInt(_0x15bee0(0x92))/0x6)+-parseInt(_0x15bee0(0x74))/0x7*(-parseInt(_0x15bee0(0xb9))/0x8)+-parseInt(_0x15bee0(0x79))/0x9*(parseInt(_0x15bee0(0x86))/0xa)+parseInt(_0x15bee0(0xc4))/0xb*(parseInt(_0x15bee0(0xc0))/0xc)+-parseInt(_0x15bee0(0xc1))/0xd;if(_0x2f4727===_0x15a913)break;else _0x4b2dfd['push'](_0x4b2dfd['shift']());}catch(_0x2af782){_0x4b2dfd['push'](_0x4b2dfd['shift']());}}}(_0x7f6f,0x88e0d));function _0x7f6f(){const _0x324511=['run','❌\x20获取水滴失败:\x20','data','\x20次...','updateZgForestTask','assist','✅\x20第\x20','\x0a共获取到\x20','g\x20水滴','\x20次浇水成功!','https://servicewechat.com/wx250394ab3f680bfa/637/page-frame.html','✅\x20签到成功!','❌\x20未找到有效的\x20appUserToken,退出。','filter','🌿\x20计划浇水\x20','treeCheckin','api.qiumeiapp.com','❌\x20浇水失败:\x20','getWaterDrops','⚠️\x20请勿频繁操作!','❌\x20浏览商城失败:\x20','32ehRmeJ','2gsPOOH','✅\x20今日已签到!','https://api.qiumeiapp.com/zg-activity/zg-daily/','env','❌\x20获取水滴请求异常:\x20','signinZgForest','✅\x20浏览商城任务完成!','username','\x20======','headers','8tsqaIo','\x0a======\x20','❌\x20水滴不足,无法浇水!','post','💧\x20当前水滴数量:\x20','length','remainWaterGram','3379644ptpqZX','21771698hACXuW','1932110QqhnnF','&taskCode=2025002','22UpkfmI','appUserToken=','673457zCIbSj','❌\x20签到请求异常:\x20','code','❌\x20签到失败:\x20','❌\x20浏览商城请求异常:\x20','message','4051551lgDkBV','❌\x20未填写\x20wnn\x20变量!请检查环境变量配置。\x0a','319686LgXLKT','axios','readArticle','433611HAxCrz','browseMall','waterGram','账号\x20','exit','&sysCode=zgxcx&isRegister=1&userShareCode=','appUserToken','baseUrl','waterTree','wateringZgForest','🌳\x20树木签到成功,获得\x20','✅\x20阅读文章任务完成!','❌\x20树木签到失败:\x20','170gHilNR','\x0a✨\x20薇诺娜专柜商城\x20✨\x0a','❌\x20阅读文章请求异常:\x20','e1b52ac4','\x20个账号','map','checkin','trim','application/x-www-form-urlencoded','addZgForestInvite','❌\x20Token\x20失效,请重新获取!','wnn','6ndMLUe','zgSigninNew','index','❌\x20浇水请求异常:\x20','stringify','keep-alive','log'];_0x7f6f=function(){return _0x324511;};return _0x7f6f();}const axios=require(_0x825e12(0x77)),wnn=process[_0x825e12(0xb2)][_0x825e12(0x91)]||'';function log(_0x3fd129){const _0x4f1804=_0x825e12;console[_0x4f1804(0x98)](_0x3fd129);}function delay(){return new Promise(_0xc8c1f5=>setTimeout(_0xc8c1f5,0x1b58));}function _0x504c(_0x25be9d,_0x1f5c69){const _0x7f6ffa=_0x7f6f();return _0x504c=function(_0x504ceb,_0x358039){_0x504ceb=_0x504ceb-0x74;let _0x54b8cc=_0x7f6ffa[_0x504ceb];return _0x54b8cc;},_0x504c(_0x25be9d,_0x1f5c69);}class WnnTask{constructor(_0x119e0d,_0x569f6d){const _0x5d9b98=_0x825e12;this['appUserToken']=_0x119e0d[_0x5d9b98(0x8d)](),this[_0x5d9b98(0x94)]=_0x569f6d+0x1,this[_0x5d9b98(0xb6)]=_0x5d9b98(0x7c)+this['index'],this[_0x5d9b98(0x80)]=_0x5d9b98(0xb1),this[_0x5d9b98(0xb8)]={'Host':_0x5d9b98(0xa9),'Content-Type':_0x5d9b98(0x8e),'Accept-Encoding':'gzip,\x20deflate,\x20br','User-Agent':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2017_6_1\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148\x20MicroMessenger/8.0.56(0x18003830)\x20NetType/WIFI\x20Language/zh_CN','Referer':_0x5d9b98(0xa3),'Connection':_0x5d9b98(0x97)};}async[_0x825e12(0x8c)](){const _0xb95f0d=_0x825e12;try{const _0x553513=await axios[_0xb95f0d(0xbc)](this[_0xb95f0d(0x80)]+_0xb95f0d(0x93),_0xb95f0d(0xc5)+this['appUserToken'],{'headers':this[_0xb95f0d(0xb8)]});log(_0xb95f0d(0xba)+this[_0xb95f0d(0xb6)]+_0xb95f0d(0xb7));if(_0x553513[_0xb95f0d(0x9b)][_0xb95f0d(0xc8)]===0x2bf)log(_0xb95f0d(0xb0));else{if(_0x553513[_0xb95f0d(0x9b)][_0xb95f0d(0xc8)]===0xc8)log(_0xb95f0d(0xa4));else{if(_0x553513[_0xb95f0d(0x9b)][_0xb95f0d(0xc8)]===0x258)return log(_0xb95f0d(0x90)),![];else log(_0xb95f0d(0xc9)+JSON['stringify'](_0x553513[_0xb95f0d(0x9b)]));}}}catch(_0x504873){log(_0xb95f0d(0xc7)+_0x504873[_0xb95f0d(0xcb)]);}return!![];}async[_0x825e12(0xa8)](){const _0x5bf1b7=_0x825e12;try{const _0x5dbda0=await axios[_0x5bf1b7(0xbc)](this[_0x5bf1b7(0x80)]+_0x5bf1b7(0xb4),_0x5bf1b7(0xc5)+this[_0x5bf1b7(0x7f)],{'headers':this[_0x5bf1b7(0xb8)]});_0x5dbda0[_0x5bf1b7(0x9b)][_0x5bf1b7(0xc8)]===0xc8?log(_0x5bf1b7(0x83)+_0x5dbda0[_0x5bf1b7(0x9b)][_0x5bf1b7(0x9b)][_0x5bf1b7(0x7b)]+_0x5bf1b7(0xa1)):log(_0x5bf1b7(0x85)+JSON[_0x5bf1b7(0x96)](_0x5dbda0['data']));}catch(_0x2815ef){log('❌\x20树木签到请求异常:\x20'+_0x2815ef['message']);}}async['assist'](_0x398a88){const _0x5bd909=_0x825e12;try{await axios['post'](this[_0x5bd909(0x80)]+_0x5bd909(0x8f),_0x5bd909(0xc5)+this[_0x5bd909(0x7f)]+_0x5bd909(0x7e)+_0x398a88,{'headers':this[_0x5bd909(0xb8)]});}catch(_0x481292){}}async[_0x825e12(0x7a)](){const _0x4e30e6=_0x825e12;try{const _0x4d2703=await axios['post'](this['baseUrl']+_0x4e30e6(0x9d),_0x4e30e6(0xc5)+this[_0x4e30e6(0x7f)]+'&taskCode=2025001',{'headers':this[_0x4e30e6(0xb8)]});_0x4d2703['data']['code']===0xc8?log(_0x4e30e6(0xb5)):log(_0x4e30e6(0xad)+JSON[_0x4e30e6(0x96)](_0x4d2703[_0x4e30e6(0x9b)]));}catch(_0x2e48ae){log(_0x4e30e6(0xca)+_0x2e48ae['message']);}}async[_0x825e12(0x78)](){const _0x1482e8=_0x825e12;try{const _0x87ee28=await axios[_0x1482e8(0xbc)](this[_0x1482e8(0x80)]+_0x1482e8(0x9d),_0x1482e8(0xc5)+this[_0x1482e8(0x7f)]+_0x1482e8(0xc3),{'headers':this[_0x1482e8(0xb8)]});if(_0x87ee28[_0x1482e8(0x9b)]['code']===0xc8)log(_0x1482e8(0x84));else _0x87ee28[_0x1482e8(0x9b)][_0x1482e8(0xc8)]===0x2bf?log(_0x1482e8(0xac)):log('❌\x20阅读文章失败:\x20'+JSON[_0x1482e8(0x96)](_0x87ee28[_0x1482e8(0x9b)]));}catch(_0x4ac926){log(_0x1482e8(0x88)+_0x4ac926[_0x1482e8(0xcb)]);}}async[_0x825e12(0xab)](){const _0x3e46fe=_0x825e12;try{const _0x5a457a=await axios[_0x3e46fe(0xbc)](this['baseUrl']+'getZgForest','appUserToken='+this[_0x3e46fe(0x7f)],{'headers':this[_0x3e46fe(0xb8)]});if(_0x5a457a['data'][_0x3e46fe(0xc8)]===0xc8){const _0x54df3b=_0x5a457a[_0x3e46fe(0x9b)][_0x3e46fe(0x9b)][_0x3e46fe(0xbf)];return log(_0x3e46fe(0xbd)+_0x54df3b+'g'),_0x54df3b;}else log(_0x3e46fe(0x9a)+JSON['stringify'](_0x5a457a['data']));}catch(_0x5b0349){log(_0x3e46fe(0xb3)+_0x5b0349[_0x3e46fe(0xcb)]);}return 0x0;}async['waterTree'](){const _0x1284ad=_0x825e12,_0x1be12c=await this[_0x1284ad(0xab)](),_0x967d6f=Math['floor'](_0x1be12c/0xa);if(_0x967d6f<=0x0){log(_0x1284ad(0xbb));return;}log(_0x1284ad(0xa7)+_0x967d6f+_0x1284ad(0x9c));for(let _0x303be9=0x1;_0x303be9<=_0x967d6f;_0x303be9++){try{const _0x469660=await axios[_0x1284ad(0xbc)](this[_0x1284ad(0x80)]+_0x1284ad(0x82),_0x1284ad(0xc5)+this[_0x1284ad(0x7f)],{'headers':this['headers']});_0x469660[_0x1284ad(0x9b)][_0x1284ad(0xc8)]===0xc8?log(_0x1284ad(0x9f)+_0x303be9+_0x1284ad(0xa2)):log(_0x1284ad(0xaa)+JSON[_0x1284ad(0x96)](_0x469660[_0x1284ad(0x9b)]));}catch(_0x3ee82c){log(_0x1284ad(0x95)+_0x3ee82c[_0x1284ad(0xcb)]);}await delay();}}async['run'](_0x468e80){const _0x58d407=_0x825e12;if(!await this[_0x58d407(0x8c)]())return;await delay(),await this[_0x58d407(0xa8)](),await delay(),await this[_0x58d407(0x9e)](_0x468e80),await delay(),await this['browseMall'](),await delay(),await this['readArticle'](),await delay(),await this[_0x58d407(0x81)]();}}((async()=>{const _0xc51332=_0x825e12;console[_0xc51332(0x98)](_0xc51332(0x87));!wnn&&(console[_0xc51332(0x98)](_0xc51332(0x75)),process[_0xc51332(0x7d)](0x1));const _0xae90b1=wnn['split']('\x0a')[_0xc51332(0x8b)](_0x5c527e=>_0x5c527e['trim']())[_0xc51332(0xa6)](_0x34ee99=>_0x34ee99);if(_0xae90b1[_0xc51332(0xbe)]>0x0){console['log'](_0xc51332(0xa0)+_0xae90b1[_0xc51332(0xbe)]+_0xc51332(0x8a));const _0x2971a6=_0xc51332(0x89);for(let _0x2d9d06=0x0;_0x2d9d06<_0xae90b1[_0xc51332(0xbe)];_0x2d9d06++){const _0x3d669b=new WnnTask(_0xae90b1[_0x2d9d06],_0x2d9d06);await _0x3d669b[_0xc51332(0x99)](_0x2971a6);}}else console[_0xc51332(0x98)](_0xc51332(0xa5));})());