From 9c8d4f9773f2ed6f6b7c41d55df2e98f5ace612b Mon Sep 17 00:00:00 2001 From: Daniel Yukio Date: Mon, 15 Jan 2024 15:17:22 -0300 Subject: [PATCH] v1.1.3 --- lib/exception/FreGenericException.js | 2 +- lib/exception/index.js | 2 +- lib/index.d.ts | 3 +-- lib/index.js | 2 +- lib/ip_filter/IpDeniedError.js | 2 +- lib/ip_filter/IpFilter.js | 2 +- lib/ip_filter/IpTypes.js | 2 +- lib/ip_filter/index.js | 2 +- lib/utils/byte.js | 2 +- lib/utils/rotines.js | 2 +- package.json | 2 +- 11 files changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/exception/FreGenericException.js b/lib/exception/FreGenericException.js index d5147c4..6e20cd6 100644 --- a/lib/exception/FreGenericException.js +++ b/lib/exception/FreGenericException.js @@ -1 +1 @@ -'use strict';var a0_0x2cc2de=a0_0x300d;function a0_0xb448(){var _0x207956=['4562848DwdxTF','9207VaeGjz','message','45patbvt','126PSfuIi','189676QzXsWs','name','__esModule','status','718900jSiMSA','captureStackTrace','FreGenericException','extra','7304175fLCVTD','1091jRgvUK','constructor','914TQiSon','statusCode','18180nqYghv','Exception','155034DYlhmy'];a0_0xb448=function(){return _0x207956;};return a0_0xb448();}function a0_0x300d(_0x35afe9,_0x134821){var _0xb44810=a0_0xb448();return a0_0x300d=function(_0x300dca,_0x5092a5){_0x300dca=_0x300dca-0x1dd;var _0x277669=_0xb44810[_0x300dca];return _0x277669;},a0_0x300d(_0x35afe9,_0x134821);}(function(_0x703f9a,_0x12fd6e){var _0x935469=a0_0x300d,_0x5a7380=_0x703f9a();while(!![]){try{var _0xd6240d=parseInt(_0x935469(0x1e1))/0x1*(parseInt(_0x935469(0x1e3))/0x2)+parseInt(_0x935469(0x1eb))/0x3*(parseInt(_0x935469(0x1ed))/0x4)+-parseInt(_0x935469(0x1f1))/0x5+parseInt(_0x935469(0x1e7))/0x6*(-parseInt(_0x935469(0x1ec))/0x7)+parseInt(_0x935469(0x1e8))/0x8+parseInt(_0x935469(0x1e0))/0x9+-parseInt(_0x935469(0x1e5))/0xa*(parseInt(_0x935469(0x1e9))/0xb);if(_0xd6240d===_0x12fd6e)break;else _0x5a7380['push'](_0x5a7380['shift']());}catch(_0x5413dd){_0x5a7380['push'](_0x5a7380['shift']());}}}(a0_0xb448,0x709c7));Object['defineProperty'](exports,a0_0x2cc2de(0x1ef),{'value':!![]}),exports[a0_0x2cc2de(0x1de)]=void 0x0;class FreGenericException extends Error{[a0_0x2cc2de(0x1e4)];[a0_0x2cc2de(0x1f0)];[a0_0x2cc2de(0x1df)];constructor(_0x243b3e,_0x456501,_0x530f75){var _0x247d2e=a0_0x2cc2de;_0x456501=_0x456501??_0x247d2e(0x1e6),super(_0x456501),this[_0x247d2e(0x1ea)]=_0x456501,this[_0x247d2e(0x1ee)]=this['constructor'][_0x247d2e(0x1ee)],Error[_0x247d2e(0x1dd)](this,this[_0x247d2e(0x1e2)]),this[_0x247d2e(0x1df)]=_0x530f75,this['status']=this[_0x247d2e(0x1e4)]=_0x243b3e;}}exports[a0_0x2cc2de(0x1de)]=FreGenericException; \ No newline at end of file +'use strict';var a0_0x5192c9=a0_0x39fe;function a0_0x27fc(){var _0x4feb04=['message','116880ChbMTG','extra','FreGenericException','__esModule','90HaRcAC','3tPQbyz','Exception','5332803rRCrUl','1083663YAVEhv','constructor','193736aYDwsJ','1555432EyqSnM','status','1722300qBtIcV','name','4952604OyBJmm','captureStackTrace'];a0_0x27fc=function(){return _0x4feb04;};return a0_0x27fc();}(function(_0x787027,_0x374f1b){var _0x54820d=a0_0x39fe,_0x5f4e54=_0x787027();while(!![]){try{var _0x4e623a=parseInt(_0x54820d(0xe5))/0x1+-parseInt(_0x54820d(0xd8))/0x2*(parseInt(_0x54820d(0xe2))/0x3)+parseInt(_0x54820d(0xd5))/0x4+-parseInt(_0x54820d(0xdd))/0x5+-parseInt(_0x54820d(0xda))/0x6+-parseInt(_0x54820d(0xe4))/0x7+-parseInt(_0x54820d(0xd6))/0x8*(-parseInt(_0x54820d(0xe1))/0x9);if(_0x4e623a===_0x374f1b)break;else _0x5f4e54['push'](_0x5f4e54['shift']());}catch(_0x47cdff){_0x5f4e54['push'](_0x5f4e54['shift']());}}}(a0_0x27fc,0x939b6));function a0_0x39fe(_0x1f3178,_0x1b8a51){var _0x27fc57=a0_0x27fc();return a0_0x39fe=function(_0x39fead,_0x5dd0a5){_0x39fead=_0x39fead-0xd4;var _0x14feb3=_0x27fc57[_0x39fead];return _0x14feb3;},a0_0x39fe(_0x1f3178,_0x1b8a51);}Object['defineProperty'](exports,a0_0x5192c9(0xe0),{'value':!![]}),exports[a0_0x5192c9(0xdf)]=void 0x0;class FreGenericException extends Error{['statusCode'];[a0_0x5192c9(0xd7)];['extra'];constructor(_0x3d4cf5,_0x3cb373,_0x8944a2){var _0x3ee0c1=a0_0x5192c9;_0x3cb373=_0x3cb373??_0x3ee0c1(0xe3),super(_0x3cb373),this[_0x3ee0c1(0xdc)]=_0x3cb373,this[_0x3ee0c1(0xd9)]=this[_0x3ee0c1(0xd4)][_0x3ee0c1(0xd9)],Error[_0x3ee0c1(0xdb)](this,this[_0x3ee0c1(0xd4)]),this[_0x3ee0c1(0xde)]=_0x8944a2,this['status']=this['statusCode']=_0x3d4cf5;}}exports[a0_0x5192c9(0xdf)]=FreGenericException; \ No newline at end of file diff --git a/lib/exception/index.js b/lib/exception/index.js index 4f78a4c..298d583 100644 --- a/lib/exception/index.js +++ b/lib/exception/index.js @@ -1 +1 @@ -'use strict';var a1_0x366b7b=a1_0xd7b9;function a1_0xd7b9(_0xe9fee8,_0x3c6c13){var _0x4f0b0f=a1_0x4f0b();return a1_0xd7b9=function(_0xd7b983,_0x46e392){_0xd7b983=_0xd7b983-0xcb;var _0x3ab987=_0x4f0b0f[_0xd7b983];return _0x3ab987;},a1_0xd7b9(_0xe9fee8,_0x3c6c13);}(function(_0x19fa7e,_0xe1b1eb){var _0x1fea13=a1_0xd7b9,_0x17dbd3=_0x19fa7e();while(!![]){try{var _0x46d204=-parseInt(_0x1fea13(0xe1))/0x1*(-parseInt(_0x1fea13(0xdc))/0x2)+-parseInt(_0x1fea13(0xe0))/0x3*(parseInt(_0x1fea13(0xdd))/0x4)+-parseInt(_0x1fea13(0xd5))/0x5*(-parseInt(_0x1fea13(0xce))/0x6)+parseInt(_0x1fea13(0xd3))/0x7+parseInt(_0x1fea13(0xe2))/0x8*(-parseInt(_0x1fea13(0xd6))/0x9)+-parseInt(_0x1fea13(0xdb))/0xa+parseInt(_0x1fea13(0xd2))/0xb;if(_0x46d204===_0xe1b1eb)break;else _0x17dbd3['push'](_0x17dbd3['shift']());}catch(_0x1bc9f0){_0x17dbd3['push'](_0x17dbd3['shift']());}}}(a1_0x4f0b,0x5dc06));function a1_0x4f0b(){var _0x282d9e=['get','2328568VVSFyh','2531795ZxYYmr','__createBinding','194575sVDVDV','99aDExmq','__esModule','prototype','create','./FreGenericException','100860CzxcUQ','1174XpOxnb','152156AzAVns','configurable','defineProperty','12WwQrLs','439RbiDef','263744xZmHsd','getOwnPropertyDescriptor','writable','call','12IOGsxn','__exportStar','hasOwnProperty'];a1_0x4f0b=function(){return _0x282d9e;};return a1_0x4f0b();}var __createBinding=this&&this[a1_0x366b7b(0xd4)]||(Object[a1_0x366b7b(0xd9)]?function(_0x9aa97f,_0x24cd2f,_0x5fb486,_0x5a39fe){var _0x15ea83=a1_0x366b7b;if(_0x5a39fe===undefined)_0x5a39fe=_0x5fb486;var _0x23902a=Object[_0x15ea83(0xcb)](_0x24cd2f,_0x5fb486);(!_0x23902a||(_0x15ea83(0xd1)in _0x23902a?!_0x24cd2f[_0x15ea83(0xd7)]:_0x23902a[_0x15ea83(0xcc)]||_0x23902a[_0x15ea83(0xde)]))&&(_0x23902a={'enumerable':!![],'get':function(){return _0x24cd2f[_0x5fb486];}}),Object[_0x15ea83(0xdf)](_0x9aa97f,_0x5a39fe,_0x23902a);}:function(_0x345717,_0x4a4fbf,_0x3f031f,_0x276013){if(_0x276013===undefined)_0x276013=_0x3f031f;_0x345717[_0x276013]=_0x4a4fbf[_0x3f031f];}),__exportStar=this&&this[a1_0x366b7b(0xcf)]||function(_0xecaa33,_0x206de4){var _0x55d065=a1_0x366b7b;for(var _0xfdad7e in _0xecaa33)if(_0xfdad7e!=='default'&&!Object[_0x55d065(0xd8)][_0x55d065(0xd0)][_0x55d065(0xcd)](_0x206de4,_0xfdad7e))__createBinding(_0x206de4,_0xecaa33,_0xfdad7e);};Object['defineProperty'](exports,a1_0x366b7b(0xd7),{'value':!![]}),__exportStar(require(a1_0x366b7b(0xda)),exports); \ No newline at end of file +'use strict';var a1_0x3b1d3b=a1_0x4953;(function(_0x3dccca,_0x2d0350){var _0x20494d=a1_0x4953,_0xbd6290=_0x3dccca();while(!![]){try{var _0x13b98a=-parseInt(_0x20494d(0x12a))/0x1*(-parseInt(_0x20494d(0x12e))/0x2)+-parseInt(_0x20494d(0x12d))/0x3+-parseInt(_0x20494d(0x13a))/0x4+-parseInt(_0x20494d(0x13b))/0x5+-parseInt(_0x20494d(0x13e))/0x6*(parseInt(_0x20494d(0x13c))/0x7)+-parseInt(_0x20494d(0x135))/0x8+parseInt(_0x20494d(0x12c))/0x9*(parseInt(_0x20494d(0x139))/0xa);if(_0x13b98a===_0x2d0350)break;else _0xbd6290['push'](_0xbd6290['shift']());}catch(_0x438d43){_0xbd6290['push'](_0xbd6290['shift']());}}}(a1_0x16ad,0x7465f));function a1_0x4953(_0x3672cd,_0x45275d){var _0x16ad34=a1_0x16ad();return a1_0x4953=function(_0x49537a,_0x262b95){_0x49537a=_0x49537a-0x12a;var _0x2e073=_0x16ad34[_0x49537a];return _0x2e073;},a1_0x4953(_0x3672cd,_0x45275d);}function a1_0x16ad(){var _0x43f041=['18201906vXIjQM','1142043RvRGqv','6VELxsj','get','hasOwnProperty','getOwnPropertyDescriptor','writable','create','__createBinding','2239624HhywRn','call','./FreGenericException','__exportStar','10ayeMGA','461220oCwicX','2504835LHLVQr','462rUGlIr','__esModule','40206XmDoLN','57835acZiuN','defineProperty'];a1_0x16ad=function(){return _0x43f041;};return a1_0x16ad();}var __createBinding=this&&this[a1_0x3b1d3b(0x134)]||(Object[a1_0x3b1d3b(0x133)]?function(_0x164708,_0x858cb0,_0x2fca6f,_0x4ec6f5){var _0x3b2b36=a1_0x3b1d3b;if(_0x4ec6f5===undefined)_0x4ec6f5=_0x2fca6f;var _0x553c3a=Object[_0x3b2b36(0x131)](_0x858cb0,_0x2fca6f);(!_0x553c3a||(_0x3b2b36(0x12f)in _0x553c3a?!_0x858cb0[_0x3b2b36(0x13d)]:_0x553c3a[_0x3b2b36(0x132)]||_0x553c3a['configurable']))&&(_0x553c3a={'enumerable':!![],'get':function(){return _0x858cb0[_0x2fca6f];}}),Object[_0x3b2b36(0x12b)](_0x164708,_0x4ec6f5,_0x553c3a);}:function(_0x24caf4,_0x151bed,_0x10b73b,_0x3e8a6e){if(_0x3e8a6e===undefined)_0x3e8a6e=_0x10b73b;_0x24caf4[_0x3e8a6e]=_0x151bed[_0x10b73b];}),__exportStar=this&&this[a1_0x3b1d3b(0x138)]||function(_0x5a2ec9,_0x47f124){var _0x1a293a=a1_0x3b1d3b;for(var _0xc48210 in _0x5a2ec9)if(_0xc48210!=='default'&&!Object['prototype'][_0x1a293a(0x130)][_0x1a293a(0x136)](_0x47f124,_0xc48210))__createBinding(_0x47f124,_0x5a2ec9,_0xc48210);};Object[a1_0x3b1d3b(0x12b)](exports,a1_0x3b1d3b(0x13d),{'value':!![]}),__exportStar(require(a1_0x3b1d3b(0x137)),exports); \ No newline at end of file diff --git a/lib/index.d.ts b/lib/index.d.ts index 8e275e7..93c01f3 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1,4 +1,3 @@ -export * from './utils/rotines'; -export * from './utils/byte'; +export * from './utils'; export * from './ip_filter'; export * from './exception'; diff --git a/lib/index.js b/lib/index.js index 621bbd0..dead5a2 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1 +1 @@ -'use strict';var a2_0x3641f1=a2_0x5f2b;(function(_0x192521,_0x3b7e74){var _0x447d70=a2_0x5f2b,_0x51ee17=_0x192521();while(!![]){try{var _0x5135f6=-parseInt(_0x447d70(0xe8))/0x1+parseInt(_0x447d70(0xd7))/0x2+-parseInt(_0x447d70(0xe0))/0x3+-parseInt(_0x447d70(0xda))/0x4*(-parseInt(_0x447d70(0xe6))/0x5)+-parseInt(_0x447d70(0xe2))/0x6+-parseInt(_0x447d70(0xe7))/0x7+parseInt(_0x447d70(0xe5))/0x8;if(_0x5135f6===_0x3b7e74)break;else _0x51ee17['push'](_0x51ee17['shift']());}catch(_0x1f3b40){_0x51ee17['push'](_0x51ee17['shift']());}}}(a2_0x1a2c,0xbe9d4));var __createBinding=this&&this[a2_0x3641f1(0xd9)]||(Object[a2_0x3641f1(0xdb)]?function(_0x56fa07,_0x27b996,_0x53b579,_0x2dbc23){var _0x2fb965=a2_0x3641f1;if(_0x2dbc23===undefined)_0x2dbc23=_0x53b579;var _0x456c0f=Object[_0x2fb965(0xe9)](_0x27b996,_0x53b579);(!_0x456c0f||(_0x2fb965(0xdc)in _0x456c0f?!_0x27b996[_0x2fb965(0xdd)]:_0x456c0f['writable']||_0x456c0f['configurable']))&&(_0x456c0f={'enumerable':!![],'get':function(){return _0x27b996[_0x53b579];}}),Object[_0x2fb965(0xe4)](_0x56fa07,_0x2dbc23,_0x456c0f);}:function(_0x5a46ca,_0x4c1653,_0x15e8c8,_0x2f4013){if(_0x2f4013===undefined)_0x2f4013=_0x15e8c8;_0x5a46ca[_0x2f4013]=_0x4c1653[_0x15e8c8];}),__exportStar=this&&this['__exportStar']||function(_0x466178,_0x4474d7){var _0x4be68e=a2_0x3641f1;for(var _0x452e93 in _0x466178)if(_0x452e93!==_0x4be68e(0xd8)&&!Object[_0x4be68e(0xe3)]['hasOwnProperty'][_0x4be68e(0xdf)](_0x4474d7,_0x452e93))__createBinding(_0x4474d7,_0x466178,_0x452e93);};function a2_0x5f2b(_0x2869b8,_0x258386){var _0x1a2c56=a2_0x1a2c();return a2_0x5f2b=function(_0x5f2b8a,_0x2ed0d6){_0x5f2b8a=_0x5f2b8a-0xd7;var _0x4f066d=_0x1a2c56[_0x5f2b8a];return _0x4f066d;},a2_0x5f2b(_0x2869b8,_0x258386);}Object['defineProperty'](exports,a2_0x3641f1(0xdd),{'value':!![]}),__exportStar(require('./utils/rotines'),exports),__exportStar(require(a2_0x3641f1(0xe1)),exports),__exportStar(require('./ip_filter'),exports),__exportStar(require(a2_0x3641f1(0xde)),exports);function a2_0x1a2c(){var _0x10d840=['defineProperty','1375288fAbGnT','20drsixA','4341470LwkzfT','11495VfWdsl','getOwnPropertyDescriptor','2906512QnRFjc','default','__createBinding','698912zPrkjt','create','get','__esModule','./exception','call','2476686rVLjXJ','./utils/byte','516336pZjbax','prototype'];a2_0x1a2c=function(){return _0x10d840;};return a2_0x1a2c();} \ No newline at end of file +'use strict';function a2_0x58b9(){var _0x5b1374=['call','default','__createBinding','configurable','writable','185528yejlkM','2125602YVxqVW','./utils','./exception','./ip_filter','defineProperty','27PznUxH','2807640ZpIVYP','149qBcqcf','__exportStar','create','32jelDio','2399784QCxDkd','140Znlioz','__esModule','12154BJdmMt','497695eStldJ','931450rFgVMi','prototype'];a2_0x58b9=function(){return _0x5b1374;};return a2_0x58b9();}var a2_0x57f2fb=a2_0x3ff7;function a2_0x3ff7(_0x43b636,_0x498ad5){var _0x58b94f=a2_0x58b9();return a2_0x3ff7=function(_0x3ff798,_0x22dd75){_0x3ff798=_0x3ff798-0xcf;var _0x1d739e=_0x58b94f[_0x3ff798];return _0x1d739e;},a2_0x3ff7(_0x43b636,_0x498ad5);}(function(_0x2f2016,_0x183463){var _0x30d6eb=a2_0x3ff7,_0x36307f=_0x2f2016();while(!![]){try{var _0x4e79ac=-parseInt(_0x30d6eb(0xd3))/0x1*(-parseInt(_0x30d6eb(0xda))/0x2)+-parseInt(_0x30d6eb(0xd7))/0x3+-parseInt(_0x30d6eb(0xd6))/0x4*(parseInt(_0x30d6eb(0xdb))/0x5)+parseInt(_0x30d6eb(0xe4))/0x6+parseInt(_0x30d6eb(0xd8))/0x7*(parseInt(_0x30d6eb(0xe3))/0x8)+-parseInt(_0x30d6eb(0xd1))/0x9*(-parseInt(_0x30d6eb(0xdc))/0xa)+parseInt(_0x30d6eb(0xd2))/0xb;if(_0x4e79ac===_0x183463)break;else _0x36307f['push'](_0x36307f['shift']());}catch(_0x4c5356){_0x36307f['push'](_0x36307f['shift']());}}}(a2_0x58b9,0xa19eb));var __createBinding=this&&this[a2_0x57f2fb(0xe0)]||(Object[a2_0x57f2fb(0xd5)]?function(_0x2d86c6,_0x6a11af,_0x31d7de,_0x4b5578){var _0x27352b=a2_0x57f2fb;if(_0x4b5578===undefined)_0x4b5578=_0x31d7de;var _0x1fa24d=Object['getOwnPropertyDescriptor'](_0x6a11af,_0x31d7de);(!_0x1fa24d||('get'in _0x1fa24d?!_0x6a11af[_0x27352b(0xd9)]:_0x1fa24d[_0x27352b(0xe2)]||_0x1fa24d[_0x27352b(0xe1)]))&&(_0x1fa24d={'enumerable':!![],'get':function(){return _0x6a11af[_0x31d7de];}}),Object[_0x27352b(0xd0)](_0x2d86c6,_0x4b5578,_0x1fa24d);}:function(_0x2414c2,_0x5b219f,_0x630ad1,_0x1b4a35){if(_0x1b4a35===undefined)_0x1b4a35=_0x630ad1;_0x2414c2[_0x1b4a35]=_0x5b219f[_0x630ad1];}),__exportStar=this&&this[a2_0x57f2fb(0xd4)]||function(_0x550881,_0x2f7f45){var _0x436e7a=a2_0x57f2fb;for(var _0x34b34c in _0x550881)if(_0x34b34c!==_0x436e7a(0xdf)&&!Object[_0x436e7a(0xdd)]['hasOwnProperty'][_0x436e7a(0xde)](_0x2f7f45,_0x34b34c))__createBinding(_0x2f7f45,_0x550881,_0x34b34c);};Object[a2_0x57f2fb(0xd0)](exports,a2_0x57f2fb(0xd9),{'value':!![]}),__exportStar(require(a2_0x57f2fb(0xe5)),exports),__exportStar(require(a2_0x57f2fb(0xcf)),exports),__exportStar(require(a2_0x57f2fb(0xe6)),exports); \ No newline at end of file diff --git a/lib/ip_filter/IpDeniedError.js b/lib/ip_filter/IpDeniedError.js index 905292c..ce54091 100644 --- a/lib/ip_filter/IpDeniedError.js +++ b/lib/ip_filter/IpDeniedError.js @@ -1 +1 @@ -'use strict';var a4_0x28d11b=a4_0x3653;(function(_0x3fc3fa,_0x5e351a){var _0x5e72fa=a4_0x3653,_0x2f6703=_0x3fc3fa();while(!![]){try{var _0x5d25f3=parseInt(_0x5e72fa(0xfa))/0x1*(-parseInt(_0x5e72fa(0x100))/0x2)+-parseInt(_0x5e72fa(0xf1))/0x3*(parseInt(_0x5e72fa(0x103))/0x4)+-parseInt(_0x5e72fa(0xf8))/0x5+parseInt(_0x5e72fa(0xfc))/0x6*(parseInt(_0x5e72fa(0xff))/0x7)+parseInt(_0x5e72fa(0xfb))/0x8+parseInt(_0x5e72fa(0xf9))/0x9+-parseInt(_0x5e72fa(0x104))/0xa*(parseInt(_0x5e72fa(0x105))/0xb);if(_0x5d25f3===_0x5e351a)break;else _0x2f6703['push'](_0x2f6703['shift']());}catch(_0x4a098e){_0x2f6703['push'](_0x2f6703['shift']());}}}(a4_0x54ae,0xc023d));Object[a4_0x28d11b(0xf3)](exports,a4_0x28d11b(0xf7),{'value':!![]}),exports[a4_0x28d11b(0xfd)]=void 0x0;function a4_0x54ae(){var _0x4a3bd0=['6jrnVWA','IpDeniedError','extra','9788933WqAklW','1759398bsLfMF','The\x20requesting\x20IP\x20was\x20denied','constructor','50984DTnCgv','170ThgGSv','1133011JBQNoG','78Ccpmcg','statusCode','defineProperty','name','status','message','__esModule','2120375rFFiBw','12160386uxJNIa','1ggeUOw','11388952tuGXjQ'];a4_0x54ae=function(){return _0x4a3bd0;};return a4_0x54ae();}function a4_0x3653(_0x55d27d,_0x339779){var _0x54ae19=a4_0x54ae();return a4_0x3653=function(_0x3653a0,_0xa075a3){_0x3653a0=_0x3653a0-0xf1;var _0x346969=_0x54ae19[_0x3653a0];return _0x346969;},a4_0x3653(_0x55d27d,_0x339779);}class IpDeniedError extends Error{['statusCode'];[a4_0x28d11b(0xf5)];[a4_0x28d11b(0xfe)];constructor(_0x42d46a,_0x1ea0f8){var _0x555086=a4_0x28d11b;_0x42d46a=_0x42d46a??_0x555086(0x101),super(_0x42d46a),this[_0x555086(0xf6)]=_0x42d46a,this[_0x555086(0xf4)]=this['constructor']['name'],Error['captureStackTrace'](this,this[_0x555086(0x102)]),this['extra']=_0x1ea0f8,this['status']=this[_0x555086(0xf2)]=0x193;}}exports[a4_0x28d11b(0xfd)]=IpDeniedError; \ No newline at end of file +'use strict';var a4_0x1bbe59=a4_0x1f27;(function(_0x59e5d9,_0x2d3fc3){var _0x386deb=a4_0x1f27,_0x4a6da3=_0x59e5d9();while(!![]){try{var _0x345d44=parseInt(_0x386deb(0xa9))/0x1+-parseInt(_0x386deb(0xae))/0x2+-parseInt(_0x386deb(0xa2))/0x3+parseInt(_0x386deb(0xa7))/0x4+-parseInt(_0x386deb(0xa6))/0x5*(parseInt(_0x386deb(0xb0))/0x6)+parseInt(_0x386deb(0xa1))/0x7+parseInt(_0x386deb(0xab))/0x8;if(_0x345d44===_0x2d3fc3)break;else _0x4a6da3['push'](_0x4a6da3['shift']());}catch(_0x47a071){_0x4a6da3['push'](_0x4a6da3['shift']());}}}(a4_0x4f23,0x86124));function a4_0x1f27(_0x429d6b,_0x574895){var _0x4f2393=a4_0x4f23();return a4_0x1f27=function(_0x1f27f0,_0xbb9b1b){_0x1f27f0=_0x1f27f0-0xa1;var _0x133b00=_0x4f2393[_0x1f27f0];return _0x133b00;},a4_0x1f27(_0x429d6b,_0x574895);}Object['defineProperty'](exports,a4_0x1bbe59(0xaa),{'value':!![]}),exports[a4_0x1bbe59(0xac)]=void 0x0;function a4_0x4f23(){var _0x10501b=['2861036LxTnDl','constructor','8081rJiamv','__esModule','7127144GARIBY','IpDeniedError','name','652708oQpXgD','status','623046ERBRxi','message','5992056WsfuHa','2603532bGIrNe','captureStackTrace','statusCode','extra','35JXiQiu'];a4_0x4f23=function(){return _0x10501b;};return a4_0x4f23();}class IpDeniedError extends Error{[a4_0x1bbe59(0xa4)];[a4_0x1bbe59(0xaf)];[a4_0x1bbe59(0xa5)];constructor(_0x59a9f6,_0x524fb3){var _0x2c1eef=a4_0x1bbe59;_0x59a9f6=_0x59a9f6??'The\x20requesting\x20IP\x20was\x20denied',super(_0x59a9f6),this[_0x2c1eef(0xb1)]=_0x59a9f6,this[_0x2c1eef(0xad)]=this[_0x2c1eef(0xa8)]['name'],Error[_0x2c1eef(0xa3)](this,this[_0x2c1eef(0xa8)]),this[_0x2c1eef(0xa5)]=_0x524fb3,this[_0x2c1eef(0xaf)]=this[_0x2c1eef(0xa4)]=0x193;}}exports[a4_0x1bbe59(0xac)]=IpDeniedError; \ No newline at end of file diff --git a/lib/ip_filter/IpFilter.js b/lib/ip_filter/IpFilter.js index 4baeaed..6e153b7 100644 --- a/lib/ip_filter/IpFilter.js +++ b/lib/ip_filter/IpFilter.js @@ -1 +1 @@ -'use strict';const a5_0x3a16d9=a5_0x5f06;(function(_0xcb3967,_0x513e86){const _0x4c2cbe=a5_0x5f06,_0x578b36=_0xcb3967();while(!![]){try{const _0x9cbe79=parseInt(_0x4c2cbe(0x1e8))/0x1*(-parseInt(_0x4c2cbe(0x20e))/0x2)+-parseInt(_0x4c2cbe(0x1f2))/0x3+parseInt(_0x4c2cbe(0x20b))/0x4+-parseInt(_0x4c2cbe(0x1f3))/0x5*(parseInt(_0x4c2cbe(0x203))/0x6)+-parseInt(_0x4c2cbe(0x200))/0x7*(parseInt(_0x4c2cbe(0x21a))/0x8)+-parseInt(_0x4c2cbe(0x21c))/0x9+parseInt(_0x4c2cbe(0x20c))/0xa*(parseInt(_0x4c2cbe(0x221))/0xb);if(_0x9cbe79===_0x513e86)break;else _0x578b36['push'](_0x578b36['shift']());}catch(_0x16cf86){_0x578b36['push'](_0x578b36['shift']());}}}(a5_0x59ae,0x75bfe));var __importDefault=this&&this[a5_0x3a16d9(0x220)]||function(_0x2904f2){const _0x5d2631=a5_0x3a16d9;return _0x2904f2&&_0x2904f2[_0x5d2631(0x1fe)]?_0x2904f2:{'default':_0x2904f2};};function a5_0x59ae(){const _0x273c5d=['map','Access\x20denied\x20to\x20IP\x20address:\x20','testIp','excluding','all','2148420PiBBRA','532130otUeNM','url','filter','toLong','test','testRange','string','compileTrust','defineProperty','function','proxy-addr','__esModule','checkIP','63FgVNtP','IpDeniedError','every','6sQzlVy','allow','isRange','IpFilter','status','trustProxy','detectIp','./IpDeniedError','1591368kyhnEa','658480BouuLg','Access\x20granted\x20to\x20IP\x20address:\x20','3182mSjfEP','testCidrBlock','middleware','default','deny','settings','getIps','mode','logF','Access\x20granted\x20for\x20excluded\x20path:\x20','number','logger','191112BwycjM','0.0.0.0/0','1369251zluLzI','matchClientIp','log','testExplicitIp','__importDefault','308aYVPrf','logLevel','358wwgnAT','Allow\x20list\x20empty','length','some','range_check'];a5_0x59ae=function(){return _0x273c5d;};return a5_0x59ae();}Object[a5_0x3a16d9(0x1fb)](exports,a5_0x3a16d9(0x1fe),{'value':!![]}),exports[a5_0x3a16d9(0x206)]=void 0x0;const ip_1=__importDefault(require('ip')),range_check_1=require(a5_0x3a16d9(0x1ec)),IpDeniedError_1=require(a5_0x3a16d9(0x20a)),proxy_addr_1=__importDefault(require(a5_0x3a16d9(0x1fd)));class IpFilter{['settings'];[a5_0x3a16d9(0x214)];[a5_0x3a16d9(0x219)]=_0x49fdb9=>console[a5_0x3a16d9(0x21e)](_0x49fdb9);[a5_0x3a16d9(0x209)]=_0x2816e1=>(0x0,proxy_addr_1[a5_0x3a16d9(0x211)])(_0x2816e1,this[a5_0x3a16d9(0x1fa)](this['settings'][a5_0x3a16d9(0x208)]));constructor(_0x4fffcf,_0x528784){const _0x26cbf0=a5_0x3a16d9;this[_0x26cbf0(0x214)]=typeof _0x4fffcf===_0x26cbf0(0x1fc)?_0x4fffcf:()=>_0x4fffcf,_0x528784?(this[_0x26cbf0(0x213)]={'mode':_0x528784[_0x26cbf0(0x215)]??'deny','log':_0x528784['log']??!![],'logLevel':_0x528784[_0x26cbf0(0x222)]??_0x26cbf0(0x1f1),'excluding':_0x528784['excluding']??[],'trustProxy':_0x528784[_0x26cbf0(0x208)]??![]},this[_0x26cbf0(0x219)]=_0x528784[_0x26cbf0(0x216)]??this['logger'],typeof _0x528784[_0x26cbf0(0x209)]===_0x26cbf0(0x1fc)&&(this['detectIp']=_0x528784[_0x26cbf0(0x209)])):this['settings']={'mode':_0x26cbf0(0x212),'log':!![],'logLevel':_0x26cbf0(0x1f1),'excluding':[],'trustProxy':![]};}[a5_0x3a16d9(0x1fa)](_0x48e367){const _0xb57948=a5_0x3a16d9;if(typeof _0x48e367===_0xb57948(0x1fc))return _0x48e367;if(_0x48e367===!![])return()=>!![];if(typeof _0x48e367===_0xb57948(0x218))return(_0xed0ac0,_0x2cfb5d)=>_0x2cfb5d<_0x48e367;return typeof _0x48e367===_0xb57948(0x1f9)&&(_0x48e367=_0x48e367['split'](',')),proxy_addr_1['default']['compile'](_0x48e367||[]);}[a5_0x3a16d9(0x21f)](_0x4cc531,_0x10bc0c,_0x276893){const _0x2d1224=a5_0x3a16d9;return _0x4cc531===_0x10bc0c?_0x276893===_0x2d1224(0x204):_0x276893==='deny';}[a5_0x3a16d9(0x20f)](_0x45b551,_0x443fbf,_0x1357ec){const _0x460991=a5_0x3a16d9;return(0x0,range_check_1['inRange'])(_0x45b551,_0x443fbf)?_0x1357ec===_0x460991(0x204):_0x1357ec===_0x460991(0x212);}[a5_0x3a16d9(0x1f8)](_0x1254c,_0x2fa9ac,_0x11cd82){const _0x5da981=a5_0x3a16d9;let _0x2626f3;if(_0x2fa9ac[_0x5da981(0x1ea)]>0x1){const _0x28da0e=ip_1[_0x5da981(0x211)]['toLong'](_0x2fa9ac[0x0]),_0x4b02d3=ip_1['default'][_0x5da981(0x1f6)](_0x2fa9ac[0x1]),_0x18e6e2=ip_1[_0x5da981(0x211)][_0x5da981(0x1f6)](_0x1254c);_0x2626f3=_0x18e6e2>=_0x28da0e&&_0x18e6e2<=_0x4b02d3;}else _0x2626f3=_0x1254c===_0x2fa9ac[0x0];return _0x2626f3?_0x11cd82==='allow':_0x11cd82===_0x5da981(0x212);}[a5_0x3a16d9(0x1ef)](_0x4e6020,_0x3334c4,_0x57b41f){const _0x87cdfd=a5_0x3a16d9;if(typeof _0x4e6020===_0x87cdfd(0x1f9))return(0x0,range_check_1[_0x87cdfd(0x205)])(_0x4e6020)?this[_0x87cdfd(0x20f)](_0x3334c4,_0x4e6020,_0x57b41f):this[_0x87cdfd(0x21f)](_0x3334c4,_0x4e6020,_0x57b41f);if(typeof _0x4e6020==='object')return this['testRange'](_0x3334c4,_0x4e6020,_0x57b41f);}[a5_0x3a16d9(0x21d)](_0x20b061,_0x44abc3){const _0x3a2f44=a5_0x3a16d9,_0x121f3c=this[_0x3a2f44(0x213)][_0x3a2f44(0x215)]??'deny',_0x2eccc2=_0x44abc3[_0x3a2f44(0x1ed)](_0x5b85a4=>this[_0x3a2f44(0x1ef)](_0x5b85a4,_0x20b061,_0x121f3c));return _0x121f3c===_0x3a2f44(0x204)?_0x2eccc2?.[_0x3a2f44(0x1eb)]((_0x59027d,_0x370bbd,_0x4cca02)=>_0x59027d):_0x2eccc2?.[_0x3a2f44(0x202)]((_0x28d0b0,_0x2174a3,_0x5a45ce)=>_0x28d0b0);}['error'](_0x3d7f95,_0x2c4dcc){const _0x223a42=a5_0x3a16d9,_0x4b6f6e=new IpDeniedError_1[(_0x223a42(0x201))](_0x223a42(0x1ee)+_0x3d7f95,{'ip':_0x3d7f95});return _0x2c4dcc(_0x4b6f6e);}get[a5_0x3a16d9(0x210)](){return(_0x42b73b,_0x543973,_0x4ee891)=>{const _0x35909e=a5_0x5f06,_0x237166=this[_0x35909e(0x1ff)](_0x42b73b);if(_0x237166[_0x35909e(0x207)])return _0x4ee891();return this['error'](_0x237166['ip'],_0x4ee891);};}[a5_0x3a16d9(0x1ff)](_0x2257a0){const _0x4b338e=a5_0x3a16d9;if(this['settings'][_0x4b338e(0x1f0)]&&this[_0x4b338e(0x213)][_0x4b338e(0x1f0)][_0x4b338e(0x1ea)]>0x0){const _0x1673ba=this[_0x4b338e(0x213)][_0x4b338e(0x1f0)][_0x4b338e(0x1f5)](_0x201c08=>{const _0x46ea79=_0x4b338e,_0x4813df=new RegExp(_0x201c08);return _0x4813df[_0x46ea79(0x1f7)](_0x2257a0[_0x46ea79(0x1f4)]);});if(_0x1673ba[_0x4b338e(0x1ea)]>0x0)return this[_0x4b338e(0x213)][_0x4b338e(0x21e)]&&this['settings'][_0x4b338e(0x222)]!==_0x4b338e(0x212)&&this['logger']('Access\x20granted\x20for\x20excluded\x20path:\x20'+_0x1673ba[0x0]),{'status':!![],'ip':_0x4b338e(0x21b),'msg':_0x4b338e(0x217)+_0x1673ba[0x0]};}const _0x5c370e=this[_0x4b338e(0x214)]();if(!_0x5c370e||!_0x5c370e[_0x4b338e(0x1ea)])return this[_0x4b338e(0x213)][_0x4b338e(0x215)]===_0x4b338e(0x204)?{'status':![],'ip':'0.0.0.0/0','msg':_0x4b338e(0x1e9)}:{'status':!![],'ip':_0x4b338e(0x21b),'msg':'Deny\x20list\x20empty'};const _0x471caa=this['detectIp'](_0x2257a0);if(this['matchClientIp'](_0x471caa,_0x5c370e))return this['settings'][_0x4b338e(0x21e)]&&this[_0x4b338e(0x213)][_0x4b338e(0x222)]!=='deny'&&this['logger'](_0x4b338e(0x20d)+_0x471caa),{'status':!![],'ip':_0x471caa,'msg':'Access\x20granted\x20to\x20IP\x20address:\x20'+_0x471caa};return this[_0x4b338e(0x213)]['log']&&this[_0x4b338e(0x213)]['logLevel']!==_0x4b338e(0x204)&&this[_0x4b338e(0x219)]('Access\x20denied\x20to\x20IP\x20address:\x20'+_0x471caa),{'status':![],'ip':_0x471caa,'msg':'Access\x20denied\x20to\x20IP\x20address:\x20'+_0x471caa};}}function a5_0x5f06(_0xd1c955,_0x54ddef){const _0x59aea3=a5_0x59ae();return a5_0x5f06=function(_0x5f06a4,_0x3fea9b){_0x5f06a4=_0x5f06a4-0x1e8;let _0x44d97b=_0x59aea3[_0x5f06a4];return _0x44d97b;},a5_0x5f06(_0xd1c955,_0x54ddef);}exports['IpFilter']=IpFilter; \ No newline at end of file +'use strict';const a5_0x3afca9=a5_0x7fe7;(function(_0x178b0c,_0x11e0e1){const _0x42d974=a5_0x7fe7,_0x3c6ffd=_0x178b0c();while(!![]){try{const _0x1a9d76=-parseInt(_0x42d974(0x194))/0x1+-parseInt(_0x42d974(0x195))/0x2*(-parseInt(_0x42d974(0x16d))/0x3)+-parseInt(_0x42d974(0x193))/0x4*(parseInt(_0x42d974(0x167))/0x5)+-parseInt(_0x42d974(0x17a))/0x6+parseInt(_0x42d974(0x17d))/0x7+parseInt(_0x42d974(0x16a))/0x8*(parseInt(_0x42d974(0x18d))/0x9)+parseInt(_0x42d974(0x184))/0xa;if(_0x1a9d76===_0x11e0e1)break;else _0x3c6ffd['push'](_0x3c6ffd['shift']());}catch(_0x18cd0e){_0x3c6ffd['push'](_0x3c6ffd['shift']());}}}(a5_0x2d40,0xbf144));var __importDefault=this&&this['__importDefault']||function(_0x45e0b6){const _0x16f331=a5_0x7fe7;return _0x45e0b6&&_0x45e0b6[_0x16f331(0x196)]?_0x45e0b6:{'default':_0x45e0b6};};Object[a5_0x3afca9(0x17e)](exports,a5_0x3afca9(0x196),{'value':!![]}),exports[a5_0x3afca9(0x16e)]=void 0x0;const ip_1=__importDefault(require('ip')),range_check_1=require(a5_0x3afca9(0x178)),IpDeniedError_1=require('./IpDeniedError'),proxy_addr_1=__importDefault(require(a5_0x3afca9(0x190)));function a5_0x7fe7(_0x11b3d3,_0x29f62a){const _0x2d4077=a5_0x2d40();return a5_0x7fe7=function(_0x7fe7e2,_0x5b11c3){_0x7fe7e2=_0x7fe7e2-0x165;let _0x3e99f9=_0x2d4077[_0x7fe7e2];return _0x3e99f9;},a5_0x7fe7(_0x11b3d3,_0x29f62a);}function a5_0x2d40(){const _0x282399=['error','559605uEKEBu','IpFilter','deny','default','logger','testExplicitIp','inRange','0.0.0.0/0','some','toLong','Access\x20granted\x20to\x20IP\x20address:\x20','range_check','string','3290046pvCMGG','log','Access\x20granted\x20for\x20excluded\x20path:\x20','4641679FJQifN','defineProperty','testRange','excluding','trustProxy','getIps','Access\x20denied\x20to\x20IP\x20address:\x20','14974030FzCycd','mode','middleware','checkIP','test','all','matchClientIp','object','split','7281AwkNVS','status','compileTrust','proxy-addr','detectIp','compile','1072276RPveQa','1205865BhiZDV','8xxOFCl','__esModule','settings','allow','length','logLevel','testIp','number','15dbUNoF','every','isRange','4296qjptxA','function'];a5_0x2d40=function(){return _0x282399;};return a5_0x2d40();}class IpFilter{['settings'];[a5_0x3afca9(0x182)];[a5_0x3afca9(0x171)]=_0x5d85d2=>console[a5_0x3afca9(0x17b)](_0x5d85d2);[a5_0x3afca9(0x191)]=_0x53428f=>(0x0,proxy_addr_1[a5_0x3afca9(0x170)])(_0x53428f,this[a5_0x3afca9(0x18f)](this['settings'][a5_0x3afca9(0x181)]));constructor(_0x587767,_0x5915bf){const _0x3135d4=a5_0x3afca9;this[_0x3135d4(0x182)]=typeof _0x587767===_0x3135d4(0x16b)?_0x587767:()=>_0x587767,_0x5915bf?(this[_0x3135d4(0x197)]={'mode':_0x5915bf[_0x3135d4(0x185)]??_0x3135d4(0x16f),'log':_0x5915bf['log']??!![],'logLevel':_0x5915bf[_0x3135d4(0x19a)]??_0x3135d4(0x189),'excluding':_0x5915bf[_0x3135d4(0x180)]??[],'trustProxy':_0x5915bf['trustProxy']??![]},this['logger']=_0x5915bf['logF']??this[_0x3135d4(0x171)],typeof _0x5915bf[_0x3135d4(0x191)]===_0x3135d4(0x16b)&&(this[_0x3135d4(0x191)]=_0x5915bf[_0x3135d4(0x191)])):this['settings']={'mode':_0x3135d4(0x16f),'log':!![],'logLevel':_0x3135d4(0x189),'excluding':[],'trustProxy':![]};}[a5_0x3afca9(0x18f)](_0x2d5a62){const _0x2f7b1d=a5_0x3afca9;if(typeof _0x2d5a62===_0x2f7b1d(0x16b))return _0x2d5a62;if(_0x2d5a62===!![])return()=>!![];if(typeof _0x2d5a62===_0x2f7b1d(0x166))return(_0x4310b5,_0x53c04a)=>_0x53c04a<_0x2d5a62;return typeof _0x2d5a62===_0x2f7b1d(0x179)&&(_0x2d5a62=_0x2d5a62[_0x2f7b1d(0x18c)](',')),proxy_addr_1[_0x2f7b1d(0x170)][_0x2f7b1d(0x192)](_0x2d5a62||[]);}['testExplicitIp'](_0x43f2c5,_0x34fc03,_0x3a6d77){const _0x10898a=a5_0x3afca9;return _0x43f2c5===_0x34fc03?_0x3a6d77===_0x10898a(0x198):_0x3a6d77===_0x10898a(0x16f);}['testCidrBlock'](_0x539077,_0x53e73e,_0x4d26c7){const _0x30f055=a5_0x3afca9;return(0x0,range_check_1[_0x30f055(0x173)])(_0x539077,_0x53e73e)?_0x4d26c7===_0x30f055(0x198):_0x4d26c7===_0x30f055(0x16f);}[a5_0x3afca9(0x17f)](_0xb4f89e,_0x570de8,_0x65016f){const _0x4cf3c7=a5_0x3afca9;let _0x3a0337;if(_0x570de8[_0x4cf3c7(0x199)]>0x1){const _0x2e460c=ip_1[_0x4cf3c7(0x170)]['toLong'](_0x570de8[0x0]),_0x4b43ae=ip_1['default'][_0x4cf3c7(0x176)](_0x570de8[0x1]),_0x26d25b=ip_1[_0x4cf3c7(0x170)][_0x4cf3c7(0x176)](_0xb4f89e);_0x3a0337=_0x26d25b>=_0x2e460c&&_0x26d25b<=_0x4b43ae;}else _0x3a0337=_0xb4f89e===_0x570de8[0x0];return _0x3a0337?_0x65016f==='allow':_0x65016f==='deny';}[a5_0x3afca9(0x165)](_0x5cd72f,_0x32efb7,_0x330e4d){const _0x58a71e=a5_0x3afca9;if(typeof _0x5cd72f===_0x58a71e(0x179))return(0x0,range_check_1[_0x58a71e(0x169)])(_0x5cd72f)?this['testCidrBlock'](_0x32efb7,_0x5cd72f,_0x330e4d):this[_0x58a71e(0x172)](_0x32efb7,_0x5cd72f,_0x330e4d);if(typeof _0x5cd72f===_0x58a71e(0x18b))return this[_0x58a71e(0x17f)](_0x32efb7,_0x5cd72f,_0x330e4d);}[a5_0x3afca9(0x18a)](_0x142414,_0x1ba129){const _0x51bd2c=a5_0x3afca9,_0x49a63f=this['settings'][_0x51bd2c(0x185)]??_0x51bd2c(0x16f),_0x375d2a=_0x1ba129['map'](_0x17c937=>this[_0x51bd2c(0x165)](_0x17c937,_0x142414,_0x49a63f));return _0x49a63f===_0x51bd2c(0x198)?_0x375d2a?.[_0x51bd2c(0x175)]((_0x376db7,_0x1a5ad0,_0x4d094e)=>_0x376db7):_0x375d2a?.[_0x51bd2c(0x168)]((_0x1f419f,_0x1ccd85,_0x3df936)=>_0x1f419f);}['error'](_0x5aaeb4,_0x2d4911){const _0x1fbabb=a5_0x3afca9,_0xf1073f=new IpDeniedError_1['IpDeniedError'](_0x1fbabb(0x183)+_0x5aaeb4,{'ip':_0x5aaeb4});return _0x2d4911(_0xf1073f);}get[a5_0x3afca9(0x186)](){return(_0x1e9f80,_0x137d80,_0x36e3f1)=>{const _0x47f07a=a5_0x7fe7,_0x153167=this['checkIP'](_0x1e9f80);if(_0x153167[_0x47f07a(0x18e)])return _0x36e3f1();return this[_0x47f07a(0x16c)](_0x153167['ip'],_0x36e3f1);};}[a5_0x3afca9(0x187)](_0x36a28b){const _0x3a26df=a5_0x3afca9;if(this[_0x3a26df(0x197)][_0x3a26df(0x180)]&&this[_0x3a26df(0x197)]['excluding']['length']>0x0){const _0x5ee67c=this[_0x3a26df(0x197)]['excluding']['filter'](_0x2006e2=>{const _0x22adb9=_0x3a26df,_0x77841e=new RegExp(_0x2006e2);return _0x77841e[_0x22adb9(0x188)](_0x36a28b['url']);});if(_0x5ee67c['length']>0x0)return this['settings'][_0x3a26df(0x17b)]&&this[_0x3a26df(0x197)][_0x3a26df(0x19a)]!==_0x3a26df(0x16f)&&this[_0x3a26df(0x171)](_0x3a26df(0x17c)+_0x5ee67c[0x0]),{'status':!![],'ip':_0x3a26df(0x174),'msg':_0x3a26df(0x17c)+_0x5ee67c[0x0]};}const _0x248122=this[_0x3a26df(0x182)]();if(!_0x248122||!_0x248122['length'])return this[_0x3a26df(0x197)][_0x3a26df(0x185)]===_0x3a26df(0x198)?{'status':![],'ip':_0x3a26df(0x174),'msg':'Allow\x20list\x20empty'}:{'status':!![],'ip':'0.0.0.0/0','msg':'Deny\x20list\x20empty'};const _0x1b2536=this['detectIp'](_0x36a28b);if(this[_0x3a26df(0x18a)](_0x1b2536,_0x248122))return this[_0x3a26df(0x197)]['log']&&this[_0x3a26df(0x197)][_0x3a26df(0x19a)]!==_0x3a26df(0x16f)&&this[_0x3a26df(0x171)](_0x3a26df(0x177)+_0x1b2536),{'status':!![],'ip':_0x1b2536,'msg':'Access\x20granted\x20to\x20IP\x20address:\x20'+_0x1b2536};return this[_0x3a26df(0x197)][_0x3a26df(0x17b)]&&this[_0x3a26df(0x197)][_0x3a26df(0x19a)]!==_0x3a26df(0x198)&&this[_0x3a26df(0x171)](_0x3a26df(0x183)+_0x1b2536),{'status':![],'ip':_0x1b2536,'msg':_0x3a26df(0x183)+_0x1b2536};}}exports['IpFilter']=IpFilter; \ No newline at end of file diff --git a/lib/ip_filter/IpTypes.js b/lib/ip_filter/IpTypes.js index 0e52457..00adfc5 100644 --- a/lib/ip_filter/IpTypes.js +++ b/lib/ip_filter/IpTypes.js @@ -1 +1 @@ -'use strict';var a6_0x1e5bcf=a6_0x11d4;function a6_0x11d4(_0x91d30f,_0x4addc6){var _0x3d9620=a6_0x3d96();return a6_0x11d4=function(_0x11d451,_0x25f0e1){_0x11d451=_0x11d451-0x13b;var _0x5339f3=_0x3d9620[_0x11d451];return _0x5339f3;},a6_0x11d4(_0x91d30f,_0x4addc6);}function a6_0x3d96(){var _0x48870f=['3231iHgIcA','5052008QRdnCp','4069671qNUcnO','10jwmhQR','__esModule','178HzsJuU','4037112yyXRWW','12QBiJFZ','294oyxVyd','116544sQBBJz','2021371ZVuldA','1022725PMKEgc'];a6_0x3d96=function(){return _0x48870f;};return a6_0x3d96();}(function(_0x3601ee,_0x52aabb){var _0x5c9b68=a6_0x11d4,_0x58610c=_0x3601ee();while(!![]){try{var _0x1de28a=parseInt(_0x5c9b68(0x13d))/0x1*(-parseInt(_0x5c9b68(0x142))/0x2)+parseInt(_0x5c9b68(0x13f))/0x3+parseInt(_0x5c9b68(0x13e))/0x4+-parseInt(_0x5c9b68(0x13c))/0x5*(parseInt(_0x5c9b68(0x144))/0x6)+parseInt(_0x5c9b68(0x145))/0x7*(-parseInt(_0x5c9b68(0x146))/0x8)+parseInt(_0x5c9b68(0x143))/0x9*(-parseInt(_0x5c9b68(0x140))/0xa)+-parseInt(_0x5c9b68(0x13b))/0xb;if(_0x1de28a===_0x52aabb)break;else _0x58610c['push'](_0x58610c['shift']());}catch(_0x3bd49e){_0x58610c['push'](_0x58610c['shift']());}}}(a6_0x3d96,0xa5b45));Object['defineProperty'](exports,a6_0x1e5bcf(0x141),{'value':!![]}); \ No newline at end of file +'use strict';var a6_0x4497df=a6_0x3039;(function(_0x570f1c,_0x577d30){var _0x3ac0eb=a6_0x3039,_0x155dda=_0x570f1c();while(!![]){try{var _0x70c3ab=-parseInt(_0x3ac0eb(0x1e0))/0x1*(parseInt(_0x3ac0eb(0x1e7))/0x2)+parseInt(_0x3ac0eb(0x1e6))/0x3+-parseInt(_0x3ac0eb(0x1e3))/0x4*(-parseInt(_0x3ac0eb(0x1e2))/0x5)+-parseInt(_0x3ac0eb(0x1e4))/0x6+parseInt(_0x3ac0eb(0x1e8))/0x7+-parseInt(_0x3ac0eb(0x1ea))/0x8+-parseInt(_0x3ac0eb(0x1e1))/0x9*(parseInt(_0x3ac0eb(0x1e9))/0xa);if(_0x70c3ab===_0x577d30)break;else _0x155dda['push'](_0x155dda['shift']());}catch(_0x1ffd96){_0x155dda['push'](_0x155dda['shift']());}}}(a6_0x1c8a,0xe8b35));function a6_0x1c8a(){var _0x1b649a=['defineProperty','40615vkNVEZ','9XEqyXS','5nlqMOQ','7610244SSMIXR','11377608GPLdye','__esModule','4291329tSuTRk','14QGCkRI','4710139xiODxc','7778970zbzjYC','754160ezmfyd'];a6_0x1c8a=function(){return _0x1b649a;};return a6_0x1c8a();}function a6_0x3039(_0x3c512b,_0x22f9ba){var _0x1c8abe=a6_0x1c8a();return a6_0x3039=function(_0x30395f,_0x13762f){_0x30395f=_0x30395f-0x1df;var _0x2fe2a7=_0x1c8abe[_0x30395f];return _0x2fe2a7;},a6_0x3039(_0x3c512b,_0x22f9ba);}Object[a6_0x4497df(0x1df)](exports,a6_0x4497df(0x1e5),{'value':!![]}); \ No newline at end of file diff --git a/lib/ip_filter/index.js b/lib/ip_filter/index.js index 967d6cd..fe37ede 100644 --- a/lib/ip_filter/index.js +++ b/lib/ip_filter/index.js @@ -1 +1 @@ -'use strict';var a3_0x50fe4c=a3_0x2235;(function(_0x1fef2a,_0x5ef0eb){var _0x6bcba=a3_0x2235,_0x28b660=_0x1fef2a();while(!![]){try{var _0xb1936=-parseInt(_0x6bcba(0x117))/0x1+parseInt(_0x6bcba(0x10c))/0x2+parseInt(_0x6bcba(0x10a))/0x3*(parseInt(_0x6bcba(0x10b))/0x4)+-parseInt(_0x6bcba(0x111))/0x5+parseInt(_0x6bcba(0x112))/0x6+parseInt(_0x6bcba(0x116))/0x7+parseInt(_0x6bcba(0x113))/0x8*(-parseInt(_0x6bcba(0x102))/0x9);if(_0xb1936===_0x5ef0eb)break;else _0x28b660['push'](_0x28b660['shift']());}catch(_0x63e6e4){_0x28b660['push'](_0x28b660['shift']());}}}(a3_0x273c,0x93c0e));function a3_0x273c(){var _0x3e9f47=['configurable','__exportStar','__esModule','writable','1596565gmmawx','2885310kRSlpB','118384GjrYuh','getOwnPropertyDescriptor','get','2613779WpcEHe','907030HWOlvw','423zHDudT','./IpTypes','./IpFilter','create','call','defineProperty','__createBinding','prototype','789VCxrsu','15332CGFOaW','1329372TxOlSH'];a3_0x273c=function(){return _0x3e9f47;};return a3_0x273c();}var __createBinding=this&&this[a3_0x50fe4c(0x108)]||(Object[a3_0x50fe4c(0x105)]?function(_0x3704ce,_0x2b66c1,_0x41b553,_0x4e7fa5){var _0x551331=a3_0x50fe4c;if(_0x4e7fa5===undefined)_0x4e7fa5=_0x41b553;var _0x1f3804=Object[_0x551331(0x114)](_0x2b66c1,_0x41b553);(!_0x1f3804||(_0x551331(0x115)in _0x1f3804?!_0x2b66c1['__esModule']:_0x1f3804[_0x551331(0x110)]||_0x1f3804[_0x551331(0x10d)]))&&(_0x1f3804={'enumerable':!![],'get':function(){return _0x2b66c1[_0x41b553];}}),Object['defineProperty'](_0x3704ce,_0x4e7fa5,_0x1f3804);}:function(_0x6dd8e9,_0x55aece,_0x24fa76,_0x4dc0ff){if(_0x4dc0ff===undefined)_0x4dc0ff=_0x24fa76;_0x6dd8e9[_0x4dc0ff]=_0x55aece[_0x24fa76];}),__exportStar=this&&this[a3_0x50fe4c(0x10e)]||function(_0x47877a,_0x2e95cc){var _0x1fc98c=a3_0x50fe4c;for(var _0x1d1d24 in _0x47877a)if(_0x1d1d24!=='default'&&!Object[_0x1fc98c(0x109)]['hasOwnProperty'][_0x1fc98c(0x106)](_0x2e95cc,_0x1d1d24))__createBinding(_0x2e95cc,_0x47877a,_0x1d1d24);};function a3_0x2235(_0xfed688,_0x109b6d){var _0x273cf8=a3_0x273c();return a3_0x2235=function(_0x223563,_0x42ff88){_0x223563=_0x223563-0x102;var _0x9cc1fe=_0x273cf8[_0x223563];return _0x9cc1fe;},a3_0x2235(_0xfed688,_0x109b6d);}Object[a3_0x50fe4c(0x107)](exports,a3_0x50fe4c(0x10f),{'value':!![]}),__exportStar(require(a3_0x50fe4c(0x104)),exports),__exportStar(require('./IpDeniedError'),exports),__exportStar(require(a3_0x50fe4c(0x103)),exports); \ No newline at end of file +'use strict';var a3_0x1a49b2=a3_0x47e6;(function(_0x23979c,_0x457fa2){var _0x3c1e75=a3_0x47e6,_0x3541d7=_0x23979c();while(!![]){try{var _0x1f7519=parseInt(_0x3c1e75(0xe7))/0x1+parseInt(_0x3c1e75(0xea))/0x2+parseInt(_0x3c1e75(0xf6))/0x3+-parseInt(_0x3c1e75(0xe6))/0x4*(-parseInt(_0x3c1e75(0xec))/0x5)+-parseInt(_0x3c1e75(0xe4))/0x6*(parseInt(_0x3c1e75(0xf1))/0x7)+parseInt(_0x3c1e75(0xe3))/0x8+-parseInt(_0x3c1e75(0xe9))/0x9;if(_0x1f7519===_0x457fa2)break;else _0x3541d7['push'](_0x3541d7['shift']());}catch(_0x2b1587){_0x3541d7['push'](_0x3541d7['shift']());}}}(a3_0x36a2,0xbd011));var __createBinding=this&&this[a3_0x1a49b2(0xf5)]||(Object[a3_0x1a49b2(0xe8)]?function(_0x1c08be,_0x599dda,_0x464418,_0x10628c){var _0x5a2d8c=a3_0x1a49b2;if(_0x10628c===undefined)_0x10628c=_0x464418;var _0x46a485=Object[_0x5a2d8c(0xf0)](_0x599dda,_0x464418);(!_0x46a485||('get'in _0x46a485?!_0x599dda[_0x5a2d8c(0xef)]:_0x46a485[_0x5a2d8c(0xee)]||_0x46a485[_0x5a2d8c(0xed)]))&&(_0x46a485={'enumerable':!![],'get':function(){return _0x599dda[_0x464418];}}),Object[_0x5a2d8c(0xf4)](_0x1c08be,_0x10628c,_0x46a485);}:function(_0x1053df,_0x46fa89,_0x4aeea6,_0x105702){if(_0x105702===undefined)_0x105702=_0x4aeea6;_0x1053df[_0x105702]=_0x46fa89[_0x4aeea6];}),__exportStar=this&&this[a3_0x1a49b2(0xf8)]||function(_0x3503c6,_0x513a2a){var _0x31918c=a3_0x1a49b2;for(var _0x484077 in _0x3503c6)if(_0x484077!=='default'&&!Object[_0x31918c(0xf7)][_0x31918c(0xf3)][_0x31918c(0xe5)](_0x513a2a,_0x484077))__createBinding(_0x513a2a,_0x3503c6,_0x484077);};function a3_0x47e6(_0x4cfd77,_0x3935ba){var _0x36a27b=a3_0x36a2();return a3_0x47e6=function(_0x47e61e,_0x1dc97e){_0x47e61e=_0x47e61e-0xe3;var _0x5cf642=_0x36a27b[_0x47e61e];return _0x5cf642;},a3_0x47e6(_0x4cfd77,_0x3935ba);}Object[a3_0x1a49b2(0xf4)](exports,a3_0x1a49b2(0xef),{'value':!![]}),__exportStar(require(a3_0x1a49b2(0xeb)),exports),__exportStar(require('./IpDeniedError'),exports),__exportStar(require(a3_0x1a49b2(0xf2)),exports);function a3_0x36a2(){var _0x3b1497=['configurable','writable','__esModule','getOwnPropertyDescriptor','126PGSYEQ','./IpTypes','hasOwnProperty','defineProperty','__createBinding','628965qLjBqE','prototype','__exportStar','8812472oMZZaC','373422FxNAdi','call','140232YExwKw','31414rORVka','create','1431675JcVgWa','299892QnOyBG','./IpFilter','80TmQjNM'];a3_0x36a2=function(){return _0x3b1497;};return a3_0x36a2();} \ No newline at end of file diff --git a/lib/utils/byte.js b/lib/utils/byte.js index 4a8abe1..b9a0c42 100644 --- a/lib/utils/byte.js +++ b/lib/utils/byte.js @@ -1 +1 @@ -'use strict';var a7_0x4f2b86=a7_0x76e1;function a7_0x76e1(_0x18e41a,_0x5d2ca2){var _0x41a1d1=a7_0x41a1();return a7_0x76e1=function(_0x76e114,_0x2ead20){_0x76e114=_0x76e114-0x109;var _0xc5096d=_0x41a1d1[_0x76e114];return _0xc5096d;},a7_0x76e1(_0x18e41a,_0x5d2ca2);}(function(_0x58d5dc,_0xc4d1a4){var _0x973769=a7_0x76e1,_0x2a3518=_0x58d5dc();while(!![]){try{var _0x4d3ab6=-parseInt(_0x973769(0x11b))/0x1+parseInt(_0x973769(0x10b))/0x2+parseInt(_0x973769(0x115))/0x3+-parseInt(_0x973769(0x111))/0x4*(parseInt(_0x973769(0x110))/0x5)+parseInt(_0x973769(0x10f))/0x6+parseInt(_0x973769(0x117))/0x7*(-parseInt(_0x973769(0x119))/0x8)+-parseInt(_0x973769(0x113))/0x9;if(_0x4d3ab6===_0xc4d1a4)break;else _0x2a3518['push'](_0x2a3518['shift']());}catch(_0x438b36){_0x2a3518['push'](_0x2a3518['shift']());}}}(a7_0x41a1,0x6c056));Object[a7_0x4f2b86(0x11a)](exports,'__esModule',{'value':!![]}),exports['Byte']=void 0x0;class Byte{[a7_0x4f2b86(0x116)];constructor(_0x15bac1){var _0x2582ef=a7_0x4f2b86;this[_0x2582ef(0x116)]=new Uint8Array(0x1),this[_0x2582ef(0x116)][0x0]=_0x15bac1;}static[a7_0x4f2b86(0x114)](_0x554bed){return new Byte(_0x554bed);}get[a7_0x4f2b86(0x11c)](){var _0x50491f=a7_0x4f2b86;return this[_0x50491f(0x116)][0x0];}set[a7_0x4f2b86(0x11c)](_0x5357db){var _0x48c76b=a7_0x4f2b86;this[_0x48c76b(0x116)][0x0]=_0x5357db;}[a7_0x4f2b86(0x10d)](_0x40c908){var _0x22b547=a7_0x4f2b86;return _0x40c908[_0x22b547(0x112)](_0x13be55=>{var _0x3d18ef=_0x22b547;_0x13be55['value']?this[_0x3d18ef(0x10e)](_0x13be55[_0x3d18ef(0x10a)]):this[_0x3d18ef(0x109)](_0x13be55[_0x3d18ef(0x10a)]);}),this[_0x22b547(0x11c)];}[a7_0x4f2b86(0x10c)](_0x55e264,_0xa8bf32){var _0x4e264a=a7_0x4f2b86;return _0xa8bf32?this[_0x4e264a(0x10e)](_0x55e264):this[_0x4e264a(0x109)](_0x55e264),this[_0x4e264a(0x11c)];}[a7_0x4f2b86(0x10e)](_0x11216a){var _0x4627ed=a7_0x4f2b86;return this[_0x4627ed(0x11c)]|=0x1<<_0x11216a,this[_0x4627ed(0x11c)];}[a7_0x4f2b86(0x109)](_0x2fecf9){var _0x2be6ab=a7_0x4f2b86;return this[_0x2be6ab(0x11c)]&=~(0x1<<_0x2fecf9),this[_0x2be6ab(0x11c)];}['readBit'](_0x548c87){var _0x3788c6=a7_0x4f2b86;return(this[_0x3788c6(0x11c)]&0x1<<_0x548c87)>0x0;}}function a7_0x41a1(){var _0x2cb7d0=['92SYwtgf','forEach','1608039qLXGuM','from','810468dvKFfn','_byte','35KkdVwn','Byte','767496fXQfiY','defineProperty','831610quSkYO','value','setBitLow','position','1749356oFdfhf','setBit','setBits','setBitHigh','4852476oMmwTT','4600qAwgUd'];a7_0x41a1=function(){return _0x2cb7d0;};return a7_0x41a1();}exports[a7_0x4f2b86(0x118)]=Byte; \ No newline at end of file +'use strict';var a7_0x310c27=a7_0x5e0d;(function(_0x264db4,_0x146225){var _0x23d921=a7_0x5e0d,_0x311bb9=_0x264db4();while(!![]){try{var _0x841192=-parseInt(_0x23d921(0x128))/0x1*(-parseInt(_0x23d921(0x126))/0x2)+parseInt(_0x23d921(0x129))/0x3+parseInt(_0x23d921(0x11d))/0x4*(parseInt(_0x23d921(0x12e))/0x5)+parseInt(_0x23d921(0x121))/0x6+-parseInt(_0x23d921(0x130))/0x7+parseInt(_0x23d921(0x11e))/0x8*(-parseInt(_0x23d921(0x12b))/0x9)+-parseInt(_0x23d921(0x11f))/0xa;if(_0x841192===_0x146225)break;else _0x311bb9['push'](_0x311bb9['shift']());}catch(_0x23fc60){_0x311bb9['push'](_0x311bb9['shift']());}}}(a7_0x5a8d,0x5863b));function a7_0x5a8d(){var _0x414d56=['__esModule','1299774GuAnts','524rkZTax','8sReErN','8068140FYrRIE','_byte','2126592pCRiVg','defineProperty','position','setBits','value','1397274IOxnYj','Byte','1URXQXx','400818zIVMuY','setBitLow','3982185CcyyIH','readBit','setBitHigh','23295DAOeCd'];a7_0x5a8d=function(){return _0x414d56;};return a7_0x5a8d();}function a7_0x5e0d(_0x155bcc,_0x189433){var _0x5a8df9=a7_0x5a8d();return a7_0x5e0d=function(_0x5e0de8,_0x2b03e6){_0x5e0de8=_0x5e0de8-0x11d;var _0x8b5f9d=_0x5a8df9[_0x5e0de8];return _0x8b5f9d;},a7_0x5e0d(_0x155bcc,_0x189433);}Object[a7_0x310c27(0x122)](exports,a7_0x310c27(0x12f),{'value':!![]}),exports[a7_0x310c27(0x127)]=void 0x0;class Byte{[a7_0x310c27(0x120)];constructor(_0x446925){var _0x8a3708=a7_0x310c27;this['_byte']=new Uint8Array(0x1),this[_0x8a3708(0x120)][0x0]=_0x446925;}static['from'](_0x1aa1b2){return new Byte(_0x1aa1b2);}get['value'](){return this['_byte'][0x0];}set[a7_0x310c27(0x125)](_0x166616){var _0x86c548=a7_0x310c27;this[_0x86c548(0x120)][0x0]=_0x166616;}[a7_0x310c27(0x124)](_0x187600){var _0x51dc5c=a7_0x310c27;return _0x187600['forEach'](_0x41106c=>{var _0x2b5e98=a7_0x5e0d;_0x41106c[_0x2b5e98(0x125)]?this[_0x2b5e98(0x12d)](_0x41106c[_0x2b5e98(0x123)]):this[_0x2b5e98(0x12a)](_0x41106c[_0x2b5e98(0x123)]);}),this[_0x51dc5c(0x125)];}['setBit'](_0x5a97be,_0x431eef){var _0x2eedd7=a7_0x310c27;return _0x431eef?this['setBitHigh'](_0x5a97be):this[_0x2eedd7(0x12a)](_0x5a97be),this[_0x2eedd7(0x125)];}[a7_0x310c27(0x12d)](_0x308204){var _0x29f31a=a7_0x310c27;return this[_0x29f31a(0x125)]|=0x1<<_0x308204,this[_0x29f31a(0x125)];}[a7_0x310c27(0x12a)](_0xb99bfe){var _0x460efa=a7_0x310c27;return this[_0x460efa(0x125)]&=~(0x1<<_0xb99bfe),this['value'];}[a7_0x310c27(0x12c)](_0x6b0da){return(this['value']&0x1<<_0x6b0da)>0x0;}}exports[a7_0x310c27(0x127)]=Byte; \ No newline at end of file diff --git a/lib/utils/rotines.js b/lib/utils/rotines.js index f2ac045..d86bbab 100644 --- a/lib/utils/rotines.js +++ b/lib/utils/rotines.js @@ -1 +1 @@ -'use strict';const a8_0x418503=a8_0x267e;(function(_0x35c246,_0x508c52){const _0x325a28=a8_0x267e,_0x2f03e4=_0x35c246();while(!![]){try{const _0x51637d=parseInt(_0x325a28(0x1bc))/0x1+-parseInt(_0x325a28(0x1b7))/0x2*(-parseInt(_0x325a28(0x1b1))/0x3)+-parseInt(_0x325a28(0x1b5))/0x4+-parseInt(_0x325a28(0x1ae))/0x5+-parseInt(_0x325a28(0x1af))/0x6+parseInt(_0x325a28(0x1c3))/0x7*(parseInt(_0x325a28(0x1a8))/0x8)+parseInt(_0x325a28(0x1c5))/0x9;if(_0x51637d===_0x508c52)break;else _0x2f03e4['push'](_0x2f03e4['shift']());}catch(_0x58a5e6){_0x2f03e4['push'](_0x2f03e4['shift']());}}}(a8_0x4010,0xa91fd));Object[a8_0x418503(0x1ab)](exports,a8_0x418503(0x1a9),{'value':!![]}),exports['Routines']=void 0x0;function a8_0x267e(_0x5d93f9,_0x53d9d2){const _0x401071=a8_0x4010();return a8_0x267e=function(_0x267eae,_0x598855){_0x267eae=_0x267eae-0x1a6;let _0x2b9ac3=_0x401071[_0x267eae];return _0x2b9ac3;},a8_0x267e(_0x5d93f9,_0x53d9d2);}const buffer_1=require(a8_0x418503(0x1bb));class Routines{static ['CompletaCampos']=(_0x5d80f0,_0x5423d5,_0xcafb19,_0x413598,_0x5d4e31=!![])=>{const _0xacafa3=a8_0x418503;if(_0x5d80f0[_0xacafa3(0x1b8)]<_0x413598)return _0xcafb19==='E'?_0x5d80f0[_0xacafa3(0x1aa)](_0x413598,_0x5423d5):_0x5d80f0[_0xacafa3(0x1ac)](_0x413598,_0x5423d5);else{if(_0x5d80f0[_0xacafa3(0x1b8)]>_0x413598&&_0x5d4e31)return _0x5d80f0[_0xacafa3(0x1be)](0x0,_0x413598);}return _0x5d80f0;};static [a8_0x418503(0x1c1)]=_0x387bb1=>{const _0x4f0259=a8_0x418503;if(_0x387bb1[_0x4f0259(0x1b8)]>0x2)return _0x387bb1[0x0]<<0x8|_0x387bb1[0x1];};static [a8_0x418503(0x1bf)]=_0x23ce44=>{const _0x4eca9b=a8_0x418503;if(Routines[_0x4eca9b(0x1c6)](_0x23ce44[_0x4eca9b(0x1b8)],0x1,0x4)){let _0xf7cc2b=0x0;for(let _0x1314eb=0x0;_0x1314eb<_0x23ce44[_0x4eca9b(0x1b8)];_0x1314eb++){_0xf7cc2b|=_0x23ce44[_0x23ce44[_0x4eca9b(0x1b8)]-0x1-_0x1314eb]<<_0x1314eb*0x8;}return _0xf7cc2b;}};static [a8_0x418503(0x1bd)]=_0x2100c7=>{const _0x536d04=a8_0x418503;let _0x566a2c='';return _0x2100c7[_0x536d04(0x1c4)](_0x2483ec=>{const _0x7fd414=_0x536d04;return _0x566a2c+=String[_0x7fd414(0x1b9)](_0x2483ec),_0x2483ec;}),_0x566a2c;};static [a8_0x418503(0x1a6)]=_0x1a54c7=>buffer_1[a8_0x418503(0x1b2)][a8_0x418503(0x1b3)](_0x1a54c7)[a8_0x418503(0x1a7)](a8_0x418503(0x1c2));static [a8_0x418503(0x1b0)]=_0x31c316=>{const _0x576453=a8_0x418503;let _0x1127da='';_0x31c316[_0x576453(0x1b8)]%0x2!==0x0?_0x1127da=_0x31c316[_0x576453(0x1aa)](_0x31c316[_0x576453(0x1b8)]+0x1,'0'):_0x1127da=_0x31c316;const _0x4f50d0=new Uint8Array(_0x31c316['length']/0x2);for(let _0x5c031e=0x0,_0x548d9a=0x0;_0x5c031e<_0x31c316[_0x576453(0x1b8)];_0x5c031e+=0x2,_0x548d9a++){_0x4f50d0[_0x548d9a]=parseInt(_0x31c316['substr'](_0x5c031e,0x2),0x10);}return _0x4f50d0;};static [a8_0x418503(0x1b6)]=_0x24c512=>{const _0x51b405=a8_0x418503,_0x162cdb=new Uint8Array(_0x24c512[_0x51b405(0x1b8)]);let _0x1ce230=0x0;for(const _0x4a9ebb of _0x24c512){_0x162cdb[_0x1ce230++]=_0x4a9ebb[_0x51b405(0x1c0)](0x0);}return _0x162cdb;};static ['between']=(_0x3ec56a,_0x4d3b0b,_0x58fe2f)=>_0x3ec56a>=_0x4d3b0b&&_0x3ec56a<=_0x58fe2f;static [a8_0x418503(0x1ad)]=(_0x5c5256,_0x54309a)=>{try{return isNaN(Number(_0x5c5256))?_0x54309a:Number(_0x5c5256);}catch(_0x3946d2){return _0x54309a;}};static[a8_0x418503(0x1c7)](_0x563722){const _0x1b0f4b=a8_0x418503;return _0x563722==='1'||_0x563722===_0x1b0f4b(0x1b4)||_0x563722===!![];}}function a8_0x4010(){const _0x2478ab=['ByteToHexa','toString','8HAElFo','__esModule','padStart','defineProperty','padEnd','parseNumber','6187490sfOrHO','5187144XlmDUX','StrHexaToByte','1699203aZXYwd','Buffer','from','true','1414296XGjkRw','StrToByte','2uepwrF','length','fromCharCode','Routines','buffer','1130371PFLpCd','ByteToString','substr','ByteToNumber','charCodeAt','ByteToWord','hex','7089845LlRIax','map','3948498GZhCEl','between','evalBool'];a8_0x4010=function(){return _0x2478ab;};return a8_0x4010();}exports[a8_0x418503(0x1ba)]=Routines; \ No newline at end of file +'use strict';const a10_0x552344=a10_0x1ff5;function a10_0x1ff5(_0x52f06b,_0x4aa4ae){const _0x42d28a=a10_0x42d2();return a10_0x1ff5=function(_0x1ff57b,_0x33d327){_0x1ff57b=_0x1ff57b-0x115;let _0x51073c=_0x42d28a[_0x1ff57b];return _0x51073c;},a10_0x1ff5(_0x52f06b,_0x4aa4ae);}(function(_0x507eac,_0x44041e){const _0x974c2e=a10_0x1ff5,_0xe92bc4=_0x507eac();while(!![]){try{const _0x8d813a=parseInt(_0x974c2e(0x121))/0x1+-parseInt(_0x974c2e(0x12a))/0x2+parseInt(_0x974c2e(0x12b))/0x3+-parseInt(_0x974c2e(0x11d))/0x4+parseInt(_0x974c2e(0x124))/0x5*(-parseInt(_0x974c2e(0x11f))/0x6)+-parseInt(_0x974c2e(0x128))/0x7+parseInt(_0x974c2e(0x123))/0x8*(-parseInt(_0x974c2e(0x12f))/0x9);if(_0x8d813a===_0x44041e)break;else _0xe92bc4['push'](_0xe92bc4['shift']());}catch(_0x3f38a9){_0xe92bc4['push'](_0xe92bc4['shift']());}}}(a10_0x42d2,0x66b2b));Object[a10_0x552344(0x115)](exports,a10_0x552344(0x130),{'value':!![]}),exports[a10_0x552344(0x127)]=void 0x0;const buffer_1=require(a10_0x552344(0x11e));function a10_0x42d2(){const _0x732f50=['341724XPWxrT','buffer','51768XLjntT','substr','823386bpWMdu','length','8CGhSZL','85ygfGTN','parseNumber','ByteToNumber','Routines','604730ZKQmCT','map','615056kYXMWo','1660917SWdlhW','padEnd','from','StrToByte','2973141gGtYQt','__esModule','charCodeAt','defineProperty','evalBool','true','CompletaCampos','padStart','StrHexaToByte','between','toString'];a10_0x42d2=function(){return _0x732f50;};return a10_0x42d2();}class Routines{static [a10_0x552344(0x118)]=(_0x1bd905,_0x3895a1,_0x5178d7,_0x476441,_0x52748f=!![])=>{const _0x2d0a2b=a10_0x552344;if(_0x1bd905[_0x2d0a2b(0x122)]<_0x476441)return _0x5178d7==='E'?_0x1bd905[_0x2d0a2b(0x119)](_0x476441,_0x3895a1):_0x1bd905[_0x2d0a2b(0x12c)](_0x476441,_0x3895a1);else{if(_0x1bd905['length']>_0x476441&&_0x52748f)return _0x1bd905['substr'](0x0,_0x476441);}return _0x1bd905;};static ['ByteToWord']=_0x51affd=>{const _0x2dba89=a10_0x552344;if(_0x51affd[_0x2dba89(0x122)]>0x2)return _0x51affd[0x0]<<0x8|_0x51affd[0x1];};static [a10_0x552344(0x126)]=_0x411320=>{const _0x169ba3=a10_0x552344;if(Routines['between'](_0x411320['length'],0x1,0x4)){let _0x56ec80=0x0;for(let _0x4dfb8b=0x0;_0x4dfb8b<_0x411320[_0x169ba3(0x122)];_0x4dfb8b++){_0x56ec80|=_0x411320[_0x411320[_0x169ba3(0x122)]-0x1-_0x4dfb8b]<<_0x4dfb8b*0x8;}return _0x56ec80;}};static ['ByteToString']=_0x2239a3=>{const _0x45050d=a10_0x552344;let _0x488d2e='';return _0x2239a3[_0x45050d(0x129)](_0x3ad378=>{return _0x488d2e+=String['fromCharCode'](_0x3ad378),_0x3ad378;}),_0x488d2e;};static ['ByteToHexa']=_0x302f25=>buffer_1['Buffer'][a10_0x552344(0x12d)](_0x302f25)[a10_0x552344(0x11c)]('hex');static [a10_0x552344(0x11a)]=_0x21bb47=>{const _0x567863=a10_0x552344;let _0x2535d4='';_0x21bb47[_0x567863(0x122)]%0x2!==0x0?_0x2535d4=_0x21bb47['padStart'](_0x21bb47['length']+0x1,'0'):_0x2535d4=_0x21bb47;const _0x1e98ea=new Uint8Array(_0x21bb47['length']/0x2);for(let _0x3be162=0x0,_0x310f20=0x0;_0x3be162<_0x21bb47[_0x567863(0x122)];_0x3be162+=0x2,_0x310f20++){_0x1e98ea[_0x310f20]=parseInt(_0x21bb47[_0x567863(0x120)](_0x3be162,0x2),0x10);}return _0x1e98ea;};static [a10_0x552344(0x12e)]=_0x22336c=>{const _0x512e0a=a10_0x552344,_0x556caa=new Uint8Array(_0x22336c[_0x512e0a(0x122)]);let _0x5ce581=0x0;for(const _0x55e3fa of _0x22336c){_0x556caa[_0x5ce581++]=_0x55e3fa[_0x512e0a(0x131)](0x0);}return _0x556caa;};static [a10_0x552344(0x11b)]=(_0x10efe3,_0x3a2d3f,_0x4dffa4)=>_0x10efe3>=_0x3a2d3f&&_0x10efe3<=_0x4dffa4;static [a10_0x552344(0x125)]=(_0x5479ae,_0x45675e)=>{try{return isNaN(Number(_0x5479ae))?_0x45675e:Number(_0x5479ae);}catch(_0x5368f1){return _0x45675e;}};static[a10_0x552344(0x116)](_0x255791){const _0x299132=a10_0x552344;return _0x255791==='1'||_0x255791===_0x299132(0x117)||_0x255791===!![];}}exports[a10_0x552344(0x127)]=Routines; \ No newline at end of file diff --git a/package.json b/package.json index 080f277..0b60cf4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fre-utils", - "version": "1.1.2", + "version": "1.1.3", "description": "FRE Access Systems Utilities", "bin": "lib/index.js", "main": "lib/index.js",