Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / config / license / hardware.js
index 46537c2..94c3c9a 100644 (file)
@@ -1 +1 @@
-const a843_0x2ed7=['lodash','hex','mac','replace','isProduction','127.0.0.1','orderBy','win32','crypto','internal','keys','md5','macAddress','cpus','utf8','IPv4','filter','family','platform','createHash','length','concat','00:00:00:00:00:00','ipAddress','networkInterfaces','digest','address','../config.service','exports','substring','devLicense','head','update','dmidecode\x20--string\x20system-uuid'];(function(_0x14e1e8,_0x2ed720){const _0x45aa92=function(_0x2b453c){while(--_0x2b453c){_0x14e1e8['push'](_0x14e1e8['shift']());}};_0x45aa92(++_0x2ed720);}(a843_0x2ed7,0xe2));const a843_0x45aa=function(_0x14e1e8,_0x2ed720){_0x14e1e8=_0x14e1e8-0x0;let _0x45aa92=a843_0x2ed7[_0x14e1e8];return _0x45aa92;};const _0x24a1d6=a843_0x45aa;'use strict';const _=require(_0x24a1d6('0xc')),os=require('os'),crypto=require(_0x24a1d6('0x14')),{getConfigService}=require(_0x24a1d6('0x5')),exec=require('child_process')['execSync'];function getInterfaces(){const _0x2055bd=_0x24a1d6;let _0x2b453c=[];const _0x492186=os[_0x2055bd('0x2')](),_0x13c612=_[_0x2055bd('0x12')](_[_0x2055bd('0x16')](_0x492186));for(let _0x1bb7df=0x0;_0x1bb7df<_0x13c612[_0x2055bd('0x20')];_0x1bb7df++){const _0xd57fd5=_0x492186[_0x13c612[_0x1bb7df]][_0x2055bd('0x1c')](function(_0x9bc476){const _0x6826c3=_0x2055bd;return _0x9bc476[_0x6826c3('0x1d')]===_0x6826c3('0x1b')&&_0x9bc476[_0x6826c3('0x15')]===![];});_0x2b453c=_0x2b453c[_0x2055bd('0x21')](_0xd57fd5);}return _0x2b453c;}function getFirstInterface(){const _0x42bbce=_0x24a1d6,_0x84dea9=_[_0x42bbce('0x9')](getInterfaces());return{'macAddress':_0x84dea9&&_0x84dea9[_0x42bbce('0xe')]?_0x84dea9[_0x42bbce('0xe')]:_0x42bbce('0x0'),'ipAddress':_0x84dea9&&_0x84dea9[_0x42bbce('0x4')]?_0x84dea9[_0x42bbce('0x4')]:_0x42bbce('0x11')};}function getCPUhash(){const _0x5d28f3=_0x24a1d6,_0x4287f9=_[_0x5d28f3('0x12')](os[_0x5d28f3('0x19')]()['map'](function(_0x16271f){return _0x16271f['model'];}))['join'](':');return crypto[_0x5d28f3('0x1f')](_0x5d28f3('0x17'))[_0x5d28f3('0xa')](_0x4287f9)['digest'](_0x5d28f3('0xd'));}function getUuid(){const _0x4ce668=_0x24a1d6,_0x28d1ab=getConfigService(),_0xaeef40=os[_0x4ce668('0x1e')](),_0x35f4e7=/[0-9a-f-]{36}/;if(!_0x28d1ab[_0x4ce668('0x10')]&&_0x35f4e7['test'](_0x28d1ab[_0x4ce668('0x8')]))return _0x28d1ab[_0x4ce668('0x8')];else{if(_0xaeef40===_0x4ce668('0x13'))return exec(_0x4ce668('0xb'),{'encoding':_0x4ce668('0x1a')})[_0x4ce668('0xf')]('\x0d\x0a','');else{const _0x33d1b9=getFirstInterface(),_0x5eb963=getCPUhash(),_0x4c8d2e=_0x5eb963+'|'+os['hostname']()+'|'+_0x33d1b9[_0x4ce668('0x18')]+'|'+_0x33d1b9[_0x4ce668('0x1')],_0x348980=crypto[_0x4ce668('0x1f')](_0x4ce668('0x17'))[_0x4ce668('0xa')](_0x4c8d2e)[_0x4ce668('0x3')](_0x4ce668('0xd'));return _0x348980[_0x4ce668('0x7')](0x0,0x8)+'-'+_0x348980[_0x4ce668('0x7')](0x8,0xc)+'-'+_0x348980['substring'](0xc,0x10)+'-'+_0x348980[_0x4ce668('0x7')](0x10,0x14)+'-'+_0x348980[_0x4ce668('0x7')](0x14);}}}module[_0x24a1d6('0x6')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash};
\ No newline at end of file
+const a843_0x5522=['macAddress','execSync','cpus','isProduction','md5','map','replace','dmidecode\x20--string\x20system-uuid','platform','00:00:00:00:00:00','hostname','family','address','concat','internal','test','networkInterfaces','update','digest','IPv4','orderBy','model','join','length','head','devLicense','substring','lodash','win32'];(function(_0x1473ff,_0x552252){const _0x1bd1e3=function(_0x52f0b8){while(--_0x52f0b8){_0x1473ff['push'](_0x1473ff['shift']());}};_0x1bd1e3(++_0x552252);}(a843_0x5522,0x143));const a843_0x1bd1=function(_0x1473ff,_0x552252){_0x1473ff=_0x1473ff-0x0;let _0x1bd1e3=a843_0x5522[_0x1473ff];return _0x1bd1e3;};const _0x3da88d=a843_0x1bd1;'use strict';const _=require(_0x3da88d('0x17')),os=require('os'),crypto=require('crypto'),{getConfigService}=require('../config.service'),exec=require('child_process')[_0x3da88d('0x1a')];function getInterfaces(){const _0x36fb77=_0x3da88d;let _0x52f0b8=[];const _0x15b940=os[_0x36fb77('0xc')](),_0x48f738=_['orderBy'](_['keys'](_0x15b940));for(let _0x32c6b7=0x0;_0x32c6b7<_0x48f738[_0x36fb77('0x13')];_0x32c6b7++){const _0x3770b6=_0x15b940[_0x48f738[_0x32c6b7]]['filter'](function(_0x447698){const _0x36d9f9=_0x36fb77;return _0x447698[_0x36d9f9('0x7')]===_0x36d9f9('0xf')&&_0x447698[_0x36d9f9('0xa')]===![];});_0x52f0b8=_0x52f0b8[_0x36fb77('0x9')](_0x3770b6);}return _0x52f0b8;}function getFirstInterface(){const _0x2a244=_0x3da88d,_0x5892fe=_[_0x2a244('0x14')](getInterfaces());return{'macAddress':_0x5892fe&&_0x5892fe['mac']?_0x5892fe['mac']:_0x2a244('0x5'),'ipAddress':_0x5892fe&&_0x5892fe[_0x2a244('0x8')]?_0x5892fe[_0x2a244('0x8')]:'127.0.0.1'};}function getCPUhash(){const _0x1136c1=_0x3da88d,_0x40391c=_[_0x1136c1('0x10')](os[_0x1136c1('0x1b')]()[_0x1136c1('0x1')](function(_0x1c9169){const _0x119c1a=_0x1136c1;return _0x1c9169[_0x119c1a('0x11')];}))[_0x1136c1('0x12')](':');return crypto['createHash'](_0x1136c1('0x0'))[_0x1136c1('0xd')](_0x40391c)[_0x1136c1('0xe')]('hex');}function getUuid(){const _0x5dbc58=_0x3da88d,_0x6b60f4=getConfigService(),_0x3466cd=os[_0x5dbc58('0x4')](),_0x529260=/[0-9a-f-]{36}/;if(!_0x6b60f4[_0x5dbc58('0x1c')]&&_0x529260[_0x5dbc58('0xb')](_0x6b60f4[_0x5dbc58('0x15')]))return _0x6b60f4[_0x5dbc58('0x15')];else{if(_0x3466cd===_0x5dbc58('0x18'))return exec(_0x5dbc58('0x3'),{'encoding':'utf8'})[_0x5dbc58('0x2')]('\x0d\x0a','');else{const _0x3c4cdd=getFirstInterface(),_0x217788=getCPUhash(),_0x2b0e2e=_0x217788+'|'+os[_0x5dbc58('0x6')]()+'|'+_0x3c4cdd[_0x5dbc58('0x19')]+'|'+_0x3c4cdd['ipAddress'],_0x330c9f=crypto['createHash'](_0x5dbc58('0x0'))[_0x5dbc58('0xd')](_0x2b0e2e)[_0x5dbc58('0xe')]('hex');return _0x330c9f[_0x5dbc58('0x16')](0x0,0x8)+'-'+_0x330c9f[_0x5dbc58('0x16')](0x8,0xc)+'-'+_0x330c9f['substring'](0xc,0x10)+'-'+_0x330c9f[_0x5dbc58('0x16')](0x10,0x14)+'-'+_0x330c9f[_0x5dbc58('0x16')](0x14);}}}module['exports']={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash};
\ No newline at end of file