Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / config / license / hardware.js
index 4d7c5bb..d3a7add 100644 (file)
@@ -1 +1 @@
-const a842_0x5ecb=['lodash','../config.service','hex','orderBy','head','devLicense','child_process','hostname','dmidecode\x20--string\x20system-uuid','internal','md5','cpus','test','model','keys','127.0.0.1','ipAddress','createHash','IPv4','filter','map','win32','update','isProduction','utf8','mac','concat','digest','substring','replace','family','exports'];(function(_0x2c30c9,_0x5ecb3e){const _0x13872e=function(_0x2c70b8){while(--_0x2c70b8){_0x2c30c9['push'](_0x2c30c9['shift']());}};_0x13872e(++_0x5ecb3e);}(a842_0x5ecb,0x9d));const a842_0x1387=function(_0x2c30c9,_0x5ecb3e){_0x2c30c9=_0x2c30c9-0x0;let _0x13872e=a842_0x5ecb[_0x2c30c9];return _0x13872e;};const _0x4bc3ab=a842_0x1387;'use strict';const _=require(_0x4bc3ab('0x3')),os=require('os'),crypto=require('crypto'),{getConfigService}=require(_0x4bc3ab('0x4')),exec=require(_0x4bc3ab('0x9'))['execSync'];function getInterfaces(){const _0x162660=_0x4bc3ab;let _0x2c70b8=[];const _0x3fc759=os['networkInterfaces'](),_0x36af85=_[_0x162660('0x6')](_[_0x162660('0x11')](_0x3fc759));for(let _0x56e9c0=0x0;_0x56e9c0<_0x36af85['length'];_0x56e9c0++){const _0x16b695=_0x3fc759[_0x36af85[_0x56e9c0]][_0x162660('0x16')](function(_0x5a449d){const _0x41554b=_0x162660;return _0x5a449d[_0x41554b('0x1')]===_0x41554b('0x15')&&_0x5a449d[_0x41554b('0xc')]===![];});_0x2c70b8=_0x2c70b8[_0x162660('0x1d')](_0x16b695);}return _0x2c70b8;}function getFirstInterface(){const _0x2fcca5=_0x4bc3ab,_0x2a0106=_[_0x2fcca5('0x7')](getInterfaces());return{'macAddress':_0x2a0106&&_0x2a0106[_0x2fcca5('0x1c')]?_0x2a0106[_0x2fcca5('0x1c')]:'00:00:00:00:00:00','ipAddress':_0x2a0106&&_0x2a0106['address']?_0x2a0106['address']:_0x2fcca5('0x12')};}function getCPUhash(){const _0x5f12ce=_0x4bc3ab,_0x576167=_[_0x5f12ce('0x6')](os[_0x5f12ce('0xe')]()[_0x5f12ce('0x17')](function(_0xd7fbaf){const _0x4d8f56=_0x5f12ce;return _0xd7fbaf[_0x4d8f56('0x10')];}))['join'](':');return crypto[_0x5f12ce('0x14')]('md5')[_0x5f12ce('0x19')](_0x576167)[_0x5f12ce('0x1e')](_0x5f12ce('0x5'));}function getUuid(){const _0x49b43e=_0x4bc3ab,_0xe63077=getConfigService(),_0x5e655d=os['platform'](),_0x5db821=/[0-9a-f-]{36}/;if(!_0xe63077[_0x49b43e('0x1a')]&&_0x5db821[_0x49b43e('0xf')](_0xe63077[_0x49b43e('0x8')]))return _0xe63077[_0x49b43e('0x8')];else{if(_0x5e655d===_0x49b43e('0x18'))return exec(_0x49b43e('0xb'),{'encoding':_0x49b43e('0x1b')})[_0x49b43e('0x0')]('\x0d\x0a','');else{const _0x1281e5=getFirstInterface(),_0x14af9d=getCPUhash(),_0x20cb64=_0x14af9d+'|'+os[_0x49b43e('0xa')]()+'|'+_0x1281e5['macAddress']+'|'+_0x1281e5[_0x49b43e('0x13')],_0xa34177=crypto[_0x49b43e('0x14')](_0x49b43e('0xd'))['update'](_0x20cb64)['digest'](_0x49b43e('0x5'));return _0xa34177[_0x49b43e('0x1f')](0x0,0x8)+'-'+_0xa34177[_0x49b43e('0x1f')](0x8,0xc)+'-'+_0xa34177[_0x49b43e('0x1f')](0xc,0x10)+'-'+_0xa34177['substring'](0x10,0x14)+'-'+_0xa34177[_0x49b43e('0x1f')](0x14);}}}module[_0x4bc3ab('0x2')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash};
\ No newline at end of file
+const a842_0x5186=['substring','cpus','utf8','filter','win32','127.0.0.1','head','family','digest','orderBy','ipAddress','join','mac','crypto','createHash','address','test','networkInterfaces','child_process','devLicense','exports','isProduction','update','00:00:00:00:00:00','lodash','IPv4','md5','map','replace','internal','keys','hex','dmidecode\x20--string\x20system-uuid'];(function(_0x580b88,_0x518670){const _0x313852=function(_0x2ad892){while(--_0x2ad892){_0x580b88['push'](_0x580b88['shift']());}};_0x313852(++_0x518670);}(a842_0x5186,0x9e));const a842_0x3138=function(_0x580b88,_0x518670){_0x580b88=_0x580b88-0x0;let _0x313852=a842_0x5186[_0x580b88];return _0x313852;};const _0x243d06=a842_0x3138;'use strict';const _=require(_0x243d06('0x1f')),os=require('os'),crypto=require(_0x243d06('0x14')),{getConfigService}=require('../config.service'),exec=require(_0x243d06('0x19'))['execSync'];function getInterfaces(){const _0x305fa5=_0x243d06;let _0x2ad892=[];const _0x2f0c63=os[_0x305fa5('0x18')](),_0x36917e=_[_0x305fa5('0x10')](_[_0x305fa5('0x4')](_0x2f0c63));for(let _0x57adcd=0x0;_0x57adcd<_0x36917e['length'];_0x57adcd++){const _0x5b0a9c=_0x2f0c63[_0x36917e[_0x57adcd]][_0x305fa5('0xa')](function(_0x237b82){const _0x50d4c8=_0x305fa5;return _0x237b82[_0x50d4c8('0xe')]===_0x50d4c8('0x20')&&_0x237b82[_0x50d4c8('0x3')]===![];});_0x2ad892=_0x2ad892['concat'](_0x5b0a9c);}return _0x2ad892;}function getFirstInterface(){const _0x2c9dd5=_0x243d06,_0x116e08=_[_0x2c9dd5('0xd')](getInterfaces());return{'macAddress':_0x116e08&&_0x116e08[_0x2c9dd5('0x13')]?_0x116e08[_0x2c9dd5('0x13')]:_0x2c9dd5('0x1e'),'ipAddress':_0x116e08&&_0x116e08[_0x2c9dd5('0x16')]?_0x116e08['address']:_0x2c9dd5('0xc')};}function getCPUhash(){const _0x31544c=_0x243d06,_0x36c019=_['orderBy'](os[_0x31544c('0x8')]()[_0x31544c('0x1')](function(_0x2a00f5){return _0x2a00f5['model'];}))[_0x31544c('0x12')](':');return crypto['createHash'](_0x31544c('0x0'))[_0x31544c('0x1d')](_0x36c019)['digest'](_0x31544c('0x5'));}function getUuid(){const _0x52df60=_0x243d06,_0x152db6=getConfigService(),_0x2f6f3c=os['platform'](),_0x19e0a8=/[0-9a-f-]{36}/;if(!_0x152db6[_0x52df60('0x1c')]&&_0x19e0a8[_0x52df60('0x17')](_0x152db6['devLicense']))return _0x152db6[_0x52df60('0x1a')];else{if(_0x2f6f3c===_0x52df60('0xb'))return exec(_0x52df60('0x6'),{'encoding':_0x52df60('0x9')})[_0x52df60('0x2')]('\x0d\x0a','');else{const _0x15adbe=getFirstInterface(),_0x2ecdb0=getCPUhash(),_0xac4a9a=_0x2ecdb0+'|'+os['hostname']()+'|'+_0x15adbe['macAddress']+'|'+_0x15adbe[_0x52df60('0x11')],_0x51b9e2=crypto[_0x52df60('0x15')](_0x52df60('0x0'))[_0x52df60('0x1d')](_0xac4a9a)[_0x52df60('0xf')](_0x52df60('0x5'));return _0x51b9e2['substring'](0x0,0x8)+'-'+_0x51b9e2[_0x52df60('0x7')](0x8,0xc)+'-'+_0x51b9e2[_0x52df60('0x7')](0xc,0x10)+'-'+_0x51b9e2[_0x52df60('0x7')](0x10,0x14)+'-'+_0x51b9e2[_0x52df60('0x7')](0x14);}}}module[_0x243d06('0x1b')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash};
\ No newline at end of file