Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / config / license / hardware.js
index 6ff876b..a656e61 100644 (file)
@@ -1 +1 @@
-const a843_0x9500=['utf8','cpus','map','networkInterfaces','join','createHash','internal','filter','length','ipAddress','isProduction','digest','substring','concat','devLicense','test','../config.service','head','IPv4','address','keys','127.0.0.1','orderBy','hostname','00:00:00:00:00:00','execSync','dmidecode\x20--string\x20system-uuid','exports','model','platform','mac','replace','lodash','md5'];(function(_0x589002,_0x95004b){const _0x307e0e=function(_0x256878){while(--_0x256878){_0x589002['push'](_0x589002['shift']());}};_0x307e0e(++_0x95004b);}(a843_0x9500,0xc7));const a843_0x307e=function(_0x589002,_0x95004b){_0x589002=_0x589002-0x0;let _0x307e0e=a843_0x9500[_0x589002];return _0x307e0e;};const _0x1758a5=a843_0x307e;'use strict';const _=require(_0x1758a5('0x3')),os=require('os'),crypto=require('crypto'),{getConfigService}=require(_0x1758a5('0x15')),exec=require('child_process')[_0x1758a5('0x1e')];function getInterfaces(){const _0x45e852=_0x1758a5;let _0x256878=[];const _0x11087b=os[_0x45e852('0x8')](),_0xa9762f=_[_0x45e852('0x1b')](_[_0x45e852('0x19')](_0x11087b));for(let _0x7ca5fc=0x0;_0x7ca5fc<_0xa9762f[_0x45e852('0xd')];_0x7ca5fc++){const _0x28bce7=_0x11087b[_0xa9762f[_0x7ca5fc]][_0x45e852('0xc')](function(_0x36ab9d){const _0x576adf=_0x45e852;return _0x36ab9d['family']===_0x576adf('0x17')&&_0x36ab9d[_0x576adf('0xb')]===![];});_0x256878=_0x256878[_0x45e852('0x12')](_0x28bce7);}return _0x256878;}function getFirstInterface(){const _0x27fa3d=_0x1758a5,_0x24fad2=_[_0x27fa3d('0x16')](getInterfaces());return{'macAddress':_0x24fad2&&_0x24fad2[_0x27fa3d('0x1')]?_0x24fad2[_0x27fa3d('0x1')]:_0x27fa3d('0x1d'),'ipAddress':_0x24fad2&&_0x24fad2[_0x27fa3d('0x18')]?_0x24fad2[_0x27fa3d('0x18')]:_0x27fa3d('0x1a')};}function getCPUhash(){const _0x17a001=_0x1758a5,_0x8209e0=_[_0x17a001('0x1b')](os[_0x17a001('0x6')]()[_0x17a001('0x7')](function(_0x29b64e){const _0xbfb598=_0x17a001;return _0x29b64e[_0xbfb598('0x21')];}))[_0x17a001('0x9')](':');return crypto['createHash'](_0x17a001('0x4'))['update'](_0x8209e0)[_0x17a001('0x10')]('hex');}function getUuid(){const _0x4b2c5c=_0x1758a5,_0x249d3b=getConfigService(),_0x4dd877=os[_0x4b2c5c('0x0')](),_0x2ccb5e=/[0-9a-f-]{36}/;if(!_0x249d3b[_0x4b2c5c('0xf')]&&_0x2ccb5e[_0x4b2c5c('0x14')](_0x249d3b[_0x4b2c5c('0x13')]))return _0x249d3b[_0x4b2c5c('0x13')];else{if(_0x4dd877==='win32')return exec(_0x4b2c5c('0x1f'),{'encoding':_0x4b2c5c('0x5')})[_0x4b2c5c('0x2')]('\x0d\x0a','');else{const _0x2e1645=getFirstInterface(),_0x44c89c=getCPUhash(),_0x147af8=_0x44c89c+'|'+os[_0x4b2c5c('0x1c')]()+'|'+_0x2e1645['macAddress']+'|'+_0x2e1645[_0x4b2c5c('0xe')],_0x2db426=crypto[_0x4b2c5c('0xa')](_0x4b2c5c('0x4'))['update'](_0x147af8)[_0x4b2c5c('0x10')]('hex');return _0x2db426[_0x4b2c5c('0x11')](0x0,0x8)+'-'+_0x2db426['substring'](0x8,0xc)+'-'+_0x2db426[_0x4b2c5c('0x11')](0xc,0x10)+'-'+_0x2db426[_0x4b2c5c('0x11')](0x10,0x14)+'-'+_0x2db426[_0x4b2c5c('0x11')](0x14);}}}module[_0x1758a5('0x20')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash};
\ No newline at end of file
+const a843_0x5800=['keys','cpus','dmidecode\x20--string\x20system-uuid','00:00:00:00:00:00','orderBy','substring','execSync','127.0.0.1','child_process','IPv4','model','mac','join','hex','head','test','update','platform','utf8','../config.service','digest','replace','devLicense','filter','family','length','macAddress','createHash','hostname','win32','md5','map','exports'];(function(_0x3d60c0,_0x580006){const _0x43e12f=function(_0x492a52){while(--_0x492a52){_0x3d60c0['push'](_0x3d60c0['shift']());}};_0x43e12f(++_0x580006);}(a843_0x5800,0x13b));const a843_0x43e1=function(_0x3d60c0,_0x580006){_0x3d60c0=_0x3d60c0-0x0;let _0x43e12f=a843_0x5800[_0x3d60c0];return _0x43e12f;};const _0x320e28=a843_0x43e1;'use strict';const _=require('lodash'),os=require('os'),crypto=require('crypto'),{getConfigService}=require(_0x320e28('0x1')),exec=require(_0x320e28('0x17'))[_0x320e28('0x15')];function getInterfaces(){const _0x24962b=_0x320e28;let _0x492a52=[];const _0x312ff5=os['networkInterfaces'](),_0x514e9c=_[_0x24962b('0x13')](_[_0x24962b('0xf')](_0x312ff5));for(let _0x4a0f02=0x0;_0x4a0f02<_0x514e9c[_0x24962b('0x7')];_0x4a0f02++){const _0x3aa1e6=_0x312ff5[_0x514e9c[_0x4a0f02]][_0x24962b('0x5')](function(_0x34b9e1){const _0x1b31c3=_0x24962b;return _0x34b9e1[_0x1b31c3('0x6')]===_0x1b31c3('0x18')&&_0x34b9e1['internal']===![];});_0x492a52=_0x492a52['concat'](_0x3aa1e6);}return _0x492a52;}function getFirstInterface(){const _0x58c5c2=_0x320e28,_0x5b7181=_[_0x58c5c2('0x1d')](getInterfaces());return{'macAddress':_0x5b7181&&_0x5b7181[_0x58c5c2('0x1a')]?_0x5b7181[_0x58c5c2('0x1a')]:_0x58c5c2('0x12'),'ipAddress':_0x5b7181&&_0x5b7181['address']?_0x5b7181['address']:_0x58c5c2('0x16')};}function getCPUhash(){const _0x149384=_0x320e28,_0x1962fd=_['orderBy'](os[_0x149384('0x10')]()[_0x149384('0xd')](function(_0x425350){const _0x4dc6e7=_0x149384;return _0x425350[_0x4dc6e7('0x19')];}))[_0x149384('0x1b')](':');return crypto['createHash'](_0x149384('0xc'))['update'](_0x1962fd)[_0x149384('0x2')](_0x149384('0x1c'));}function getUuid(){const _0x4d75ea=_0x320e28,_0x4becf2=getConfigService(),_0x55bde4=os[_0x4d75ea('0x20')](),_0x4da9e4=/[0-9a-f-]{36}/;if(!_0x4becf2['isProduction']&&_0x4da9e4[_0x4d75ea('0x1e')](_0x4becf2[_0x4d75ea('0x4')]))return _0x4becf2[_0x4d75ea('0x4')];else{if(_0x55bde4===_0x4d75ea('0xb'))return exec(_0x4d75ea('0x11'),{'encoding':_0x4d75ea('0x0')})[_0x4d75ea('0x3')]('\x0d\x0a','');else{const _0x1515a6=getFirstInterface(),_0x46a04b=getCPUhash(),_0x525cd5=_0x46a04b+'|'+os[_0x4d75ea('0xa')]()+'|'+_0x1515a6[_0x4d75ea('0x8')]+'|'+_0x1515a6['ipAddress'],_0x3d29b4=crypto[_0x4d75ea('0x9')](_0x4d75ea('0xc'))[_0x4d75ea('0x1f')](_0x525cd5)[_0x4d75ea('0x2')]('hex');return _0x3d29b4[_0x4d75ea('0x14')](0x0,0x8)+'-'+_0x3d29b4[_0x4d75ea('0x14')](0x8,0xc)+'-'+_0x3d29b4[_0x4d75ea('0x14')](0xc,0x10)+'-'+_0x3d29b4[_0x4d75ea('0x14')](0x10,0x14)+'-'+_0x3d29b4[_0x4d75ea('0x14')](0x14);}}}module[_0x320e28('0xe')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash};
\ No newline at end of file