subata
Version:
一款能快速启动并登录wizard101或pirate101的命令行工具
1 lines • 4.03 kB
JavaScript
const _0x493b2b=_0x3c42;function _0x35ee(){const _0x3a9036=['1ojMevU','14904747GbBVhS','log','green','red','3001','532NjvLOi','103116fMdhHv','USERNAME','state','subata\x20--cp\x20C:\x5cUsers\x5c${username}\x5cAppData\x5cRoaming\x5csubata\x5cconfig.json','Target_class_pirate','utf-8','find\x20config.json\x20failed,\x20please\x20use\x20--cp\x20to\x20set\x20the\x20config\x20path','3699280oOtcwK','15KRtVMc','ucs2','bgYellow','root','997148eQcMIm','28920YplvUA','env','User32','Wizard\x20Graphical\x20Client','Client','exports','\x5c..\x5cconfig.json','C:\x5cUsers\x5c','2977510SyjTRD','stringify','./user32','36968620FWHkkB','alloc','try\x20run\x20:','created\x20config.json\x20success!','Target_class','101.43.174.221','port','parse','toString','\x5cAppData\x5cRoaming\x5csubata\x5cconfig.json','configpath'];_0x35ee=function(){return _0x3a9036;};return _0x35ee();}(function(_0x28808c,_0x3d1f7d){const _0x4455a1=_0x3c42,_0x3cc2b1=_0x28808c();while(!![]){try{const _0x3adeb6=-parseInt(_0x4455a1(0x1dc))/0x1*(parseInt(_0x4455a1(0x1ce))/0x2)+parseInt(_0x4455a1(0x1c1))/0x3*(parseInt(_0x4455a1(0x1c5))/0x4)+-parseInt(_0x4455a1(0x1c6))/0x5+parseInt(_0x4455a1(0x1b9))/0x6*(-parseInt(_0x4455a1(0x1b8))/0x7)+parseInt(_0x4455a1(0x1c0))/0x8+-parseInt(_0x4455a1(0x1dd))/0x9+parseInt(_0x4455a1(0x1d1))/0xa;if(_0x3adeb6===_0x3d1f7d)break;else _0x3cc2b1['push'](_0x3cc2b1['shift']());}catch(_0x120b38){_0x3cc2b1['push'](_0x3cc2b1['shift']());}}}(_0x35ee,0xe7ad5));let p=require('chalk'),{readFileSync:u,existsSync:e,writeFileSync:l}=require('fs'),a=require('koffi'),i=require(_0x493b2b(0x1d0))[_0x493b2b(0x1c8)],f=process[_0x493b2b(0x1c7)][_0x493b2b(0x1ba)]||process[_0x493b2b(0x1c7)]['USER'],d=_0x45b776=>{let {GetClassNameW:_0x472cb7,EnumWindowsProc:_0x5e8bf3,EnumWindows:_0x417686}=i,_0x302d2b=[];var _0x36ad9a=a['register']((_0x555737,_0x26364c)=>{const _0x27c36d=_0x3c42;var _0x328533=Buffer[_0x27c36d(0x1d2)](0x100),_0xf3c390=_0x472cb7(_0x555737,_0x328533,0x100);return _0x328533[_0x27c36d(0x1d9)](_0x27c36d(0x1c2),0x0,0x2*_0xf3c390)!==_0x45b776||_0x302d2b['find'](_0x106f85=>Number(_0x106f85)===Number(_0x555737))||_0x302d2b['push'](_0x555737),!0x0;},a['pointer'](_0x5e8bf3));return _0x417686(_0x36ad9a,0x0),a['unregister'](_0x36ad9a),_0x302d2b;};function _0x3c42(_0x31f7e8,_0x5a4d42){const _0x35ee0b=_0x35ee();return _0x3c42=function(_0x3c42eb,_0x265f10){_0x3c42eb=_0x3c42eb-0x1b7;let _0x3d66de=_0x35ee0b[_0x3c42eb];return _0x3d66de;},_0x3c42(_0x31f7e8,_0x5a4d42);}if(e(__dirname+_0x493b2b(0x1cc))){let e=u(__dirname+_0x493b2b(0x1cc)),r=JSON[_0x493b2b(0x1d8)](e),s=r[_0x493b2b(0x1db)]||_0x493b2b(0x1cd)+f+_0x493b2b(0x1da),a=r['service']||_0x493b2b(0x1d6),t=r[_0x493b2b(0x1bd)]||_0x493b2b(0x1ca),o=r[_0x493b2b(0x1d5)]||_0x493b2b(0x1c9),n=r[_0x493b2b(0x1d7)]||_0x493b2b(0x1b7),i,c={},l=d(t),g=d(o);try{i=u(s,'utf-8'),c={},i&&(delete(c=JSON[_0x493b2b(0x1d8)](i))[_0x493b2b(0x1bb)],delete c['root']);}catch(_0x340470){throw console['log'](p[_0x493b2b(0x1e0)](_0x493b2b(0x1bf))),console[_0x493b2b(0x1de)](p['red'](_0x493b2b(0x1d3)),p[_0x493b2b(0x1c3)](_0x493b2b(0x1bc))),_0x340470;}module[_0x493b2b(0x1cb)]={'username':f,'configpath':s,'Target_class_pirate':t,'Target_class':o,'elConfig':c,'service':a,'port':n,'pirHwnd':l,'wizHwnd':g};}else{let e='C:\x5cUsers\x5c'+f+_0x493b2b(0x1da),r=_0x493b2b(0x1d6),s=_0x493b2b(0x1ca),a=_0x493b2b(0x1c9),t=_0x493b2b(0x1b7),o,n={},i=d(s),c=d(a);try{l(__dirname+_0x493b2b(0x1cc),JSON[_0x493b2b(0x1cf)]({'configpath':e,'service':r,'Target_class':a,'Target_class_pirate':s,'port':t})),console['log'](p[_0x493b2b(0x1df)](_0x493b2b(0x1d4))),o=u(e,_0x493b2b(0x1be)),n={},o&&(delete(n=JSON['parse'](o))[_0x493b2b(0x1bb)],delete n[_0x493b2b(0x1c4)]);}catch(_0x387726){throw console[_0x493b2b(0x1de)](p[_0x493b2b(0x1e0)](_0x493b2b(0x1bf))),console[_0x493b2b(0x1de)](p[_0x493b2b(0x1e0)]('try\x20run\x20:'),p[_0x493b2b(0x1c3)](_0x493b2b(0x1bc))),_0x387726;}module[_0x493b2b(0x1cb)]={'username':f,'configpath':e,'Target_class_pirate':s,'Target_class':a,'elConfig':n,'service':r,'port':t,'pirHwnd':i,'wizHwnd':c};}