mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 23:19:37 +00:00
1 line
3.0 KiB
JavaScript
1 line
3.0 KiB
JavaScript
function _0x406c(_0x2b70b7,_0x42b374){const _0x2a0e67=_0x2a0e();return _0x406c=function(_0x406c99,_0x2fe180){_0x406c99=_0x406c99-0xcd;let _0xbe1a0e=_0x2a0e67[_0x406c99];return _0xbe1a0e;},_0x406c(_0x2b70b7,_0x42b374);}(function(_0x573cff,_0x46c015){const _0x934083=_0x406c,_0x287bfa=_0x573cff();while(!![]){try{const _0x3ceba6=parseInt(_0x934083(0xd2))/0x1+-parseInt(_0x934083(0xce))/0x2*(parseInt(_0x934083(0xd6))/0x3)+parseInt(_0x934083(0xd9))/0x4*(parseInt(_0x934083(0xe0))/0x5)+parseInt(_0x934083(0xd0))/0x6+-parseInt(_0x934083(0xcf))/0x7*(parseInt(_0x934083(0xcd))/0x8)+parseInt(_0x934083(0xd5))/0x9+-parseInt(_0x934083(0xd8))/0xa*(-parseInt(_0x934083(0xdd))/0xb);if(_0x3ceba6===_0x46c015)break;else _0x287bfa['push'](_0x287bfa['shift']());}catch(_0x1e7435){_0x287bfa['push'](_0x287bfa['shift']());}}}(_0x2a0e,0x9eefc));function _0x2a0e(){const _0x1a514f=['join','11MPaCGS','apirN','utf-8','5iZqFtV','temp','mkdirSync','8OFAUIl','10490TtsotT','2502493QTdOLH','1864308ZWKBIT','readFileSync','43508jtLphm','XxBtR','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','3741084xqvOSi','483ZZLTCF','Tabfk','10478530YaASyJ','140772JMPbOJ','NapCat','guid.txt'];_0x2a0e=function(){return _0x1a514f;};return _0x2a0e();}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0xa881db from'node:path';import _0x11a8c8 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x20d5a1,_0x5b6793,_0x2bd1ee){const _0x4ae22b=_0x406c,_0x2ad6ff={'XxBtR':_0x4ae22b(0xda),'WPFQM':_0x4ae22b(0xdb),'apirN':function(_0x5badfa){return _0x5badfa();},'Tabfk':_0x4ae22b(0xdf)},_0xb50314=_0xa881db[_0x4ae22b(0xdc)](_0x2bd1ee,_0x2ad6ff['XxBtR'],_0x4ae22b(0xe1));_0x11a8c8[_0x4ae22b(0xe2)](_0xb50314,{'recursive':!![]});const _0x587cd2=_0xa881db[_0x4ae22b(0xdc)](_0x2bd1ee,_0x2ad6ff[_0x4ae22b(0xd3)],_0x2ad6ff['WPFQM']);let _0x310636=_0x2ad6ff[_0x4ae22b(0xde)](randomUUID);try{_0x310636=_0x11a8c8[_0x4ae22b(0xd1)](_0xa881db[_0x4ae22b(0xdc)](_0x587cd2),_0x2ad6ff['Tabfk']);}catch(_0x89ff21){_0x11a8c8['writeFileSync'](_0xa881db[_0x4ae22b(0xdc)](_0x587cd2),_0x310636,_0x2ad6ff[_0x4ae22b(0xd7)]);}const _0xc1240c={'selfUin':_0x20d5a1,'selfUid':_0x5b6793,'desktopPathConfig':{'account_path':_0x2bd1ee},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0xb50314,'deviceInfo':{'guid':_0x310636,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x4ae22b(0xd4)};return Object['assign'](sessionConfig,_0xc1240c),_0xc1240c;} |