UNPKG

subata

Version:

一款能快速启动并登录wizard101或pirate101的命令行工具

1 lines 4.22 kB
var _0xb9273c=_0x207f;(function(_0x2b6b06,_0x52a6be){var _0x11e5a0=_0x207f,_0xd5f02d=_0x2b6b06();while(!![]){try{var _0x3d3c24=-parseInt(_0x11e5a0(0x1fc))/0x1+parseInt(_0x11e5a0(0x203))/0x2+parseInt(_0x11e5a0(0x212))/0x3+-parseInt(_0x11e5a0(0x1fd))/0x4+-parseInt(_0x11e5a0(0x1f1))/0x5+-parseInt(_0x11e5a0(0x21d))/0x6*(-parseInt(_0x11e5a0(0x213))/0x7)+parseInt(_0x11e5a0(0x20d))/0x8;if(_0x3d3c24===_0x52a6be)break;else _0xd5f02d['push'](_0xd5f02d['shift']());}catch(_0x5b490c){_0xd5f02d['push'](_0xd5f02d['shift']());}}}(_0x12ec,0x51bbf));let a=require('commander')[_0xb9273c(0x1fe)],u=require(_0xb9273c(0x21c)),w=require(_0xb9273c(0x204)),d=require('fs')[_0xb9273c(0x1ef)],f=require(_0xb9273c(0x1f5))['parse'],P=require(_0xb9273c(0x20a)),e=new a('init');function _0x12ec(){var _0x58818e=['chalk','30SgIBns','初始化','readFileSync','pirate101','2443235SgzlCh','prototype','path','\x20-L\x20login.us.wizard101.com\x2012000\x20','@node-steam/vdf','replaceAll','getSteamPath','\x5csteamapps\x5ccommon\x5c','\x5csteamapps\x5cappmanifest_','set','pirExe','661688rRpjHq','870868kFtZVp','Command','toLocaleLowerCase','apps','action','Wizard\x20Graphical\x20Client','25176cguIvS','steam-path','AppState','%INSTALLDIR%','pirBinPath','utf-8','Pirate.exe','../util/config','message','.acf','10574480wqHXgx','InstallScript','libraryfolders','wizard101','call','218121CQMnEu','414022npXIGY','pop','wizPath','\x20-L\x20login.us.pirate101.com\x2012000','split','log','Firewall','getLibraryFolders','exports'];_0x12ec=function(){return _0x58818e;};return _0x12ec();}function _0x207f(_0x554192,_0x3d13ab){var _0x12ec67=_0x12ec();return _0x207f=function(_0x207f87,_0x5aaf46){_0x207f87=_0x207f87-0x1ee;var _0x24c550=_0x12ec67[_0x207f87];return _0x24c550;},_0x207f(_0x554192,_0x3d13ab);}e['description'](_0xb9273c(0x1ee))[_0xb9273c(0x201)](async()=>{var _0x1e40f7=_0xb9273c;try{let _0x470b33=(await w[_0x1e40f7(0x1f7)]())[_0x1e40f7(0x1f3)];console['log']('本地Steam路径:'+u['green'](_0x470b33));var _0x174439,_0xb651f5=(await w[_0x1e40f7(0x21a)](_0x470b33))[_0x1e40f7(0x20f)][0x0][_0x1e40f7(0x200)],_0x2a42d8={};function _0x397317(_0x499873){var _0x290fd5=_0x1e40f7;return d(_0x499873,_0x290fd5(0x208));}for(_0x174439 in _0xb651f5)if(Object[_0x1e40f7(0x1f2)]['hasOwnProperty'][_0x1e40f7(0x211)](_0xb651f5,_0x174439)){var _0x3ed72a=f((_0x5a1672=Number(_0x174439),d(_0x470b33+(_0x1e40f7(0x1f9)+_0x5a1672+_0x1e40f7(0x20c)),'utf-8')))[_0x1e40f7(0x205)],_0x5a7b00=_0x3ed72a?.['InstallScripts'],_0x35d4e0=_0x3ed72a?.['name'];if(_0x1e40f7(0x210)===_0x35d4e0[_0x1e40f7(0x1ff)]()){let _0x5441eb=null;for(var _0x168f44 in _0x5a7b00){_0x5441eb=_0x5a7b00[_0x168f44];break;}let _0x1fe95e=f(_0x397317(_0x470b33+(_0x1e40f7(0x1f8)+_0x35d4e0+'\x5c')+_0x5441eb))[_0x1e40f7(0x20e)][_0x1e40f7(0x219)][_0x1e40f7(0x202)];var _0x12222e=(_0x1fe95e=_0x1fe95e['replaceAll'](_0x1e40f7(0x206),''))[_0x1e40f7(0x217)]('\x5c')[_0x1e40f7(0x214)]()||'';_0x2a42d8[_0x1e40f7(0x215)]=_0x470b33+'\x5csteamapps\x5ccommon\x5c'+_0x35d4e0,_0x2a42d8['wizBinPath']=_0x470b33+_0x1e40f7(0x1f8)+_0x35d4e0+_0x1fe95e,_0x2a42d8['wizExe']=_0x12222e;}if(_0x1e40f7(0x1f0)===_0x35d4e0[_0x1e40f7(0x1ff)]()){let _0xcafa1a=null;for(var _0x4d0a04 in _0x5a7b00){_0xcafa1a=_0x5a7b00[_0x4d0a04];break;}console['log'](_0x5a7b00,_0x470b33+(_0x1e40f7(0x1f8)+_0x35d4e0+'\x5c')+_0xcafa1a);let _0x37814f=f(_0x397317(_0x470b33+('\x5csteamapps\x5ccommon\x5c'+_0x35d4e0+'\x5c')+_0xcafa1a))[_0x1e40f7(0x20e)][_0x1e40f7(0x219)]['Wizard\x20Graphical\x20Client'];var _0x1d7faa=(_0x37814f=_0x37814f[_0x1e40f7(0x1f6)](_0x1e40f7(0x206),''))['split']('\x5c')[_0x1e40f7(0x214)]()||'';_0x2a42d8['pirPath']=_0x470b33+'\x5csteamapps\x5ccommon\x5c'+_0x35d4e0,_0x2a42d8[_0x1e40f7(0x207)]=_0x470b33+'\x5csteamapps\x5ccommon\x5c'+_0x35d4e0+_0x37814f,_0x2a42d8[_0x1e40f7(0x1fb)]=_0x1d7faa;}}P['set']({'gamePath':_0x2a42d8,'userList':[]});}catch(_0x5981eb){console[_0x1e40f7(0x218)](u['red'](_0x5981eb[_0x1e40f7(0x20b)]));var _0x285648={'userList':[],'gamePath':{'wizParam':_0x1e40f7(0x1f4),'pirParam':_0x1e40f7(0x216),'wizPath':'','wizBinPath':'','wizExe':'WizardGraphicalClient.exe','pirPath':'','pirBinPath':'','pirExe':_0x1e40f7(0x209)}};P[_0x1e40f7(0x1fa)](_0x285648);}var _0x5a1672;}),module[_0xb9273c(0x21b)]=e;