943 lines
53 KiB
JavaScript
943 lines
53 KiB
JavaScript
const _0x5c58a0 = _0x2a33,
|
|
_0x485cb7 = (function() {
|
|
let _0x52d713 = !![];
|
|
return function(_0x523503, _0x55bac4) {
|
|
const _0xf1f5f9 = _0x52d713 ? function() {
|
|
const _0x322ad9 = _0x2a33;
|
|
if (_0x322ad9(0x0) === _0x322ad9(0x1)) _0x2eb8a4 && _0x59c966['log'](_0x322ad9(0x2) + _0x46d43e);
|
|
else {
|
|
if (_0x55bac4) {
|
|
const _0x9cf970 = _0x55bac4['apply'](_0x523503, arguments);
|
|
return _0x55bac4 = null, _0x9cf970;
|
|
}
|
|
}
|
|
} : function() {};
|
|
return _0x52d713 = ![], _0xf1f5f9;
|
|
};
|
|
}()),
|
|
_0x34158a = _0x485cb7(this, function() {
|
|
const _0x1b1394 = _0x2a33;
|
|
return _0x34158a[_0x1b1394(0x3)]()[_0x1b1394(0x4)]('(((.+)+)+)+$')[_0x1b1394(0x3)]()[_0x1b1394(0x5)](_0x34158a)[_0x1b1394(0x4)](_0x1b1394(0x6));
|
|
});
|
|
_0x34158a();
|
|
const {
|
|
app,
|
|
BrowserWindow,
|
|
ipcMain,
|
|
dialog,
|
|
shell,
|
|
Menu
|
|
} = require(_0x5c58a0(0x7)), fs = require('fs'), fsp = require('fs')[_0x5c58a0(0x8)], os = require('os'), path = require(_0x5c58a0(0x9)), isDev = app[_0x5c58a0(0xa)](_0x5c58a0(0xb))['indexOf']('electron.exe') == -0x1 ? ![] : !![], readline = require(_0x5c58a0(0xc)), {
|
|
spawn
|
|
} = require(_0x5c58a0(0xd)), axios = require(_0x5c58a0(0xe)), Logger = require('./logger'), packageJson = require('./package.json');
|
|
|
|
function _0x5699() {
|
|
const _0x1744cf = ['ZdfhU', 'qVCai', 'Error:\x20', 'toString', 'search', 'constructor', '(((.+)+)+)+$', 'electron', 'promises', 'path', 'getPath', 'exe', 'readline', 'child_process', 'axios', 'excelVersion', 'data.panpan.co.kr', 'commandLine', 'appendSwitch', 'disable-dev-shm-usage', 'disable-gpu', '--max-old-space-size=4096', 'whenReady', 'then', 'activate', 'zKZWz', 'ujvCX', 'parse', 'license', 'licenseKey', 'EML', 'LC_TY', 'BUY_MK', 'getAllWindows', 'length', 'WQgjX', 'cUDeZ', 'log', 'closed', 'quit', '카피맨\x20-\x20스마트스토어\x20Best\x20상품추출\x20프로그램\x20', '환경설정', '\x20\x20\x20\x20라이센스키\x20등록\x20\x20\x20\x20', 'show', '\x20\x20\x20\x20금지어\x20설정\x20\x20\x20\x20', 'BxWUi', 'VkZES', 'resolve', '카피맨_양식_', '.xlsx', '셀러찾기_키워드_양식_', '셀러찾기_카테고리_양식_', './excel/', 'c:/CopyMan/카피맨양식/', 'c:/CopyMan/추출결과/', 'existsSync', 'mkdirSync', 'readFileSync', 'writeFileSync', 'All', 'separator', '\x20\x20\x20\x20카피맨\x20정보\x20\x20\x20\x20', 'JEUsK', 'Error\x20:\x20', 'setApplicationMenu', 'loadFile', 'join', 'mac', 'dUQPx', 'webContents', 'openDevTools', 'category', 'homePath', 'SCBJS', 'VSoDW', '/util.exe', 'createInterface', 'line', 'pCRRt', 'OXSzc', 'replace', '[category_naver]', 'setBanWord\x20:\x20', 'error', 'hxMKP', 'send', 'banWord.txt', 'BMAux', 'progress_total', 'uFeQz', 'openExcelDown:\x20', 'AppendLogFile', 'readFile', 'utf8', 'trim', 'readBanWord\x20:\x20', 'writeFile', 'setBanWord\x20writeFile\x20:\x20', 'SiNYi', 'addBookmarkJson', 'SYXeJ', 'NWNNC', 'bookmark', 'c:\x5cCopyMan\x5c추출결과\x5c', 'openPath', 'DKWUX', 'VThiH', 'openResultFolder\x20:\x20', 'showOpenDialog', 'ryQDi', 'RXvqy', 'filePaths', './excel/카피맨_양식_', './excel/셀러찾기_키워드_양식_', 'basename', 'copyman', 'copyFileSync', '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.', '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.<br>', 'File\x20copied\x20successfully\x20to\x20', 'UwRsQ', 'getPayday\x20:\x20', 'openExcelDown\x20:\x20', 'env', 'indexOf', 'startsWith', 'showErrorBox', './LOG', 'cwd', 'info', 'ouKEh', 'DkTQA', 'QMPEY', 'Log', 'addLogBox', 'AzxvL', 'zEMFw', '00:00', 'family', 'IPv4', 'address', '127.0.0.1', 'JACVD', '[progress]', 'progress', 'xjIGZ', 'DzVNt', 'PWzsp', 'AabNQ', 'HsqUK', 'addCategoryJson', 'xrVty', 'imloS', 'wWKfb', 'SNuIe', '[error]', 'progress_count', 'qvOXG', 'rsWEh', 'OzDel', 'DgNTR', 'addBanWord', 'kqvXi', '[progress_total]', 'WLSTD', 'ETKNM', 'CLCT_STRT', 'searchman', 'ktIMP', 'pBFwE', 'UNhLF', 'TSlij', 'TSdfu', 'getStatus', 'dBBNT', 'IKfHr', 'showInfo', 'openResultFolder:\x20', 'showLicense', 'showBanWord', 'nmUpL', 'WbCHW', '[LOG]', 'svWzk', 'hideAllLoader', 'SnAuE', 'getBookmarks', 'zprQP', 'start', 'stringify', 'stdout', '[bookmark]', 'DRANj', 'ORD_ID', 'end', '[END]', 'ktwan', 'getCategory', 'setLicenseKey', 'lcPath', '%LOCALAPPDATA%\x5cCopyMan\x5c', '/license.exe', '[result]', 'vLrIz', 'JIXFL', 'showProgress', 'types', '{\x22types\x22:\x20\x22start\x22}', '/CopyMan_', '.exe', 'write', 'stdin', 'yctPk', '[progress_count]', 'NtmqO', '[guest_limit]', 'rfwdE', 'FGQUd', '엑셀파일을\x20저장했습니다.', '/resources/app/LOG', 'start_seller', '/SearchMan_', 'YJQMe', 'PoWlh', 'hideProgress', 'eDZKb', 'LHeKk', 'MZyNy', 'Ykunc', 'readBanWord', 'setBanWord', 'open-error-dialog', 'open-excel-folder', 'c:\x5cCopyMan\x5c', 'An\x20error\x20occurred:\x20', 'uOWev', 'result', 'open-excel-down', '파일을\x20저장할\x20폴더를\x20선택하세요', 'c:\x5c', 'wjtcf', 'oNaqy', 'WVQdy', './excel/셀러찾기_양식_', './excel/셀러찾기_카테고리_양식_', 'xVkQO', 'catch', 'fgpov', 'Error\x20during\x20folder\x20selection:', 'openExternal', 'uryMI', 'lc.json', 'qrXcV', '금지어가\x20등록되었습니다.', 'juSsC', 'resultLicense', 'code', 'ENOENT', 'hajmD', 'HKRGm', 'Error\x20Message', 'Knqat', 'readLicenseKey\x20:\x20', 'json', '/payday?licenseKey=', 'get', 'payday', 'GAgTg', 'AOEuq', 'getMacAddress\x20:\x20'];
|
|
_0x5699 = function() {
|
|
return _0x1744cf;
|
|
};
|
|
return _0x5699();
|
|
}
|
|
let win, appVersion = packageJson['version'],
|
|
excelVersion = packageJson[_0x5c58a0(0xf)],
|
|
licenseKey, licenseServer = _0x5c58a0(0x10);
|
|
app[_0x5c58a0(0x11)][_0x5c58a0(0x12)]('no-sandbox'), app[_0x5c58a0(0x11)][_0x5c58a0(0x12)]('disable-setuid-sandbox'), app['commandLine'][_0x5c58a0(0x12)](_0x5c58a0(0x13)), app[_0x5c58a0(0x11)][_0x5c58a0(0x12)](_0x5c58a0(0x14)), app[_0x5c58a0(0x11)]['appendSwitch']('disable-accelerated-2d-canvas'), app['disableHardwareAcceleration'](), app[_0x5c58a0(0x11)][_0x5c58a0(0x12)]('js-flags', _0x5c58a0(0x15)), app[_0x5c58a0(0x16)]()[_0x5c58a0(0x17)](() => {
|
|
const _0x166866 = _0x5c58a0;
|
|
try {
|
|
createWindow(), app['on'](_0x166866(0x18), () => {
|
|
const _0x3790d2 = _0x166866;
|
|
_0x3790d2(0x19) === _0x3790d2(0x1a) ? (_0x1ab5af = _0x213d71[_0x3790d2(0x1b)](_0x14fb07), _0x30dac3 = {
|
|
'licenseKey': _0x44b508[_0x3790d2(0x1c)][_0x3790d2(0x1d)],
|
|
'EML': _0x1324a7[_0x3790d2(0x1c)][_0x3790d2(0x1e)],
|
|
'ORD_ID': _0x36aca7[_0x3790d2(0x1c)]['ORD_ID'],
|
|
'LC_TY': _0x1a3d6b[_0x3790d2(0x1c)][_0x3790d2(0x1f)],
|
|
'BUY_MK': _0x1b5065['license'][_0x3790d2(0x20)]
|
|
}) : BrowserWindow[_0x3790d2(0x21)]()[_0x3790d2(0x22)] === 0x0 && (_0x3790d2(0x23) !== _0x3790d2(0x24) ? createWindow() : _0x158414 && _0x153b30[_0x3790d2(0x25)](_0x3790d2(0x2) + _0x1266fe));
|
|
}), win['on'](_0x166866(0x26), () => {
|
|
win = null, app['quit']();
|
|
});
|
|
} catch (_0x123c49) {
|
|
isDev && console[_0x166866(0x25)]('Error:\x20' + _0x123c49), win = null, app[_0x166866(0x27)]();
|
|
}
|
|
});
|
|
async function createWindow() {
|
|
const _0xc3c216 = _0x5c58a0;
|
|
try {
|
|
let _0x48dfe5 = {
|
|
'width': 0x35c,
|
|
'height': 0x2da,
|
|
'title': _0xc3c216(0x28) + appVersion,
|
|
'maximizable': !![],
|
|
'webPreferences': {
|
|
'nodeIntegration': !![],
|
|
'contextIsolation': ![]
|
|
},
|
|
'resizable': !![]
|
|
};
|
|
win = new BrowserWindow(_0x48dfe5);
|
|
let _0x23a855 = [{
|
|
'label': _0xc3c216(0x29),
|
|
'submenu': [{
|
|
'label': _0xc3c216(0x2a),
|
|
'click': () => {
|
|
const _0x36682e = _0xc3c216;
|
|
showLicenseModal(_0x36682e(0x2b), appVersion, licenseKey);
|
|
}
|
|
}, {
|
|
'label': _0xc3c216(0x2c),
|
|
'click': () => {
|
|
const _0x410cbf = _0xc3c216;
|
|
if (_0x410cbf(0x2d) !== _0x410cbf(0x2e)) showBanWord(_0x410cbf(0x2b));
|
|
else {
|
|
let _0x46b17e = _0x68c8e3[_0x410cbf(0x2f)](_0x169638),
|
|
_0x22c8e6 = _0x410cbf(0x30) + _0x4e8218 + _0x410cbf(0x31),
|
|
_0x4b6844 = _0x410cbf(0x32) + _0x26a8d3 + '.xlsx',
|
|
_0x5d6ea7 = _0x410cbf(0x33) + _0x349fa8 + _0x410cbf(0x31),
|
|
_0x456ca4 = _0x4ee4a0[_0x410cbf(0x2f)](_0x46b17e, './excel/' + _0x22c8e6),
|
|
_0x11deca = _0x4c79a0[_0x410cbf(0x2f)](_0x46b17e, _0x410cbf(0x34) + _0x4b6844),
|
|
_0x2c9132 = _0x55d3b4[_0x410cbf(0x2f)](_0x46b17e, './excel/' + _0x5d6ea7),
|
|
_0x8238e0 = _0x410cbf(0x35),
|
|
_0xd32ba9 = _0x410cbf(0x36),
|
|
_0x162d5c = _0xbd2982[_0x410cbf(0x2f)](_0x8238e0, _0x22c8e6),
|
|
_0x2e273e = _0x289ea5[_0x410cbf(0x2f)](_0x8238e0, _0x4b6844),
|
|
_0x11eee5 = _0xc0efe7['resolve'](_0x8238e0, _0x5d6ea7);
|
|
!_0x2fe0c5[_0x410cbf(0x37)](_0x8238e0) && _0x2dd105['mkdirSync'](_0x8238e0, {
|
|
'recursive': !![]
|
|
}), !_0xa36f2f[_0x410cbf(0x37)](_0xd32ba9) && _0x1156d0[_0x410cbf(0x38)](_0xd32ba9, {
|
|
'recursive': !![]
|
|
});
|
|
if (!_0xfcc10f['existsSync'](_0x162d5c) || !_0x117d97[_0x410cbf(0x37)](_0x2e273e) || !_0x89f56e['existsSync'](_0x11eee5)) {
|
|
let _0x581b49 = _0x368da6['readFileSync'](_0x456ca4),
|
|
_0x1f9879 = _0x36426f['readFileSync'](_0x11deca),
|
|
_0xe7e349 = _0x3b0c31[_0x410cbf(0x39)](_0x2c9132);
|
|
_0x1e52a9[_0x410cbf(0x3a)](_0x162d5c, _0x581b49), _0x574166['writeFileSync'](_0x2e273e, _0x1f9879), _0x482d96[_0x410cbf(0x3a)](_0x11eee5, _0xe7e349);
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
'label': '\x20\x20\x20\x20엑셀\x20원본\x20다운로드\x20\x20\x20\x20',
|
|
'click': () => {
|
|
const _0x1bcbd7 = _0xc3c216;
|
|
openExcelDown(_0x1bcbd7(0x3b));
|
|
}
|
|
}, {
|
|
'type': _0xc3c216(0x3c)
|
|
}, {
|
|
'label': _0xc3c216(0x3d),
|
|
'click': () => {
|
|
const _0x11b00f = _0xc3c216;
|
|
'JEUsK' !== _0x11b00f(0x3e) ? _0x188020 ? _0x335385[_0x11b00f(0x25)](_0x11b00f(0x3f) + _0x67ac2b) : '' : showInfoModal(_0x11b00f(0x2b), appVersion, licenseKey);
|
|
}
|
|
}]
|
|
}],
|
|
_0x1d101b = Menu['buildFromTemplate'](_0x23a855);
|
|
Menu[_0xc3c216(0x40)](_0x1d101b), win[_0xc3c216(0x41)](path[_0xc3c216(0x42)](__dirname, '/index.html')), initExcelFolder(), licenseKey = await readLicenseKey(), await getCategory();
|
|
const _0x25bc1e = await getMacAddress(),
|
|
_0x49891e = await getPayday(licenseKey[_0xc3c216(0x1d)]);
|
|
let _0x155c77 = {
|
|
'ip': _0x25bc1e['ip'],
|
|
'mac': _0x25bc1e[_0xc3c216(0x43)],
|
|
'payday': _0x49891e
|
|
};
|
|
win && win['webContents'] && (_0xc3c216(0x44) === 'dUQPx' ? win[_0xc3c216(0x45)]['on']('did-finish-load', () => {
|
|
sendStatus(_0x155c77);
|
|
}) : _0x47f60e && _0xb29f5e[_0xc3c216(0x25)]('Error:\x20' + _0xbde9a7)), isDev ? win[_0xc3c216(0x45)][_0xc3c216(0x46)]() : '';
|
|
} catch (_0xdd43c) {} finally {}
|
|
}
|
|
|
|
function getCategory() {
|
|
const _0x208099 = _0x5c58a0;
|
|
try {
|
|
let _0x2b17c9 = {
|
|
'start': _0x208099(0x47)
|
|
},
|
|
_0x177199 = path[_0x208099(0x2f)](__dirname);
|
|
_0x2b17c9[_0x208099(0x48)] = _0x177199;
|
|
typeof _0x2b17c9 !== 'string' && (_0x208099(0x49) === _0x208099(0x4a) ? _0x547ce9(_0x208099(0x3b)) : _0x2b17c9 = JSON['stringify'](_0x2b17c9));
|
|
const _0x33a970 = spawn(path[_0x208099(0x42)](__dirname, _0x208099(0x4b)), [_0x2b17c9]);
|
|
let _0x59f00c = readline[_0x208099(0x4c)]({
|
|
'input': _0x33a970['stdout'],
|
|
'output': process['stdout'],
|
|
'terminal': ![]
|
|
});
|
|
_0x59f00c['on'](_0x208099(0x4d), _0xac701c => {
|
|
const _0x3ec347 = _0x208099;
|
|
if (_0x3ec347(0x4e) !== _0x3ec347(0x4f)) {
|
|
let _0x1fedaa = _0xac701c['toString']();
|
|
chkInStrStart('[category_naver]', _0x1fedaa) && AddCategoryJson(_0x1fedaa[_0x3ec347(0x50)](_0x3ec347(0x51), '')['trim'](), _0x3ec347(0x47));
|
|
} else _0x406a31(_0x3ec347(0x52) + _0x4cf486, _0x3ec347(0x53));
|
|
});
|
|
} catch (_0x332264) {
|
|
if ('hxMKP' === _0x208099(0x54)) isDev && console['log']('Error:\x20' + _0x332264);
|
|
else try {
|
|
_0x12340a['webContents'][_0x208099(0x55)]('showLicense', _0x354017, _0x5e7254, _0x577b5b);
|
|
} catch (_0x4615d0) {
|
|
_0x26e3e2 && _0x49891d[_0x208099(0x25)](_0x208099(0x2) + _0x4615d0);
|
|
}
|
|
} finally {
|
|
params = null;
|
|
}
|
|
}
|
|
async function readBanWord() {
|
|
const _0x3f3caa = _0x5c58a0;
|
|
let _0x4db2dc = _0x3f3caa(0x56),
|
|
_0x2d8f80 = path[_0x3f3caa(0x2f)](__dirname, './' + _0x4db2dc),
|
|
_0x1d314b = getAppDataPath(_0x3f3caa(0x56));
|
|
try {
|
|
if ('BMAux' !== _0x3f3caa(0x57)) try {
|
|
_0x50c5d9[_0x3f3caa(0x45)][_0x3f3caa(0x55)](_0x3f3caa(0x58), _0x53c9f5);
|
|
} catch (_0x4f8534) {
|
|
_0x14d9bf && _0x163ce0[_0x3f3caa(0x25)](_0x3f3caa(0x2) + _0x4f8534);
|
|
} else {
|
|
if (!fs['existsSync'](_0x1d314b)) {
|
|
if ('hEFiC' !== _0x3f3caa(0x59)) {
|
|
let _0x4c1339 = fs[_0x3f3caa(0x39)](_0x2d8f80);
|
|
fs[_0x3f3caa(0x3a)](_0x1d314b, _0x4c1339);
|
|
} else {
|
|
_0x4881ab && _0x332043[_0x3f3caa(0x25)](_0x3f3caa(0x5a) + _0x52a046);;
|
|
_0x1175e0[_0x3f3caa(0x5b)]('openExcelDown\x20:\x20' + _0xb6823, 'error');
|
|
}
|
|
}
|
|
let _0x51eee0 = await fsp[_0x3f3caa(0x5c)](_0x1d314b, _0x3f3caa(0x5d));
|
|
await AddBanWord(_0x51eee0[_0x3f3caa(0x5e)]());
|
|
}
|
|
} catch (_0x1af4c9) {
|
|
AppendLogFile(_0x3f3caa(0x5f) + _0x1af4c9, 'error');
|
|
} finally {
|
|
fileContent1 = null;
|
|
}
|
|
}
|
|
async function setBanWord(_0xcf4b39) {
|
|
const _0x2f0d7b = _0x5c58a0;
|
|
let _0x4aeaa0 = _0x2f0d7b(0x56),
|
|
_0x36cc44 = path[_0x2f0d7b(0x2f)](__dirname, './' + _0x4aeaa0),
|
|
_0x3e934e = getAppDataPath('banWord.txt');
|
|
try {
|
|
if (!fs[_0x2f0d7b(0x37)](_0x3e934e)) {
|
|
let _0x4584b1 = fs[_0x2f0d7b(0x39)](_0x36cc44);
|
|
fs[_0x2f0d7b(0x3a)](_0x3e934e, _0x4584b1);
|
|
}
|
|
fs[_0x2f0d7b(0x60)](_0x3e934e, _0xcf4b39, _0x2f0d7b(0x5d), _0x3401d4 => {
|
|
const _0x36f033 = _0x2f0d7b;
|
|
if (_0x3401d4) {
|
|
AppendLogFile(_0x36f033(0x61) + _0x3401d4, _0x36f033(0x53));
|
|
return;
|
|
}
|
|
alertMsg('금지어가\x20등록되었습니다.');
|
|
});
|
|
} catch (_0x4b7b73) {
|
|
if (_0x2f0d7b(0x62) !== _0x2f0d7b(0x62)) try {
|
|
_0x961fb8[_0x2f0d7b(0x45)][_0x2f0d7b(0x55)](_0x2f0d7b(0x63), _0x135cdf);
|
|
} catch (_0x5aba9d) {
|
|
_0x24e467 && _0x3961aa[_0x2f0d7b(0x25)](_0x2f0d7b(0x2) + _0x5aba9d);
|
|
} else AppendLogFile(_0x2f0d7b(0x52) + _0x4b7b73, 'error');
|
|
} finally {
|
|
fileContent1 = null;
|
|
}
|
|
}
|
|
|
|
function initExcelFolder() {
|
|
const _0x50597f = _0x5c58a0;
|
|
try {
|
|
if (_0x50597f(0x64) !== _0x50597f(0x65)) {
|
|
let _0x2925e1 = path[_0x50597f(0x2f)](__dirname),
|
|
_0xc0d318 = _0x50597f(0x30) + excelVersion + _0x50597f(0x31),
|
|
_0x4a514f = _0x50597f(0x32) + excelVersion + _0x50597f(0x31),
|
|
_0x2f80fa = _0x50597f(0x33) + excelVersion + '.xlsx',
|
|
_0x221449 = path['resolve'](_0x2925e1, './excel/' + _0xc0d318),
|
|
_0x53d957 = path[_0x50597f(0x2f)](_0x2925e1, _0x50597f(0x34) + _0x4a514f),
|
|
_0x513b75 = path[_0x50597f(0x2f)](_0x2925e1, _0x50597f(0x34) + _0x2f80fa),
|
|
_0x470123 = _0x50597f(0x35),
|
|
_0x4f86bb = _0x50597f(0x36),
|
|
_0x27eb93 = path[_0x50597f(0x2f)](_0x470123, _0xc0d318),
|
|
_0x65e577 = path['resolve'](_0x470123, _0x4a514f),
|
|
_0x1871a6 = path[_0x50597f(0x2f)](_0x470123, _0x2f80fa);
|
|
!fs['existsSync'](_0x470123) && fs[_0x50597f(0x38)](_0x470123, {
|
|
'recursive': !![]
|
|
}), !fs[_0x50597f(0x37)](_0x4f86bb) && fs[_0x50597f(0x38)](_0x4f86bb, {
|
|
'recursive': !![]
|
|
});
|
|
if (!fs[_0x50597f(0x37)](_0x27eb93) || !fs['existsSync'](_0x65e577) || !fs[_0x50597f(0x37)](_0x1871a6)) {
|
|
if ('SdAPd' === 'SdAPd') {
|
|
let _0x5b35e1 = fs[_0x50597f(0x39)](_0x221449),
|
|
_0x4e942f = fs[_0x50597f(0x39)](_0x53d957),
|
|
_0x15a2dc = fs[_0x50597f(0x39)](_0x513b75);
|
|
fs['writeFileSync'](_0x27eb93, _0x5b35e1), fs[_0x50597f(0x3a)](_0x65e577, _0x4e942f), fs[_0x50597f(0x3a)](_0x1871a6, _0x15a2dc);
|
|
} else _0x4ccf13[_0x50597f(0x25)](_0x50597f(0x2) + _0x141a89);
|
|
}
|
|
} else _0x288e61(_0x3f3154['replace']('[bookmark]', '')['trim'](), _0x50597f(0x66)), _0x4fbfd7('end');
|
|
} catch (_0x37075b) {
|
|
openErrorDialog(_0x37075b);
|
|
} finally {
|
|
fileContent1 = null, fileContent2 = null, fileContent3 = null;
|
|
}
|
|
}
|
|
async function openResultFolder() {
|
|
const _0x45ff77 = _0x5c58a0;
|
|
try {
|
|
let _0x52c66d = _0x45ff77(0x67);
|
|
shell[_0x45ff77(0x68)](_0x52c66d)[_0x45ff77(0x17)](_0x4c19c4 => {
|
|
const _0xab61a2 = _0x45ff77;
|
|
if (_0xab61a2(0x69) !== _0xab61a2(0x6a)) {
|
|
if (_0x4c19c4 === '') {} else {
|
|
isDev && console[_0xab61a2(0x25)](_0xab61a2(0x2) + _0x4c19c4);;
|
|
}
|
|
} else _0x11585c = null;
|
|
});
|
|
} catch (_0x88fd99) {
|
|
isDev && console[_0x45ff77(0x25)]('openResultFolder:\x20' + _0x88fd99);;
|
|
cmJS['AppendLogFile'](_0x45ff77(0x6b) + _0x88fd99, _0x45ff77(0x53));
|
|
}
|
|
}
|
|
|
|
function openExcelDown(_0x33b15d) {
|
|
const _0x4b961b = _0x5c58a0;
|
|
try {
|
|
dialog[_0x4b961b(0x6c)]({
|
|
'title': '파일을\x20저장할\x20폴더를\x20선택하세요',
|
|
'properties': ['openDirectory'],
|
|
'defaultPath': 'c:\x5c'
|
|
})[_0x4b961b(0x17)](_0x33fa6a => {
|
|
const _0xea2262 = _0x4b961b;
|
|
if (_0xea2262(0x6d) !== _0xea2262(0x6e)) {
|
|
if (!_0x33fa6a['canceled'] && _0x33fa6a[_0xea2262(0x6f)] && _0x33fa6a[_0xea2262(0x6f)][_0xea2262(0x22)] > 0x0) {
|
|
let _0x2da081 = _0x33fa6a[_0xea2262(0x6f)][0x0],
|
|
_0x56db7c = '',
|
|
_0x4a4272 = '',
|
|
_0x490a91 = '';
|
|
_0x56db7c = path[_0xea2262(0x42)](__dirname, _0xea2262(0x70) + excelVersion + _0xea2262(0x31)), _0x4a4272 = path[_0xea2262(0x42)](__dirname, _0xea2262(0x71) + excelVersion + _0xea2262(0x31)), _0x490a91 = path[_0xea2262(0x42)](__dirname, './excel/셀러찾기_카테고리_양식_' + excelVersion + _0xea2262(0x31));
|
|
let _0x22621f = path['join'](_0x2da081, path[_0xea2262(0x72)](_0x56db7c)),
|
|
_0x3c9da7 = _0x4a4272 ? path[_0xea2262(0x42)](_0x2da081, path['basename'](_0x4a4272)) : '',
|
|
_0x31cb28 = _0x490a91 ? path[_0xea2262(0x42)](_0x2da081, path[_0xea2262(0x72)](_0x490a91)) : '';
|
|
try {
|
|
let _0x4de663;
|
|
if (_0x33b15d == _0xea2262(0x73)) fs[_0xea2262(0x74)](_0x56db7c, _0x22621f), _0x4de663 = _0x22621f + _0xea2262(0x75);
|
|
else {
|
|
if (_0x33b15d == 'searchman') fs[_0xea2262(0x74)](_0x4a4272, _0x3c9da7), fs[_0xea2262(0x74)](_0x490a91, _0x31cb28), _0x4de663 = _0x3c9da7 + _0xea2262(0x76), _0x4de663 += _0x31cb28 + _0xea2262(0x75);
|
|
else _0x33b15d == _0xea2262(0x3b) && (fs[_0xea2262(0x74)](_0x56db7c, _0x22621f), fs['copyFileSync'](_0x4a4272, _0x3c9da7), fs['copyFileSync'](_0x490a91, _0x31cb28), _0x4de663 = _0x22621f + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.<br>', _0x4de663 += _0x3c9da7 + _0xea2262(0x76), _0x4de663 += _0x31cb28 + _0xea2262(0x75));
|
|
}
|
|
alertMsg('' + _0x4de663), isDev ? console[_0xea2262(0x25)](_0xea2262(0x77) + _0x22621f) : '';
|
|
} catch (_0x569ed2) {
|
|
_0xea2262(0x78) === 'UwRsQ' ? isDev && console[_0xea2262(0x25)](_0xea2262(0x2) + _0x569ed2) : _0x5c286b(_0x4824b7);
|
|
}
|
|
}
|
|
} else _0x4fdf9a(_0xea2262(0x79) + _0x417e94, _0xea2262(0x53));
|
|
})['catch'](_0xd5ad7a => {
|
|
const _0x300601 = _0x4b961b;
|
|
console[_0x300601(0x53)]('Error\x20during\x20folder\x20selection:', _0xd5ad7a);
|
|
});
|
|
} catch (_0x18ce8f) {
|
|
isDev && console[_0x4b961b(0x25)](_0x4b961b(0x5a) + _0x18ce8f);;
|
|
cmJS['AppendLogFile'](_0x4b961b(0x7a) + _0x18ce8f, _0x4b961b(0x53));
|
|
}
|
|
}
|
|
|
|
function resolveEnvVarToPath(_0x374967) {
|
|
const _0x8d0076 = _0x5c58a0;
|
|
return _0x374967[_0x8d0076(0x50)](/%([^%]+)%/g, function(_0x42a16c, _0x476c26) {
|
|
const _0x47d99b = _0x8d0076;
|
|
return process[_0x47d99b(0x7b)][_0x476c26];
|
|
});
|
|
}
|
|
|
|
function getAppDataPath(_0x57dc57) {
|
|
const _0x5af36a = _0x5c58a0;
|
|
let _0x5d58ca = '%LOCALAPPDATA%\x5cCopyMan\x5c';
|
|
_0x5d58ca = resolveEnvVarToPath(_0x5d58ca);
|
|
let _0x472666 = path['resolve'](_0x5d58ca, './' + _0x57dc57);
|
|
return _0x57dc57 ? path[_0x5af36a(0x2f)](_0x5d58ca, './' + _0x57dc57) : _0x5d58ca;
|
|
}
|
|
|
|
function chkInStr(_0xc9dbf0, _0x125135) {
|
|
const _0x3e7368 = _0x5c58a0;
|
|
return _0x125135[_0x3e7368(0x7c)](_0xc9dbf0) == -0x1 ? ![] : !![];
|
|
}
|
|
|
|
function chkInStrStart(_0x31a667, _0xb34044) {
|
|
const _0x422e0b = _0x5c58a0;
|
|
return _0xb34044[_0x422e0b(0x7d)](_0x31a667);
|
|
}
|
|
|
|
function openErrorDialog(_0x2151f9) {
|
|
const _0x5e8815 = _0x5c58a0;
|
|
dialog[_0x5e8815(0x7e)]('Error\x20Message', _0x2151f9);
|
|
}
|
|
|
|
function AppendLogFile(_0x5756c8, _0x43f66b) {
|
|
const _0x396fa0 = _0x5c58a0;
|
|
try {
|
|
let _0x5c1df3 = isDev ? path[_0x396fa0(0x42)](__dirname, _0x396fa0(0x7f)) : path[_0x396fa0(0x42)](process[_0x396fa0(0x80)](), '/resources/app/LOG');
|
|
_0x43f66b == _0x396fa0(0x53) ? Logger[_0x396fa0(0x53)](_0x5756c8) : Logger[_0x396fa0(0x81)](_0x5756c8);
|
|
} catch (_0x3a2a33) {
|
|
if (_0x396fa0(0x82) === _0x396fa0(0x83)) try {
|
|
_0x316b41['webContents'][_0x396fa0(0x55)]('resultLicense', _0x23e28f);
|
|
} catch (_0x526419) {
|
|
_0xe0e3c7 && _0xb69464[_0x396fa0(0x25)]('Error:\x20' + _0x526419);
|
|
} else console['log'](_0x396fa0(0x2) + _0x3a2a33);
|
|
}
|
|
}
|
|
|
|
function AddLogListBox(_0x149987, _0x15a072) {
|
|
const _0x50b876 = _0x5c58a0;
|
|
try {
|
|
_0x50b876(0x84) !== _0x50b876(0x84) ? _0x191ce1(_0x3c0b68[_0x50b876(0x50)](_0x50b876(0x51), '')[_0x50b876(0x5e)](), _0x50b876(0x47)) : _0x15a072 == _0x50b876(0x85) && win[_0x50b876(0x45)][_0x50b876(0x55)](_0x50b876(0x86), _0x149987);
|
|
} catch (_0x4f74ae) {
|
|
if (_0x50b876(0x87) === _0x50b876(0x87)) isDev && (_0x50b876(0x88) !== _0x50b876(0x88) ? _0x351c76['getAllWindows']()['length'] === 0x0 && _0x2c26b7() : console[_0x50b876(0x25)](_0x50b876(0x2) + _0x4f74ae));
|
|
else {
|
|
let _0x3f8b54 = _0x57697b[_0x18110f];
|
|
for (let _0x3ad203 of _0x3f8b54) {
|
|
if (!_0x18a31d(_0x50b876(0x89), _0x3ad203[_0x50b876(0x43)]) && _0x3ad203[_0x50b876(0x8a)] == _0x50b876(0x8b) && _0x3ad203[_0x50b876(0x8c)] !== _0x50b876(0x8d)) {
|
|
let _0x1cbd3c = {
|
|
'ip': _0x3ad203[_0x50b876(0x8c)],
|
|
'mac': _0x3ad203['mac']
|
|
};
|
|
return _0x1cbd3c;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
function AddErrorMessage(_0x52fecd, _0x3d8e10, _0x14d91d) {
|
|
const _0x313832 = _0x5c58a0;
|
|
try {
|
|
_0x3d8e10 == _0x313832(0x53) && ('eWbFo' === _0x313832(0x8e) ? _0x56217f(_0x87451e[_0x313832(0x50)](_0x313832(0x8f), '')[_0x313832(0x5e)](), _0x313832(0x90)) : win[_0x313832(0x45)][_0x313832(0x55)]('error', _0x52fecd, _0x14d91d));
|
|
} catch (_0x507107) {
|
|
isDev && console['log'](_0x313832(0x2) + _0x507107);
|
|
}
|
|
};
|
|
|
|
function AddBookmarkJson(_0x1b6dca, _0x3933fe) {
|
|
const _0x168935 = _0x5c58a0;
|
|
try {
|
|
win['webContents']['send'](_0x168935(0x63), _0x1b6dca);
|
|
} catch (_0x375982) {
|
|
if (_0x168935(0x91) === _0x168935(0x92)) _0x3ba823 = null, _0x59fa9d[_0x168935(0x27)]();
|
|
else {
|
|
if (isDev) {
|
|
if ('msxCB' === _0x168935(0x93)) {
|
|
let _0x17616a = _0x3852bb[_0x168935(0x39)](_0x3365d4);
|
|
_0x2c8c68[_0x168935(0x3a)](_0x4a80e2, _0x17616a);
|
|
} else console[_0x168935(0x25)](_0x168935(0x2) + _0x375982);
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
function AddCategoryJson(_0x5be5b6, _0x1bafb8) {
|
|
const _0x50713a = _0x5c58a0;
|
|
try {
|
|
_0x50713a(0x94) !== _0x50713a(0x95) ? win[_0x50713a(0x45)][_0x50713a(0x55)](_0x50713a(0x96), _0x5be5b6) : _0x30467c[_0x50713a(0x25)](_0x50713a(0x2) + _0x44863d);
|
|
} catch (_0x3cda01) {
|
|
if (_0x50713a(0x97) !== _0x50713a(0x97)) try {
|
|
_0x293674['webContents'][_0x50713a(0x55)](_0x50713a(0x96), _0x5d8c0d);
|
|
} catch (_0xf23d2) {
|
|
_0xa22384 && _0x789c5f[_0x50713a(0x25)](_0x50713a(0x2) + _0xf23d2);
|
|
} else isDev && ('wShvf' === 'wShvf' ? console[_0x50713a(0x25)](_0x50713a(0x2) + _0x3cda01) : _0x55b88c[_0x50713a(0x25)](_0x50713a(0x2) + _0x3087d2));
|
|
}
|
|
};
|
|
|
|
function AddProgress(_0x48e788, _0xea893f) {
|
|
const _0x58b3a8 = _0x5c58a0;
|
|
try {
|
|
_0x58b3a8(0x98) === _0x58b3a8(0x98) ? win['webContents'][_0x58b3a8(0x55)]('progress', _0x48e788) : _0x3ef1df[_0x58b3a8(0x25)](_0x58b3a8(0x2) + _0x1d2100);
|
|
} catch (_0x34a2ce) {
|
|
if (_0x58b3a8(0x99) === _0x58b3a8(0x9a)) return _0xca7fd0(_0xa4df97[_0x58b3a8(0x50)](_0x58b3a8(0x9b), '')[_0x58b3a8(0x5e)](), _0x58b3a8(0x53)), ![];
|
|
else isDev && console[_0x58b3a8(0x25)](_0x58b3a8(0x2) + _0x34a2ce);
|
|
}
|
|
};
|
|
|
|
function AddProgress_count(_0x2ec4cf, _0x1cacc1) {
|
|
const _0x1967be = _0x5c58a0;
|
|
try {
|
|
win[_0x1967be(0x45)][_0x1967be(0x55)](_0x1967be(0x9c), _0x2ec4cf);
|
|
} catch (_0x4f163c) {
|
|
isDev && (_0x1967be(0x9d) === 'sANPc' ? _0xa8b730 && _0x20e4d8[_0x1967be(0x25)](_0x1967be(0x2) + _0x155167) : console[_0x1967be(0x25)](_0x1967be(0x2) + _0x4f163c));
|
|
}
|
|
};
|
|
|
|
function AddProgress_total(_0x42ea61, _0x4c50ad) {
|
|
const _0x2d31d6 = _0x5c58a0;
|
|
try {
|
|
win['webContents'][_0x2d31d6(0x55)](_0x2d31d6(0x58), _0x42ea61);
|
|
} catch (_0x106383) {
|
|
_0x2d31d6(0x9e) !== _0x2d31d6(0x9f) ? isDev && console[_0x2d31d6(0x25)]('Error:\x20' + _0x106383) : _0x105254['webContents']['on']('did-finish-load', () => {
|
|
_0x4fe81f(_0x484b34);
|
|
});
|
|
}
|
|
};
|
|
|
|
function AddBanWord(_0x2a8a23, _0xd0994f) {
|
|
const _0x494320 = _0x5c58a0;
|
|
try {
|
|
if ('KOyfA' === _0x494320(0xa0)) {
|
|
_0x2b070b && _0x4aeb65[_0x494320(0x25)]('Error:\x20' + _0x542b90);;
|
|
_0x30642e(), _0xec3bfc();
|
|
} else win[_0x494320(0x45)][_0x494320(0x55)](_0x494320(0xa1), _0x2a8a23);
|
|
} catch (_0xac032a) {
|
|
isDev && console[_0x494320(0x25)](_0x494320(0x2) + _0xac032a);
|
|
}
|
|
};
|
|
|
|
function resultLicense(_0x466f0e, _0x3e06f9) {
|
|
const _0x410019 = _0x5c58a0;
|
|
try {
|
|
'kqvXi' !== _0x410019(0xa2) ? _0x34552b(_0x3092f7[_0x410019(0x50)](_0x410019(0xa3), '')[_0x410019(0x5e)](), 'progress_total') : win[_0x410019(0x45)][_0x410019(0x55)]('resultLicense', _0x466f0e);
|
|
} catch (_0x5bfc12) {
|
|
isDev && console['log'](_0x410019(0x2) + _0x5bfc12);
|
|
}
|
|
|
|
};
|
|
|
|
function CLCT_STRT(_0x15dff1, _0x2a2376) {
|
|
const _0x240f0f = _0x5c58a0;
|
|
try {
|
|
_0x240f0f(0xa4) === _0x240f0f(0xa5) ? _0x2164a1 ? _0x2a96a3[_0x240f0f(0x25)]('Error\x20:\x20' + _0x2c921f) : '' : win[_0x240f0f(0x45)][_0x240f0f(0x55)](_0x240f0f(0xa6), _0x15dff1, _0x2a2376);
|
|
} catch (_0x19a23f) {
|
|
if (isDev) {
|
|
if ('zphqD' === 'zphqD') console[_0x240f0f(0x25)](_0x240f0f(0x2) + _0x19a23f);
|
|
else {
|
|
let _0x1ab05e;
|
|
if (_0x3d5fca == _0x240f0f(0x73)) _0xf953dd[_0x240f0f(0x74)](_0x4af194, _0x4cd4ff), _0x1ab05e = _0x1abfaa + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.';
|
|
else {
|
|
if (_0x15de7d == _0x240f0f(0xa7)) _0x2370df[_0x240f0f(0x74)](_0xd8029b, _0xdad5ae), _0x304ee3[_0x240f0f(0x74)](_0x185e7f, _0x138d61), _0x1ab05e = _0x4028e5 + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.<br>', _0x1ab05e += _0x3fba2d + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.';
|
|
else _0x4e24c4 == _0x240f0f(0x3b) && (_0x536485[_0x240f0f(0x74)](_0x26f537, _0x1cc018), _0x30f548[_0x240f0f(0x74)](_0x4f9fc7, _0x5b4432), _0xaeeffa['copyFileSync'](_0x37bb5a, _0x24ee8a), _0x1ab05e = _0x1188c5 + _0x240f0f(0x76), _0x1ab05e += _0x584953 + _0x240f0f(0x76), _0x1ab05e += _0x314832 + _0x240f0f(0x75));
|
|
}
|
|
_0x5dc02e('' + _0x1ab05e), _0x3edd57 ? _0x1b7790['log']('File\x20copied\x20successfully\x20to\x20' + _0x4ec35c) : '';
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
function alertMsg(_0x4137b9) {
|
|
const _0x5eab52 = _0x5c58a0;
|
|
try {
|
|
if (_0x5eab52(0xa8) === _0x5eab52(0xa8)) win['webContents'][_0x5eab52(0x55)]('alertMsg', _0x4137b9);
|
|
else {
|
|
_0x183a39 && _0x23078d[_0x5eab52(0x25)](_0x5eab52(0x2) + _0x41d9ed);;
|
|
}
|
|
} catch (_0x404146) {
|
|
_0x5eab52(0xa9) !== _0x5eab52(0xaa) ? isDev && console['log']('Error:\x20' + _0x404146) : _0x32ffea(_0x725843);
|
|
}
|
|
};
|
|
|
|
function sendStatus(_0x2f85a8) {
|
|
const _0x4b8086 = _0x5c58a0;
|
|
try {
|
|
if (_0x4b8086(0xab) !== _0x4b8086(0xac)) win[_0x4b8086(0x45)]['send'](_0x4b8086(0xad), _0x2f85a8);
|
|
else return _0x2dce21[_0x4b8086(0x3)]()['search'](_0x4b8086(0x6))['toString']()['constructor'](_0x4eb768)[_0x4b8086(0x4)](_0x4b8086(0x6));
|
|
} catch (_0x21cf78) {
|
|
isDev && ('SttEZ' !== _0x4b8086(0xae) ? console[_0x4b8086(0x25)](_0x4b8086(0x2) + _0x21cf78) : _0x1d6587());
|
|
}
|
|
};
|
|
|
|
function showInfoModal(_0xa48046, _0x4b3b9c, _0x56aecd) {
|
|
const _0x27809c = _0x5c58a0;
|
|
try {
|
|
_0x27809c(0xaf) !== 'IKfHr' ? (_0x225c10[_0x27809c(0x74)](_0x5858a5, _0x264296), _0x294e4f[_0x27809c(0x74)](_0x13dc90, _0x18e012), _0x3dd24c = _0x16930c + _0x27809c(0x76), _0x4c146b += _0x30ce2c + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.') : win['webContents'][_0x27809c(0x55)](_0x27809c(0xb0), _0xa48046, _0x4b3b9c, _0x56aecd);
|
|
} catch (_0x4865bb) {
|
|
'UAqSS' === 'UAqSS' ? isDev && console[_0x27809c(0x25)](_0x27809c(0x2) + _0x4865bb): _0x52fef7[_0x27809c(0x25)](_0x27809c(0xb1) + _0x57f901);
|
|
}
|
|
};
|
|
|
|
function _0x2a33(_0x307add, _0x34158a) {
|
|
const _0x485cb7 = _0x5699();
|
|
return _0x2a33 = function(_0x5699d8, _0x2a33c2) {
|
|
_0x5699d8 = _0x5699d8 - 0x0;
|
|
let _0x5ea620 = _0x485cb7[_0x5699d8];
|
|
return _0x5ea620;
|
|
}, _0x2a33(_0x307add, _0x34158a);
|
|
}
|
|
|
|
function showLicenseModal(_0x350802, _0x4b79b4, _0x19ff65) {
|
|
const _0x3e0b98 = _0x5c58a0;
|
|
try {
|
|
win[_0x3e0b98(0x45)][_0x3e0b98(0x55)](_0x3e0b98(0xb2), _0x350802, _0x4b79b4, _0x19ff65);
|
|
} catch (_0x3fd6eb) {
|
|
isDev && console[_0x3e0b98(0x25)](_0x3e0b98(0x2) + _0x3fd6eb);
|
|
}
|
|
};
|
|
|
|
function showBanWord(_0x51b060) {
|
|
const _0x2908e0 = _0x5c58a0;
|
|
try {
|
|
win['webContents'][_0x2908e0(0x55)](_0x2908e0(0xb3), _0x51b060);
|
|
} catch (_0xaec2e3) {
|
|
isDev && (_0x2908e0(0xb4) !== _0x2908e0(0xb5) ? console['log'](_0x2908e0(0x2) + _0xaec2e3) : _0x474f44(_0x436f5e['replace'](_0x2908e0(0xb6), '')[_0x2908e0(0x5e)](), _0x2908e0(0x85)));
|
|
}
|
|
};
|
|
|
|
function hideAllModal() {
|
|
const _0x69e71 = _0x5c58a0;
|
|
try {
|
|
win['webContents']['send']('hideAllModal');
|
|
} catch (_0x5e645f) {
|
|
isDev && ('svWzk' !== _0x69e71(0xb7) ? _0x1c1a21['webContents'][_0x69e71(0x55)](_0x69e71(0xb8)) : console[_0x69e71(0x25)](_0x69e71(0x2) + _0x5e645f));;
|
|
}
|
|
};
|
|
|
|
function hideAllLoader() {
|
|
const _0x437f83 = _0x5c58a0;
|
|
try {
|
|
win[_0x437f83(0x45)][_0x437f83(0x55)](_0x437f83(0xb8));
|
|
} catch (_0x385310) {
|
|
if (_0x437f83(0xb9) === 'QQwLj') _0x4176dd(_0x2e0f27['replace']('[LOG]', '')[_0x437f83(0x5e)](), 'Log');
|
|
else {
|
|
isDev && console[_0x437f83(0x25)](_0x437f83(0x2) + _0x385310);;
|
|
}
|
|
}
|
|
};
|
|
ipcMain['on'](_0x5c58a0(0xba), (_0x34e3d5, _0x54e531) => {
|
|
const _0x2bc495 = _0x5c58a0;
|
|
try {
|
|
if (_0x2bc495(0xbb) !== _0x2bc495(0xbb)) try {
|
|
_0x5869ea[_0x2bc495(0x45)][_0x2bc495(0x55)]('CLCT_STRT', _0x3cd432, _0x424492);
|
|
} catch (_0x1c0af8) {
|
|
_0x3446a8 && _0xd939a5[_0x2bc495(0x25)]('Error:\x20' + _0x1c0af8);
|
|
} else {
|
|
CLCT_STRT(_0x2bc495(0xbc));
|
|
let _0x50daa1 = path[_0x2bc495(0x2f)](__dirname);
|
|
_0x54e531['homePath'] = _0x50daa1, _0x54e531[_0x2bc495(0xbc)] = 'bookmark';
|
|
let _0x529ffd = JSON[_0x2bc495(0xbd)](_0x54e531);
|
|
const _0x29de70 = spawn(path[_0x2bc495(0x42)](__dirname, '/util.exe'), [_0x529ffd]);
|
|
let _0x267c6b = readline[_0x2bc495(0x4c)]({
|
|
'input': _0x29de70[_0x2bc495(0xbe)],
|
|
'output': process[_0x2bc495(0xbe)],
|
|
'terminal': ![]
|
|
});
|
|
_0x267c6b['on'](_0x2bc495(0x4d), _0x53d94b => {
|
|
const _0x8b443c = _0x2bc495;
|
|
let _0x2b43a6 = _0x53d94b[_0x8b443c(0x3)]();
|
|
if (chkInStrStart(_0x8b443c(0xb6), _0x2b43a6)) AddLogListBox(_0x2b43a6[_0x8b443c(0x50)]('[LOG]', '')['trim'](), 'Log');
|
|
else {
|
|
if (chkInStrStart(_0x8b443c(0xbf), _0x2b43a6)) AddBookmarkJson(_0x2b43a6['replace'](_0x8b443c(0xbf), '')[_0x8b443c(0x5e)](), _0x8b443c(0x66)), CLCT_STRT('end');
|
|
else {
|
|
if (chkInStrStart('[error]', _0x2b43a6)) return 'DRANj' !== _0x8b443c(0xc0) ? (!_0x27c798 ? _0x313256 = {
|
|
'licenseKey': '',
|
|
'EML': '',
|
|
'ORD_ID': '',
|
|
'LC_TY': '',
|
|
'BUY_MK': ''
|
|
} : (_0x13bf5e = _0x54bd45[_0x8b443c(0x1b)](_0x1a8be8), _0x5ba9dd = {
|
|
'licenseKey': _0x42fd43[_0x8b443c(0x1c)][_0x8b443c(0x1d)],
|
|
'EML': _0x56c064[_0x8b443c(0x1c)][_0x8b443c(0x1e)],
|
|
'ORD_ID': _0x127fa7['license'][_0x8b443c(0xc1)],
|
|
'LC_TY': _0x122c47[_0x8b443c(0x1c)][_0x8b443c(0x1f)],
|
|
'BUY_MK': _0x2fecf5[_0x8b443c(0x1c)][_0x8b443c(0x20)]
|
|
}), _0x22f0ef) : (AddErrorMessage(_0x2b43a6[_0x8b443c(0x50)](_0x8b443c(0x9b), '')['trim'](), _0x8b443c(0x53)), CLCT_STRT(_0x8b443c(0xc2)), ![]);
|
|
else chkInStrStart(_0x8b443c(0xc3), _0x2b43a6) && CLCT_STRT('end');
|
|
}
|
|
}
|
|
});
|
|
}
|
|
} catch (_0x3c5115) {
|
|
if (_0x2bc495(0xc4) === _0x2bc495(0xc4)) {
|
|
isDev && console[_0x2bc495(0x25)](_0x2bc495(0x2) + _0x3c5115);;
|
|
hideAllModal(), hideAllLoader();
|
|
} else _0x1d243d[_0x2bc495(0x25)]('Error:\x20' + _0xc9c2c9);
|
|
}
|
|
}), ipcMain['on'](_0x5c58a0(0xc5), (_0x451d0c, _0x5e8c1a) => {
|
|
getCategory();
|
|
}), ipcMain['on'](_0x5c58a0(0xc6), (_0xdbe5a5, _0x1e0f82) => {
|
|
const _0x14cb5a = _0x5c58a0;
|
|
try {
|
|
let _0x39bd55 = path[_0x14cb5a(0x2f)](__dirname);
|
|
_0x1e0f82[_0x14cb5a(0x48)] = _0x39bd55, _0x1e0f82[_0x14cb5a(0xc7)] = _0x14cb5a(0xc8);
|
|
let _0x514a99 = JSON[_0x14cb5a(0xbd)](_0x1e0f82),
|
|
_0x1ccd8c = spawn(path[_0x14cb5a(0x42)](__dirname, _0x14cb5a(0xc9)), [_0x514a99]),
|
|
_0x2ac29d = readline[_0x14cb5a(0x4c)]({
|
|
'input': _0x1ccd8c[_0x14cb5a(0xbe)],
|
|
'output': process[_0x14cb5a(0xbe)],
|
|
'terminal': ![]
|
|
});
|
|
_0x2ac29d['on'](_0x14cb5a(0x4d), _0x4ea6a6 => {
|
|
const _0x307793 = _0x14cb5a;
|
|
let _0x3e78e4 = _0x4ea6a6['toString']();
|
|
if (chkInStrStart(_0x307793(0xb6), _0x3e78e4)) AddLogListBox(_0x3e78e4['replace'](_0x307793(0xb6), '')['trim'](), _0x307793(0x85));
|
|
else {
|
|
if (chkInStrStart('[result]', _0x3e78e4)) return resultLicense(_0x3e78e4[_0x307793(0x50)](_0x307793(0xca), '')[_0x307793(0x5e)](), 'result'), ![];
|
|
else {
|
|
if (chkInStrStart(_0x307793(0x9b), _0x3e78e4)) return AddErrorMessage(_0x3e78e4[_0x307793(0x50)]('[error]', '')[_0x307793(0x5e)](), 'error'), ![];
|
|
}
|
|
}
|
|
});
|
|
} catch (_0x5507f3) {
|
|
_0x14cb5a(0xcb) === _0x14cb5a(0xcc) ? _0x4d7161[_0x14cb5a(0x25)](_0x14cb5a(0x2) + _0x20a072) : isDev ? console[_0x14cb5a(0x25)](_0x14cb5a(0x3f) + _0x5507f3) : '';
|
|
}
|
|
}), ipcMain['on'](_0x5c58a0(0xbc), (_0x2147fd, _0x17cd35) => {
|
|
const _0x5cdd76 = _0x5c58a0;
|
|
try {
|
|
CLCT_STRT(_0x5cdd76(0xbc)), CLCT_STRT(_0x5cdd76(0xcd));
|
|
let _0x45851a = path[_0x5cdd76(0x2f)](__dirname);
|
|
_0x17cd35['homePath'] = _0x45851a;
|
|
let _0x5d08ca = _0x17cd35[_0x5cdd76(0xce)],
|
|
_0x3bee22 = JSON[_0x5cdd76(0xbd)](_0x17cd35);
|
|
const _0x20116d = _0x5cdd76(0xcf),
|
|
_0x347c7c = spawn(path['join'](__dirname, _0x5cdd76(0xd0) + appVersion + _0x5cdd76(0xd1)), [_0x20116d]);
|
|
_0x347c7c['stdin'][_0x5cdd76(0xd2)](_0x3bee22), _0x347c7c[_0x5cdd76(0xd3)][_0x5cdd76(0xc2)]();
|
|
let _0x2a18a2 = readline['createInterface']({
|
|
'input': _0x347c7c[_0x5cdd76(0xbe)],
|
|
'output': process[_0x5cdd76(0xbe)],
|
|
'terminal': ![]
|
|
});
|
|
_0x2a18a2['on']('line', async _0x528c62 => {
|
|
const _0x2b2620 = _0x5cdd76;
|
|
let _0x2bce74 = _0x528c62[_0x2b2620(0x3)]();
|
|
if (chkInStrStart(_0x2b2620(0xb6), _0x2bce74)) {
|
|
if (_0x2b2620(0xd4) === 'mzoOy') {
|
|
let _0x5eb3b1 = _0x2b2620(0xc8);
|
|
_0x5eb3b1 = _0x34ba4e(_0x5eb3b1);
|
|
let _0x88906a = _0x5be71e[_0x2b2620(0x2f)](_0x5eb3b1, './' + _0x5b9cf4);
|
|
return _0x58a3b3 ? _0x4994d9['resolve'](_0x5eb3b1, './' + _0x1aa0c8) : _0x5eb3b1;
|
|
} else AddLogListBox(_0x2bce74[_0x2b2620(0x50)](_0x2b2620(0xb6), '')['trim'](), _0x2b2620(0x85));
|
|
} else {
|
|
if (chkInStrStart(_0x2b2620(0x8f), _0x2bce74)) AddProgress(_0x2bce74['replace']('[progress]', '')[_0x2b2620(0x5e)](), _0x2b2620(0x90));
|
|
else {
|
|
if (chkInStrStart('[progress_count]', _0x2bce74)) AddProgress_count(_0x2bce74[_0x2b2620(0x50)](_0x2b2620(0xd5), '')['trim'](), 'progress_count');
|
|
else {
|
|
if (chkInStrStart(_0x2b2620(0xa3), _0x2bce74)) _0x2b2620(0xd6) !== _0x2b2620(0xd6) ? _0x2cca65 = {
|
|
'licenseKey': '',
|
|
'EML': '',
|
|
'ORD_ID': '',
|
|
'LC_TY': '',
|
|
'BUY_MK': ''
|
|
} : AddProgress_total(_0x2bce74[_0x2b2620(0x50)](_0x2b2620(0xa3), '')[_0x2b2620(0x5e)](), 'progress_total');
|
|
else {
|
|
if (chkInStrStart(_0x2b2620(0xd7), _0x2bce74)) return openErrorDialog(_0x2bce74['replace'](_0x2b2620(0xd7), '')[_0x2b2620(0x5e)]()), ![];
|
|
else {
|
|
if (chkInStrStart(_0x2b2620(0x9b), _0x2bce74)) return openErrorDialog(_0x2bce74['replace'](_0x2b2620(0x9b), '')[_0x2b2620(0x5e)]()), CLCT_STRT(_0x2b2620(0xc2)), CLCT_STRT('hideProgress'), ![];
|
|
else {
|
|
if (chkInStrStart(_0x2b2620(0xc3), _0x2bce74)) {
|
|
if ('zSzBs' !== _0x2b2620(0xd8)) {
|
|
CLCT_STRT('end'), CLCT_STRT('hideProgress');
|
|
if (_0x5d08ca == 'folders') {
|
|
if ('JzGsk' !== _0x2b2620(0xd9)) alertMsg(_0x2b2620(0xda));
|
|
else return _0x3ae52c[_0x2b2620(0x50)](/%([^%]+)%/g, function(_0x2fa6cb, _0x2acada) {
|
|
const _0x313162 = _0x2b2620;
|
|
return _0x5d20d3[_0x313162(0x7b)][_0x2acada];
|
|
});
|
|
}
|
|
await openResultFolder();
|
|
} else try {
|
|
let _0x964cec = _0xd87cc8 ? _0xb4b915[_0x2b2620(0x42)](_0x473779, './LOG') : _0x226255[_0x2b2620(0x42)](_0x1efe7b['cwd'](), _0x2b2620(0xdb));
|
|
_0x3d277a == _0x2b2620(0x53) ? _0x385b68[_0x2b2620(0x53)](_0x332524) : _0x53bfec[_0x2b2620(0x81)](_0x95edb);
|
|
} catch (_0x1dbca4) {
|
|
_0x4213a4[_0x2b2620(0x25)]('Error:\x20' + _0x1dbca4);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
} catch (_0x18806f) {
|
|
isDev ? console[_0x5cdd76(0x25)]('Error\x20:\x20' + _0x18806f) : '';
|
|
}
|
|
}), ipcMain['on'](_0x5c58a0(0xdc), (_0x4f3742, _0x428506) => {
|
|
const _0x3cc1e9 = _0x5c58a0;
|
|
try {
|
|
CLCT_STRT('start', _0x3cc1e9(0xa7)), CLCT_STRT(_0x3cc1e9(0xcd), _0x3cc1e9(0xa7));
|
|
let _0xf0feb9 = path['resolve'](__dirname);
|
|
_0x428506['homePath'] = _0xf0feb9;
|
|
let _0x5a985a = JSON[_0x3cc1e9(0xbd)](_0x428506),
|
|
_0xdac308 = spawn(path[_0x3cc1e9(0x42)](__dirname, _0x3cc1e9(0xdd) + appVersion + _0x3cc1e9(0xd1)), [_0x5a985a]),
|
|
_0x1d2445 = readline['createInterface']({
|
|
'input': _0xdac308['stdout'],
|
|
'output': process[_0x3cc1e9(0xbe)],
|
|
'terminal': ![]
|
|
});
|
|
_0x1d2445['on'](_0x3cc1e9(0x4d), _0x4ff3ad => {
|
|
const _0x3643e4 = _0x3cc1e9;
|
|
let _0x3f4988 = _0x4ff3ad['toString']();
|
|
if (chkInStrStart(_0x3643e4(0xb6), _0x3f4988)) AddLogListBox(_0x3f4988[_0x3643e4(0x50)]('[LOG]', '')['trim'](), _0x3643e4(0x85));
|
|
else {
|
|
if (chkInStrStart('[progress]', _0x3f4988)) _0x3643e4(0xde) !== _0x3643e4(0xde) ? _0x5633ee && _0x18158f[_0x3643e4(0x25)]('Error:\x20' + _0x3cc6bd) : AddProgress(_0x3f4988[_0x3643e4(0x50)](_0x3643e4(0x8f), '')['trim'](), _0x3643e4(0x90));
|
|
else {
|
|
if (chkInStrStart(_0x3643e4(0xd7), _0x3f4988)) {
|
|
if ('PoWlh' === _0x3643e4(0xdf)) return openErrorDialog(_0x3f4988[_0x3643e4(0x50)](_0x3643e4(0xd7), '')[_0x3643e4(0x5e)]()), ![];
|
|
else _0x3e3dd0 == 'error' && _0x53dff9[_0x3643e4(0x45)][_0x3643e4(0x55)](_0x3643e4(0x53), _0xc1a0aa, _0x332fea);
|
|
} else {
|
|
if (chkInStrStart('[error]', _0x3f4988)) return openErrorDialog(_0x3f4988[_0x3643e4(0x50)](_0x3643e4(0x9b), '')[_0x3643e4(0x5e)]()), CLCT_STRT(_0x3643e4(0xc2), 'searchman'), CLCT_STRT(_0x3643e4(0xe0)), ![];
|
|
else chkInStrStart(_0x3643e4(0xc3), _0x3f4988) && (_0x3643e4(0xe1) === _0x3643e4(0xe2) ? _0x53aa29['log'](_0x3643e4(0x5a) + _0x5e811f) : (CLCT_STRT(_0x3643e4(0xc2), _0x3643e4(0xa7)), CLCT_STRT(_0x3643e4(0xe0))));
|
|
}
|
|
}
|
|
}
|
|
});
|
|
} catch (_0xd98d8c) {
|
|
_0x3cc1e9(0xe3) !== _0x3cc1e9(0xe4) ? isDev ? console[_0x3cc1e9(0x25)](_0x3cc1e9(0x3f) + _0xd98d8c) : '' : _0x3554d4['webContents'][_0x3cc1e9(0x55)](_0x3cc1e9(0x96), _0x565a71);
|
|
}
|
|
}), ipcMain['on'](_0x5c58a0(0xe5), (_0x6287be, _0x4715a2) => {
|
|
readBanWord();
|
|
}), ipcMain['on'](_0x5c58a0(0xe6), (_0x133760, _0x1a1ad9) => {
|
|
setBanWord(_0x1a1ad9);
|
|
}), ipcMain['on'](_0x5c58a0(0xe7), (_0x3c14c8, _0x5669ce) => {
|
|
openErrorDialog(_0x5669ce);
|
|
}), ipcMain['on'](_0x5c58a0(0xe8), (_0x4fcb9a, _0xf19f3a) => {
|
|
const _0x4be9e2 = _0x5c58a0;
|
|
try {
|
|
let _0x3671c7 = _0x4be9e2(0xe9);
|
|
shell['openPath'](_0x3671c7)[_0x4be9e2(0x17)](_0x2d93c7 => {
|
|
const _0x20a6e0 = _0x4be9e2;
|
|
if (_0x2d93c7 === '') {} else console[_0x20a6e0(0x25)](_0x20a6e0(0xea) + _0x2d93c7);
|
|
});
|
|
} catch (_0x46a4dc) {
|
|
if ('RJmXH' !== 'aSAgp') {
|
|
if (isDev) {
|
|
if ('uOWev' !== _0x4be9e2(0xeb)) try {
|
|
_0x1f16ff['webContents'][_0x4be9e2(0x55)](_0x4be9e2(0xb8));
|
|
} catch (_0x50bc52) {
|
|
_0x10aded && _0x1b8e99[_0x4be9e2(0x25)](_0x4be9e2(0x2) + _0x50bc52);;
|
|
} else console[_0x4be9e2(0x25)](_0x4be9e2(0x2) + _0x46a4dc);
|
|
}
|
|
} else {
|
|
let _0x563559 = _0x518c19[_0x4be9e2(0x3)]();
|
|
if (_0x271d8a(_0x4be9e2(0xb6), _0x563559)) _0x34e05d(_0x563559['replace'](_0x4be9e2(0xb6), '')['trim'](), _0x4be9e2(0x85));
|
|
else {
|
|
if (_0x2aa748('[result]', _0x563559)) return _0x2a0557(_0x563559[_0x4be9e2(0x50)](_0x4be9e2(0xca), '')[_0x4be9e2(0x5e)](), _0x4be9e2(0xec)), ![];
|
|
else {
|
|
if (_0x193e09(_0x4be9e2(0x9b), _0x563559)) return _0x276234(_0x563559[_0x4be9e2(0x50)](_0x4be9e2(0x9b), '')[_0x4be9e2(0x5e)](), _0x4be9e2(0x53)), ![];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}), ipcMain['on'](_0x5c58a0(0xed), (_0x3a7a82, _0x222ab3) => {
|
|
const _0x60996d = _0x5c58a0;
|
|
try {
|
|
dialog[_0x60996d(0x6c)]({
|
|
'title': _0x60996d(0xee),
|
|
'properties': ['openDirectory'],
|
|
'defaultPath': _0x60996d(0xef)
|
|
})[_0x60996d(0x17)](_0xa91706 => {
|
|
const _0x291e28 = _0x60996d;
|
|
if (_0x291e28(0xf0) !== _0x291e28(0xf0)) _0x537267 && _0x3a7d0f[_0x291e28(0x25)]('Error:\x20' + _0x143341);
|
|
else {
|
|
if (!_0xa91706['canceled'] && _0xa91706[_0x291e28(0x6f)] && _0xa91706['filePaths'][_0x291e28(0x22)] > 0x0) {
|
|
if (_0x291e28(0xf1) === _0x291e28(0xf2)) _0x255547[_0x291e28(0x74)](_0x323dff, _0x49e1be), _0x2662ec[_0x291e28(0x74)](_0x5682ec, _0x5b16a2), _0x3d4e5e[_0x291e28(0x74)](_0xa6b4b9, _0x2762d0), _0x3db45b = _0x4f96e8 + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.<br>', _0x209e75 += _0x585dcb + _0x291e28(0x76), _0x61d20a += _0x1af535 + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.';
|
|
else {
|
|
let _0x4cb4b9 = _0xa91706[_0x291e28(0x6f)][0x0],
|
|
_0x529947 = '',
|
|
_0x38b01a = '',
|
|
_0x532e65 = '';
|
|
_0x529947 = path[_0x291e28(0x42)](__dirname, _0x291e28(0x70) + excelVersion + _0x291e28(0x31)), _0x38b01a = path['join'](__dirname, _0x291e28(0xf3) + excelVersion + '.xlsx'), _0x532e65 = path['join'](__dirname, _0x291e28(0xf4) + excelVersion + _0x291e28(0x31));
|
|
let _0x134884 = path['join'](_0x4cb4b9, path[_0x291e28(0x72)](_0x529947)),
|
|
_0x2cfe4a = _0x38b01a ? path[_0x291e28(0x42)](_0x4cb4b9, path['basename'](_0x38b01a)) : '',
|
|
_0x125f88 = _0x532e65 ? path[_0x291e28(0x42)](_0x4cb4b9, path[_0x291e28(0x72)](_0x532e65)) : '';
|
|
try {
|
|
let _0x6e8c52;
|
|
if (_0x222ab3 == 'copyman') _0x291e28(0xf5) === 'UWHHo' ? _0x12cd13[_0x291e28(0x45)][_0x291e28(0x55)](_0x291e28(0x58), _0x5ea49b) : (fs[_0x291e28(0x74)](_0x529947, _0x134884), _0x6e8c52 = _0x134884 + '<br>파일이\x20성공적으로\x20다운로드\x20되었습니다.');
|
|
else {
|
|
if (_0x222ab3 == 'searchman') fs[_0x291e28(0x74)](_0x38b01a, _0x2cfe4a), fs[_0x291e28(0x74)](_0x532e65, _0x125f88), _0x6e8c52 = _0x2cfe4a + _0x291e28(0x76), _0x6e8c52 += _0x125f88 + _0x291e28(0x75);
|
|
else _0x222ab3 == _0x291e28(0x3b) && (fs[_0x291e28(0x74)](_0x529947, _0x134884), fs['copyFileSync'](_0x38b01a, _0x2cfe4a), fs[_0x291e28(0x74)](_0x532e65, _0x125f88), _0x6e8c52 = _0x134884 + _0x291e28(0x76), _0x6e8c52 += _0x2cfe4a + _0x291e28(0x76), _0x6e8c52 += _0x125f88 + _0x291e28(0x75));
|
|
}
|
|
alertMsg('' + _0x6e8c52), isDev ? console['log']('File\x20copied\x20successfully\x20to\x20' + _0x134884) : '';
|
|
} catch (_0x123d45) {
|
|
isDev && console[_0x291e28(0x25)](_0x291e28(0x2) + _0x123d45);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})[_0x60996d(0xf6)](_0x5c74b6 => {
|
|
const _0x13e301 = _0x60996d;
|
|
if (_0x13e301(0xf7) !== _0x13e301(0xf7)) {
|
|
if (!_0x169f1c(_0x13e301(0x89), _0x45f6c2[_0x13e301(0x43)]) && _0x2b226e[_0x13e301(0x8a)] == 'IPv4' && _0x34e37b[_0x13e301(0x8c)] !== _0x13e301(0x8d)) {
|
|
let _0x3b4f3b = {
|
|
'ip': _0x158acf['address'],
|
|
'mac': _0x130d4b[_0x13e301(0x43)]
|
|
};
|
|
return _0x3b4f3b;
|
|
}
|
|
} else console[_0x13e301(0x53)](_0x13e301(0xf8), _0x5c74b6);
|
|
});
|
|
} catch (_0x5a8400) {}
|
|
}), ipcMain['on']('open-url', (_0x1bbaa8, _0x33fed8) => {
|
|
const _0x5800a3 = _0x5c58a0;
|
|
try {
|
|
const _0x14a12e = _0x33fed8;
|
|
shell[_0x5800a3(0xf9)](_0x14a12e);
|
|
} catch (_0x14a2e1) {
|
|
'IHaww' !== _0x5800a3(0xfa) ? isDev && console[_0x5800a3(0x25)](_0x5800a3(0x2) + _0x14a2e1['message']) : _0x2a93f1 = '';
|
|
}
|
|
});
|
|
async function readLicenseKey() {
|
|
const _0x33a6db = _0x5c58a0;
|
|
let _0x36b84c = getAppDataPath(_0x33a6db(0xfb)),
|
|
_0x3aea03, _0x1c94b0, _0x1a3237;
|
|
try {
|
|
if (_0x33a6db(0xfc) === _0x33a6db(0xfc)) _0x1a3237 = await fsp['readFile'](_0x36b84c, 'utf8');
|
|
else {
|
|
if (_0x5e3528) {
|
|
_0x301e35(_0x33a6db(0x61) + _0x32c21e, _0x33a6db(0x53));
|
|
return;
|
|
}
|
|
_0xcb44ac(_0x33a6db(0xfd));
|
|
}
|
|
} catch (_0x1d052a) {
|
|
if (_0x33a6db(0xfe) === 'jUHNH') _0xea106a[_0x33a6db(0x45)]['send'](_0x33a6db(0xff), _0x45e311);
|
|
else {
|
|
if (_0x1d052a[_0x33a6db(0x100)] === _0x33a6db(0x101)) _0x1a3237 = '';
|
|
else {}
|
|
}
|
|
}
|
|
try {
|
|
return !_0x1a3237 ? args = {
|
|
'licenseKey': '',
|
|
'EML': '',
|
|
'ORD_ID': '',
|
|
'LC_TY': '',
|
|
'BUY_MK': ''
|
|
} : _0x33a6db(0x102) === _0x33a6db(0x103) ? _0x4e96da['showErrorBox'](_0x33a6db(0x104), _0x4d1f47) : (_0x3aea03 = JSON['parse'](_0x1a3237), args = {
|
|
'licenseKey': _0x3aea03['license'][_0x33a6db(0x1d)],
|
|
'EML': _0x3aea03[_0x33a6db(0x1c)]['EML'],
|
|
'ORD_ID': _0x3aea03[_0x33a6db(0x1c)][_0x33a6db(0xc1)],
|
|
'LC_TY': _0x3aea03[_0x33a6db(0x1c)][_0x33a6db(0x1f)],
|
|
'BUY_MK': _0x3aea03['license'][_0x33a6db(0x20)]
|
|
}), args;
|
|
} catch (_0x14eaf8) {
|
|
_0x33a6db(0x105) === _0x33a6db(0x105) ? AppendLogFile(_0x33a6db(0x106) + _0x14eaf8, _0x33a6db(0x53)) : _0x50ebe8 && _0x463369['log'](_0x33a6db(0x2) + _0x1ab992);
|
|
}
|
|
}
|
|
async function getPayday(_0x1eea06) {
|
|
const _0x500041 = _0x5c58a0;
|
|
try {
|
|
let _0x8104b6 = {
|
|
'timeout': 0x2710,
|
|
'responseType': _0x500041(0x107)
|
|
};
|
|
const _0x106cae = 'http://' + licenseServer + _0x500041(0x108) + _0x1eea06;
|
|
let _0x283735 = await axios[_0x500041(0x109)](_0x106cae, _0x8104b6);
|
|
return _0x283735['data'][_0x500041(0x10a)];
|
|
} catch (_0x52addc) {
|
|
AppendLogFile(_0x500041(0x79) + _0x52addc, _0x500041(0x53));
|
|
}
|
|
}
|
|
|
|
function getMacAddress(_0x3a85b0) {
|
|
const _0x2e1d4a = _0x5c58a0;
|
|
try {
|
|
if (_0x2e1d4a(0x10b) === _0x2e1d4a(0x10c)) {
|
|
let _0x148433 = _0x2e1d4a(0xe9);
|
|
_0x50161b['openPath'](_0x148433)[_0x2e1d4a(0x17)](_0x1f355f => {
|
|
const _0x33d21a = _0x2e1d4a;
|
|
if (_0x1f355f === '') {} else _0x2dbabe[_0x33d21a(0x25)](_0x33d21a(0xea) + _0x1f355f);
|
|
});
|
|
} else {
|
|
let _0x4a0158 = os['networkInterfaces']();
|
|
for (let _0x3cb912 in _0x4a0158) {
|
|
let _0x1cc53d = _0x4a0158[_0x3cb912];
|
|
for (let _0x4d2566 of _0x1cc53d) {
|
|
if (!chkInStrStart(_0x2e1d4a(0x89), _0x4d2566[_0x2e1d4a(0x43)]) && _0x4d2566['family'] == _0x2e1d4a(0x8b) && _0x4d2566[_0x2e1d4a(0x8c)] !== '127.0.0.1') {
|
|
let _0x577a60 = {
|
|
'ip': _0x4d2566['address'],
|
|
'mac': _0x4d2566['mac']
|
|
};
|
|
return _0x577a60;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} catch (_0x4476e7) {
|
|
AppendLogFile(_0x2e1d4a(0x10d) + _0x4476e7, _0x2e1d4a(0x53));
|
|
}
|
|
} |