From 1d8b7efee1ea13fe35e3f117983a4fa8e2b09af3 Mon Sep 17 00:00:00 2001 From: Daniel Yukio Date: Mon, 22 Jan 2024 08:49:49 -0300 Subject: [PATCH] v1.1.3 --- lib/exception/FreGenericException.js | 2 +- lib/exception/index.js | 2 +- 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/index.js | 2 +- lib/utils/logs.js | 2 +- lib/utils/rotines.js | 2 +- package.json | 103 ++++++++++++++------------- 12 files changed, 64 insertions(+), 61 deletions(-) diff --git a/lib/exception/FreGenericException.js b/lib/exception/FreGenericException.js index ca7cfe1..2035e40 100644 --- a/lib/exception/FreGenericException.js +++ b/lib/exception/FreGenericException.js @@ -1 +1 @@ -'use strict';var a0_0x319652=a0_0x3ac0;(function(_0x158440,_0x5b4146){var _0x22228f=a0_0x3ac0,_0x9bd27c=_0x158440();while(!![]){try{var _0x230623=parseInt(_0x22228f(0xd9))/0x1*(parseInt(_0x22228f(0xe1))/0x2)+parseInt(_0x22228f(0xda))/0x3*(-parseInt(_0x22228f(0xdd))/0x4)+parseInt(_0x22228f(0xe0))/0x5*(parseInt(_0x22228f(0xd5))/0x6)+parseInt(_0x22228f(0xd1))/0x7+parseInt(_0x22228f(0xd8))/0x8*(parseInt(_0x22228f(0xd6))/0x9)+-parseInt(_0x22228f(0xd4))/0xa*(-parseInt(_0x22228f(0xde))/0xb)+-parseInt(_0x22228f(0xd0))/0xc;if(_0x230623===_0x5b4146)break;else _0x9bd27c['push'](_0x9bd27c['shift']());}catch(_0x47ec6f){_0x9bd27c['push'](_0x9bd27c['shift']());}}}(a0_0x15bf,0xa80d5));function a0_0x3ac0(_0x3494ed,_0x29692a){var _0x15bf06=a0_0x15bf();return a0_0x3ac0=function(_0x3ac02d,_0x3c750b){_0x3ac02d=_0x3ac02d-0xd0;var _0x25f0d8=_0x15bf06[_0x3ac02d];return _0x25f0d8;},a0_0x3ac0(_0x3494ed,_0x29692a);}Object[a0_0x319652(0xd7)](exports,'__esModule',{'value':!![]}),exports[a0_0x319652(0xdf)]=void 0x0;function a0_0x15bf(){var _0x58e80c=['24Ezfvix','10dGqdGt','3822qMvaTP','status','name','844hxmsDq','313676nrbfcq','FreGenericException','5eSRxID','198808oUsZXQ','extra','constructor','statusCode','25843908xVDxIc','5360635mmPYrH','Exception','captureStackTrace','10vrqBUK','1908570USkMsu','3013074IABwLh','defineProperty'];a0_0x15bf=function(){return _0x58e80c;};return a0_0x15bf();}class FreGenericException extends Error{['statusCode'];[a0_0x319652(0xdb)];[a0_0x319652(0xe2)];constructor(_0x58941b,_0x1948f1,_0x4106c2){var _0x43a1f6=a0_0x319652;_0x1948f1=_0x1948f1??_0x43a1f6(0xd2),super(_0x1948f1),this['message']=_0x1948f1,this['name']=this['constructor'][_0x43a1f6(0xdc)],Error[_0x43a1f6(0xd3)](this,this[_0x43a1f6(0xe3)]),this[_0x43a1f6(0xe2)]=_0x4106c2,this['status']=this[_0x43a1f6(0xe4)]=_0x58941b;}}exports[a0_0x319652(0xdf)]=FreGenericException; \ No newline at end of file +'use strict';function a0_0xaa5b(){var _0x2e250a=['statusCode','message','329rZuROT','2770120CWBZNc','defineProperty','285265WPNYpR','__esModule','146547fwfjYH','status','FreGenericException','6CNQvhY','161142jFoGMt','constructor','13859541wVoXBs','name','748360OKAJic','92erFmZD','captureStackTrace','36501310bCDOZe'];a0_0xaa5b=function(){return _0x2e250a;};return a0_0xaa5b();}var a0_0x3369f0=a0_0x4d12;(function(_0x232894,_0x2e24ca){var _0x2751c6=a0_0x4d12,_0x47268e=_0x232894();while(!![]){try{var _0x53c2bf=parseInt(_0x2751c6(0xdc))/0x1+-parseInt(_0x2751c6(0xea))/0x2*(-parseInt(_0x2751c6(0xe7))/0x3)+-parseInt(_0x2751c6(0xdd))/0x4*(parseInt(_0x2751c6(0xe5))/0x5)+-parseInt(_0x2751c6(0xeb))/0x6*(parseInt(_0x2751c6(0xe2))/0x7)+parseInt(_0x2751c6(0xe3))/0x8+-parseInt(_0x2751c6(0xda))/0x9+parseInt(_0x2751c6(0xdf))/0xa;if(_0x53c2bf===_0x2e24ca)break;else _0x47268e['push'](_0x47268e['shift']());}catch(_0xda5885){_0x47268e['push'](_0x47268e['shift']());}}}(a0_0xaa5b,0xbda98));Object[a0_0x3369f0(0xe4)](exports,a0_0x3369f0(0xe6),{'value':!![]}),exports[a0_0x3369f0(0xe9)]=void 0x0;function a0_0x4d12(_0x51542b,_0x594849){var _0xaa5bb3=a0_0xaa5b();return a0_0x4d12=function(_0x4d12d6,_0x2b1e53){_0x4d12d6=_0x4d12d6-0xda;var _0x4bce3d=_0xaa5bb3[_0x4d12d6];return _0x4bce3d;},a0_0x4d12(_0x51542b,_0x594849);}class FreGenericException extends Error{[a0_0x3369f0(0xe0)];[a0_0x3369f0(0xe8)];['extra'];constructor(_0x34036f,_0x4e82ba,_0xb5123c){var _0x483da6=a0_0x3369f0;_0x4e82ba=_0x4e82ba??'Exception',super(_0x4e82ba),this[_0x483da6(0xe1)]=_0x4e82ba,this[_0x483da6(0xdb)]=this[_0x483da6(0xec)][_0x483da6(0xdb)],Error[_0x483da6(0xde)](this,this[_0x483da6(0xec)]),this['extra']=_0xb5123c,this['status']=this[_0x483da6(0xe0)]=_0x34036f;}}exports[a0_0x3369f0(0xe9)]=FreGenericException; \ No newline at end of file diff --git a/lib/exception/index.js b/lib/exception/index.js index f3f01f8..e4683f3 100644 --- a/lib/exception/index.js +++ b/lib/exception/index.js @@ -1 +1 @@ -'use strict';var a1_0x482c3a=a1_0x3218;(function(_0x9236b9,_0x17226f){var _0x4b58a2=a1_0x3218,_0x40fb1c=_0x9236b9();while(!![]){try{var _0x592375=parseInt(_0x4b58a2(0xfa))/0x1*(-parseInt(_0x4b58a2(0xe4))/0x2)+-parseInt(_0x4b58a2(0xe6))/0x3*(-parseInt(_0x4b58a2(0xf2))/0x4)+-parseInt(_0x4b58a2(0xf5))/0x5*(parseInt(_0x4b58a2(0xec))/0x6)+parseInt(_0x4b58a2(0xf3))/0x7*(-parseInt(_0x4b58a2(0xe3))/0x8)+parseInt(_0x4b58a2(0xed))/0x9*(parseInt(_0x4b58a2(0xf4))/0xa)+parseInt(_0x4b58a2(0xe7))/0xb*(-parseInt(_0x4b58a2(0xe9))/0xc)+parseInt(_0x4b58a2(0xf8))/0xd*(parseInt(_0x4b58a2(0xeb))/0xe);if(_0x592375===_0x17226f)break;else _0x40fb1c['push'](_0x40fb1c['shift']());}catch(_0x251e99){_0x40fb1c['push'](_0x40fb1c['shift']());}}}(a1_0x4899,0x3d7da));function a1_0x3218(_0x56a6cd,_0x533950){var _0x489927=a1_0x4899();return a1_0x3218=function(_0x321835,_0x181884){_0x321835=_0x321835-0xe3;var _0x10e3dd=_0x489927[_0x321835];return _0x10e3dd;},a1_0x3218(_0x56a6cd,_0x533950);}var __createBinding=this&&this[a1_0x482c3a(0xf6)]||(Object[a1_0x482c3a(0xf0)]?function(_0x52ae7b,_0x1d2762,_0x475999,_0x43b5df){var _0x2f7b9c=a1_0x482c3a;if(_0x43b5df===undefined)_0x43b5df=_0x475999;var _0x4b4189=Object['getOwnPropertyDescriptor'](_0x1d2762,_0x475999);(!_0x4b4189||(_0x2f7b9c(0xef)in _0x4b4189?!_0x1d2762[_0x2f7b9c(0xfb)]:_0x4b4189[_0x2f7b9c(0xf7)]||_0x4b4189['configurable']))&&(_0x4b4189={'enumerable':!![],'get':function(){return _0x1d2762[_0x475999];}}),Object[_0x2f7b9c(0xee)](_0x52ae7b,_0x43b5df,_0x4b4189);}:function(_0x1fc365,_0x383fa4,_0x3a2786,_0x3b410e){if(_0x3b410e===undefined)_0x3b410e=_0x3a2786;_0x1fc365[_0x3b410e]=_0x383fa4[_0x3a2786];}),__exportStar=this&&this[a1_0x482c3a(0xe5)]||function(_0x370def,_0x21d40f){var _0x3186a6=a1_0x482c3a;for(var _0x28e857 in _0x370def)if(_0x28e857!==_0x3186a6(0xf1)&&!Object[_0x3186a6(0xe8)][_0x3186a6(0xf9)][_0x3186a6(0xea)](_0x21d40f,_0x28e857))__createBinding(_0x21d40f,_0x370def,_0x28e857);};Object['defineProperty'](exports,a1_0x482c3a(0xfb),{'value':!![]}),__exportStar(require('./FreGenericException'),exports);function a1_0x4899(){var _0x40d0ce=['12vvIHBx','226281xutVBI','prototype','144bfHvrK','call','14bPqnby','770274lADhyD','27CsdoAb','defineProperty','get','create','default','37204koDTha','2292227tNOEow','1663790LUEqMg','15GrfkNs','__createBinding','writable','9359987domtSF','hasOwnProperty','168jIInpz','__esModule','8VGoHHO','536jxJbaa','__exportStar'];a1_0x4899=function(){return _0x40d0ce;};return a1_0x4899();} \ No newline at end of file +'use strict';var a1_0x520974=a1_0x1027;(function(_0x441095,_0x204f43){var _0x58ab4e=a1_0x1027,_0x3763ff=_0x441095();while(!![]){try{var _0x4ed2da=parseInt(_0x58ab4e(0x7a))/0x1*(parseInt(_0x58ab4e(0x86))/0x2)+parseInt(_0x58ab4e(0x7d))/0x3*(-parseInt(_0x58ab4e(0x7e))/0x4)+parseInt(_0x58ab4e(0x7f))/0x5+-parseInt(_0x58ab4e(0x87))/0x6+-parseInt(_0x58ab4e(0x89))/0x7*(parseInt(_0x58ab4e(0x78))/0x8)+parseInt(_0x58ab4e(0x8c))/0x9*(-parseInt(_0x58ab4e(0x88))/0xa)+-parseInt(_0x58ab4e(0x8b))/0xb*(-parseInt(_0x58ab4e(0x82))/0xc);if(_0x4ed2da===_0x204f43)break;else _0x3763ff['push'](_0x3763ff['shift']());}catch(_0x11b70a){_0x3763ff['push'](_0x3763ff['shift']());}}}(a1_0x5f23,0x9957f));function a1_0x1027(_0x2c9694,_0x3c21bc){var _0x5f233a=a1_0x5f23();return a1_0x1027=function(_0x102716,_0xb1d4de){_0x102716=_0x102716-0x77;var _0x4dbbc6=_0x5f233a[_0x102716];return _0x4dbbc6;},a1_0x1027(_0x2c9694,_0x3c21bc);}function a1_0x5f23(){var _0x4f6b2e=['__createBinding','8GoGdzN','create','172804cEpyHS','prototype','./FreGenericException','108333SZPeeA','88BJstOM','362850wBReFD','hasOwnProperty','defineProperty','28612092ojmNpQ','get','__esModule','__exportStar','4BiswCK','466662ObeeGh','5360BGXyoC','8751491AumvRa','default','11GqMVZF','873cCMbEC'];a1_0x5f23=function(){return _0x4f6b2e;};return a1_0x5f23();}var __createBinding=this&&this[a1_0x520974(0x77)]||(Object[a1_0x520974(0x79)]?function(_0x24d8df,_0x99644b,_0x248594,_0xe4a35d){var _0x36c3c3=a1_0x520974;if(_0xe4a35d===undefined)_0xe4a35d=_0x248594;var _0x2e7669=Object['getOwnPropertyDescriptor'](_0x99644b,_0x248594);(!_0x2e7669||(_0x36c3c3(0x83)in _0x2e7669?!_0x99644b['__esModule']:_0x2e7669['writable']||_0x2e7669['configurable']))&&(_0x2e7669={'enumerable':!![],'get':function(){return _0x99644b[_0x248594];}}),Object[_0x36c3c3(0x81)](_0x24d8df,_0xe4a35d,_0x2e7669);}:function(_0xa627b8,_0x88dd1b,_0x39c75b,_0x11d2ba){if(_0x11d2ba===undefined)_0x11d2ba=_0x39c75b;_0xa627b8[_0x11d2ba]=_0x88dd1b[_0x39c75b];}),__exportStar=this&&this[a1_0x520974(0x85)]||function(_0x352504,_0x218d53){var _0x4b065e=a1_0x520974;for(var _0x37c5d5 in _0x352504)if(_0x37c5d5!==_0x4b065e(0x8a)&&!Object[_0x4b065e(0x7b)][_0x4b065e(0x80)]['call'](_0x218d53,_0x37c5d5))__createBinding(_0x218d53,_0x352504,_0x37c5d5);};Object[a1_0x520974(0x81)](exports,a1_0x520974(0x84),{'value':!![]}),__exportStar(require(a1_0x520974(0x7c)),exports); \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index 765eef3..3ddaa49 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1 +1 @@ -'use strict';var a2_0x702ce9=a2_0x4efc;function a2_0x4efc(_0xb485ca,_0x28ab16){var _0x1a6eb6=a2_0x1a6e();return a2_0x4efc=function(_0x4efcaa,_0x17b3cf){_0x4efcaa=_0x4efcaa-0x1bc;var _0x1caac5=_0x1a6eb6[_0x4efcaa];return _0x1caac5;},a2_0x4efc(_0xb485ca,_0x28ab16);}(function(_0x5298c2,_0x551bf9){var _0x3e27a8=a2_0x4efc,_0x57dd78=_0x5298c2();while(!![]){try{var _0x39d5dd=-parseInt(_0x3e27a8(0x1d6))/0x1*(parseInt(_0x3e27a8(0x1c9))/0x2)+-parseInt(_0x3e27a8(0x1c0))/0x3*(parseInt(_0x3e27a8(0x1bf))/0x4)+-parseInt(_0x3e27a8(0x1c4))/0x5*(-parseInt(_0x3e27a8(0x1c3))/0x6)+parseInt(_0x3e27a8(0x1cc))/0x7+-parseInt(_0x3e27a8(0x1ca))/0x8+-parseInt(_0x3e27a8(0x1be))/0x9+parseInt(_0x3e27a8(0x1d1))/0xa*(parseInt(_0x3e27a8(0x1bc))/0xb);if(_0x39d5dd===_0x551bf9)break;else _0x57dd78['push'](_0x57dd78['shift']());}catch(_0x227d43){_0x57dd78['push'](_0x57dd78['shift']());}}}(a2_0x1a6e,0x7c243));function a2_0x1a6e(){var _0x57e0dd=['hasOwnProperty','./utils','930vHpzYr','__createBinding','prototype','writable','./exception','2YosuCh','143649UwcffN','configurable','151569SLADez','4LRWwWv','1022115tPkHZa','getOwnPropertyDescriptor','default','9798HjOpJm','3055LAriGJ','call','__esModule','__exportStar','get','489264kDfALZ','7518688HvzRja','./ip_filter','580153MrorSq','defineProperty','create'];a2_0x1a6e=function(){return _0x57e0dd;};return a2_0x1a6e();}var __createBinding=this&&this[a2_0x702ce9(0x1d2)]||(Object[a2_0x702ce9(0x1ce)]?function(_0x362a43,_0x225fb2,_0xb5c0c3,_0x178483){var _0x31a9a6=a2_0x702ce9;if(_0x178483===undefined)_0x178483=_0xb5c0c3;var _0x507c11=Object[_0x31a9a6(0x1c1)](_0x225fb2,_0xb5c0c3);(!_0x507c11||(_0x31a9a6(0x1c8)in _0x507c11?!_0x225fb2['__esModule']:_0x507c11[_0x31a9a6(0x1d4)]||_0x507c11[_0x31a9a6(0x1bd)]))&&(_0x507c11={'enumerable':!![],'get':function(){return _0x225fb2[_0xb5c0c3];}}),Object['defineProperty'](_0x362a43,_0x178483,_0x507c11);}:function(_0x23bbe3,_0x23537f,_0x5c4e6d,_0xcdb5bd){if(_0xcdb5bd===undefined)_0xcdb5bd=_0x5c4e6d;_0x23bbe3[_0xcdb5bd]=_0x23537f[_0x5c4e6d];}),__exportStar=this&&this[a2_0x702ce9(0x1c7)]||function(_0x1ab282,_0x377962){var _0x32392d=a2_0x702ce9;for(var _0x5303fe in _0x1ab282)if(_0x5303fe!==_0x32392d(0x1c2)&&!Object[_0x32392d(0x1d3)][_0x32392d(0x1cf)][_0x32392d(0x1c5)](_0x377962,_0x5303fe))__createBinding(_0x377962,_0x1ab282,_0x5303fe);};Object[a2_0x702ce9(0x1cd)](exports,a2_0x702ce9(0x1c6),{'value':!![]}),__exportStar(require(a2_0x702ce9(0x1d0)),exports),__exportStar(require(a2_0x702ce9(0x1cb)),exports),__exportStar(require(a2_0x702ce9(0x1d5)),exports); \ No newline at end of file +'use strict';var a2_0x1272bc=a2_0x490e;function a2_0x490e(_0x3eb7bb,_0x4823c8){var _0x3cace8=a2_0x3cac();return a2_0x490e=function(_0x490e38,_0x13546e){_0x490e38=_0x490e38-0x88;var _0x24bad5=_0x3cace8[_0x490e38];return _0x24bad5;},a2_0x490e(_0x3eb7bb,_0x4823c8);}(function(_0x54206b,_0x1b730e){var _0x39f6ea=a2_0x490e,_0x321aa4=_0x54206b();while(!![]){try{var _0x46bd19=parseInt(_0x39f6ea(0x90))/0x1+parseInt(_0x39f6ea(0x9c))/0x2+-parseInt(_0x39f6ea(0x94))/0x3*(-parseInt(_0x39f6ea(0x8b))/0x4)+-parseInt(_0x39f6ea(0x89))/0x5+parseInt(_0x39f6ea(0x8d))/0x6+parseInt(_0x39f6ea(0x95))/0x7+-parseInt(_0x39f6ea(0x91))/0x8*(parseInt(_0x39f6ea(0x9d))/0x9);if(_0x46bd19===_0x1b730e)break;else _0x321aa4['push'](_0x321aa4['shift']());}catch(_0x16287f){_0x321aa4['push'](_0x321aa4['shift']());}}}(a2_0x3cac,0xe2984));var __createBinding=this&&this[a2_0x1272bc(0x8e)]||(Object[a2_0x1272bc(0x88)]?function(_0x405d7b,_0x45df1f,_0x5f118e,_0x9339de){var _0x51f39d=a2_0x1272bc;if(_0x9339de===undefined)_0x9339de=_0x5f118e;var _0x50bc3c=Object[_0x51f39d(0x8c)](_0x45df1f,_0x5f118e);(!_0x50bc3c||(_0x51f39d(0x8a)in _0x50bc3c?!_0x45df1f[_0x51f39d(0x92)]:_0x50bc3c['writable']||_0x50bc3c[_0x51f39d(0x9a)]))&&(_0x50bc3c={'enumerable':!![],'get':function(){return _0x45df1f[_0x5f118e];}}),Object[_0x51f39d(0x9e)](_0x405d7b,_0x9339de,_0x50bc3c);}:function(_0x3ceaea,_0x29cdbd,_0x3807a4,_0x1f05ab){if(_0x1f05ab===undefined)_0x1f05ab=_0x3807a4;_0x3ceaea[_0x1f05ab]=_0x29cdbd[_0x3807a4];}),__exportStar=this&&this['__exportStar']||function(_0x3cc721,_0x356b3b){var _0x14aad7=a2_0x1272bc;for(var _0x5d857c in _0x3cc721)if(_0x5d857c!==_0x14aad7(0x96)&&!Object[_0x14aad7(0x9b)][_0x14aad7(0x99)][_0x14aad7(0x93)](_0x356b3b,_0x5d857c))__createBinding(_0x356b3b,_0x3cc721,_0x5d857c);};function a2_0x3cac(){var _0x58d5ae=['1803366aqJzIP','__createBinding','./utils','104669TwJLwM','24AbkTzW','__esModule','call','1113207AKAIRC','5592265yBEbfo','default','./exception','./ip_filter','hasOwnProperty','configurable','prototype','3563280dGEYtx','4012839vePvxO','defineProperty','create','7310790oYRJBS','get','8LrQGqs','getOwnPropertyDescriptor'];a2_0x3cac=function(){return _0x58d5ae;};return a2_0x3cac();}Object['defineProperty'](exports,a2_0x1272bc(0x92),{'value':!![]}),__exportStar(require(a2_0x1272bc(0x8f)),exports),__exportStar(require(a2_0x1272bc(0x98)),exports),__exportStar(require(a2_0x1272bc(0x97)),exports); \ No newline at end of file diff --git a/lib/ip_filter/IpDeniedError.js b/lib/ip_filter/IpDeniedError.js index 93fe21f..cff45c7 100644 --- a/lib/ip_filter/IpDeniedError.js +++ b/lib/ip_filter/IpDeniedError.js @@ -1 +1 @@ -'use strict';var a4_0x4ce47a=a4_0x326b;function a4_0x326b(_0x3bfce4,_0x178afb){var _0x4be203=a4_0x4be2();return a4_0x326b=function(_0x326b91,_0x10b097){_0x326b91=_0x326b91-0x67;var _0x3236c5=_0x4be203[_0x326b91];return _0x3236c5;},a4_0x326b(_0x3bfce4,_0x178afb);}(function(_0x1afa41,_0x12e41f){var _0x4e3d4b=a4_0x326b,_0x42f428=_0x1afa41();while(!![]){try{var _0x509a43=parseInt(_0x4e3d4b(0x79))/0x1*(-parseInt(_0x4e3d4b(0x7a))/0x2)+parseInt(_0x4e3d4b(0x75))/0x3*(-parseInt(_0x4e3d4b(0x6a))/0x4)+parseInt(_0x4e3d4b(0x67))/0x5+-parseInt(_0x4e3d4b(0x7b))/0x6*(-parseInt(_0x4e3d4b(0x76))/0x7)+parseInt(_0x4e3d4b(0x6e))/0x8*(parseInt(_0x4e3d4b(0x70))/0x9)+parseInt(_0x4e3d4b(0x6d))/0xa*(-parseInt(_0x4e3d4b(0x73))/0xb)+parseInt(_0x4e3d4b(0x68))/0xc;if(_0x509a43===_0x12e41f)break;else _0x42f428['push'](_0x42f428['shift']());}catch(_0x615dc2){_0x42f428['push'](_0x42f428['shift']());}}}(a4_0x4be2,0x5e8dd));function a4_0x4be2(){var _0x36bd05=['21TDWHeu','14yoVkyB','name','constructor','993uKVgsy','918MUrrNz','49728CXfHDP','2537960WQsjQn','5110968fEMivY','message','210344NNXuCG','The\x20requesting\x20IP\x20was\x20denied','__esModule','10JrlGcA','131304DkauSp','statusCode','279ORTssE','defineProperty','captureStackTrace','2724733NHlHAV','status'];a4_0x4be2=function(){return _0x36bd05;};return a4_0x4be2();}Object[a4_0x4ce47a(0x71)](exports,a4_0x4ce47a(0x6c),{'value':!![]}),exports['IpDeniedError']=void 0x0;class IpDeniedError extends Error{[a4_0x4ce47a(0x6f)];[a4_0x4ce47a(0x74)];['extra'];constructor(_0x7c8991,_0x12c494){var _0x550462=a4_0x4ce47a;_0x7c8991=_0x7c8991??_0x550462(0x6b),super(_0x7c8991),this[_0x550462(0x69)]=_0x7c8991,this[_0x550462(0x77)]=this[_0x550462(0x78)][_0x550462(0x77)],Error[_0x550462(0x72)](this,this['constructor']),this['extra']=_0x12c494,this[_0x550462(0x74)]=this[_0x550462(0x6f)]=0x193;}}exports['IpDeniedError']=IpDeniedError; \ No newline at end of file +'use strict';var a4_0x8c5c78=a4_0x2972;function a4_0x2972(_0x37a35d,_0xfc018){var _0xa733b5=a4_0xa733();return a4_0x2972=function(_0x29722d,_0xb36f57){_0x29722d=_0x29722d-0x179;var _0x418e39=_0xa733b5[_0x29722d];return _0x418e39;},a4_0x2972(_0x37a35d,_0xfc018);}(function(_0x1af7d2,_0x1e5ec9){var _0x5ef069=a4_0x2972,_0x576445=_0x1af7d2();while(!![]){try{var _0x522cd0=parseInt(_0x5ef069(0x17a))/0x1+parseInt(_0x5ef069(0x181))/0x2*(parseInt(_0x5ef069(0x17c))/0x3)+parseInt(_0x5ef069(0x18c))/0x4*(parseInt(_0x5ef069(0x17b))/0x5)+-parseInt(_0x5ef069(0x18a))/0x6*(-parseInt(_0x5ef069(0x17f))/0x7)+parseInt(_0x5ef069(0x184))/0x8*(-parseInt(_0x5ef069(0x188))/0x9)+parseInt(_0x5ef069(0x187))/0xa*(parseInt(_0x5ef069(0x17e))/0xb)+-parseInt(_0x5ef069(0x182))/0xc;if(_0x522cd0===_0x1e5ec9)break;else _0x576445['push'](_0x576445['shift']());}catch(_0xe5f437){_0x576445['push'](_0x576445['shift']());}}}(a4_0xa733,0xc3af4));Object['defineProperty'](exports,a4_0x8c5c78(0x18b),{'value':!![]}),exports[a4_0x8c5c78(0x180)]=void 0x0;class IpDeniedError extends Error{[a4_0x8c5c78(0x186)];[a4_0x8c5c78(0x189)];[a4_0x8c5c78(0x17d)];constructor(_0x2ec955,_0x184845){var _0x5e2ee7=a4_0x8c5c78;_0x2ec955=_0x2ec955??_0x5e2ee7(0x183),super(_0x2ec955),this['message']=_0x2ec955,this['name']=this[_0x5e2ee7(0x179)][_0x5e2ee7(0x185)],Error['captureStackTrace'](this,this[_0x5e2ee7(0x179)]),this[_0x5e2ee7(0x17d)]=_0x184845,this['status']=this[_0x5e2ee7(0x186)]=0x193;}}exports['IpDeniedError']=IpDeniedError;function a4_0xa733(){var _0x55e017=['statusCode','10JaKaGI','1215SVrKYc','status','745086xHnchY','__esModule','637524jCkfXu','constructor','1545018jGQzyO','15KyfDCY','282HiKAKp','extra','6999685mSUZnA','21pXoFCe','IpDeniedError','276ptIeri','11888244MBQqmt','The\x20requesting\x20IP\x20was\x20denied','74240KyybIT','name'];a4_0xa733=function(){return _0x55e017;};return a4_0xa733();} \ No newline at end of file diff --git a/lib/ip_filter/IpFilter.js b/lib/ip_filter/IpFilter.js index e021970..36ec776 100644 --- a/lib/ip_filter/IpFilter.js +++ b/lib/ip_filter/IpFilter.js @@ -1 +1 @@ -'use strict';const a5_0xc7b53=a5_0x141d;function a5_0x2e7c(){const _0x423f7a=['Access\x20granted\x20to\x20IP\x20address:\x20','matchClientIp','trustProxy','__importDefault','Allow\x20list\x20empty','excluding','test','10367400EeCgQh','35nhylEV','./IpDeniedError','checkIP','length','0.0.0.0/0','string','15242821pabbhB','logger','default','url','number','function','Access\x20granted\x20for\x20excluded\x20path:\x20','IpFilter','Access\x20denied\x20to\x20IP\x20address:\x20','log','deny','__esModule','object','detectIp','allow','testExplicitIp','3822466yJHYFz','error','3297640ObkhxM','getIps','IpDeniedError','1KkLePw','range_check','middleware','testCidrBlock','settings','some','filter','24535LrSqoP','mode','logLevel','1737687xdaZte','462100SAjQUk','9ikwPFY','240DGabxL','testRange','testIp','24suBvHD','Deny\x20list\x20empty','every','compileTrust','status','all','toLong','logF'];a5_0x2e7c=function(){return _0x423f7a;};return a5_0x2e7c();}(function(_0x35b532,_0x1063b5){const _0x9d6534=a5_0x141d,_0x320010=_0x35b532();while(!![]){try{const _0xbe58d1=parseInt(_0x9d6534(0x79))/0x1*(-parseInt(_0x9d6534(0x74))/0x2)+-parseInt(_0x9d6534(0x83))/0x3+parseInt(_0x9d6534(0x84))/0x4*(-parseInt(_0x9d6534(0x99))/0x5)+parseInt(_0x9d6534(0x86))/0x6*(-parseInt(_0x9d6534(0x80))/0x7)+-parseInt(_0x9d6534(0x98))/0x8*(-parseInt(_0x9d6534(0x85))/0x9)+parseInt(_0x9d6534(0x76))/0xa+parseInt(_0x9d6534(0x9f))/0xb*(parseInt(_0x9d6534(0x89))/0xc);if(_0xbe58d1===_0x1063b5)break;else _0x320010['push'](_0x320010['shift']());}catch(_0x57e38a){_0x320010['push'](_0x320010['shift']());}}}(a5_0x2e7c,0xe9d4e));var __importDefault=this&&this[a5_0xc7b53(0x94)]||function(_0x51ab7a){const _0x4cda10=a5_0xc7b53;return _0x51ab7a&&_0x51ab7a[_0x4cda10(0xaa)]?_0x51ab7a:{'default':_0x51ab7a};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a5_0xc7b53(0xa6)]=void 0x0;const ip_1=__importDefault(require('ip')),range_check_1=require(a5_0xc7b53(0x7a)),IpDeniedError_1=require(a5_0xc7b53(0x9a)),proxy_addr_1=__importDefault(require('proxy-addr'));class IpFilter{['settings'];[a5_0xc7b53(0x77)];[a5_0xc7b53(0xa0)]=_0x45e469=>console[a5_0xc7b53(0xa8)](_0x45e469);[a5_0xc7b53(0xac)]=_0x47a044=>(0x0,proxy_addr_1['default'])(_0x47a044,this[a5_0xc7b53(0x8c)](this[a5_0xc7b53(0x7d)][a5_0xc7b53(0x93)]));constructor(_0x4513a6,_0xdc35eb){const _0x358dfc=a5_0xc7b53;this[_0x358dfc(0x77)]=typeof _0x4513a6==='function'?_0x4513a6:()=>_0x4513a6,_0xdc35eb?(this[_0x358dfc(0x7d)]={'mode':_0xdc35eb[_0x358dfc(0x81)]??_0x358dfc(0xa9),'log':_0xdc35eb[_0x358dfc(0xa8)]??!![],'logLevel':_0xdc35eb[_0x358dfc(0x82)]??_0x358dfc(0x8e),'excluding':_0xdc35eb[_0x358dfc(0x96)]??[],'trustProxy':_0xdc35eb['trustProxy']??![]},this[_0x358dfc(0xa0)]=_0xdc35eb[_0x358dfc(0x90)]??this[_0x358dfc(0xa0)],typeof _0xdc35eb[_0x358dfc(0xac)]==='function'&&(this[_0x358dfc(0xac)]=_0xdc35eb[_0x358dfc(0xac)])):this[_0x358dfc(0x7d)]={'mode':_0x358dfc(0xa9),'log':!![],'logLevel':_0x358dfc(0x8e),'excluding':[],'trustProxy':![]};}[a5_0xc7b53(0x8c)](_0x15378d){const _0xf0f662=a5_0xc7b53;if(typeof _0x15378d===_0xf0f662(0xa4))return _0x15378d;if(_0x15378d===!![])return()=>!![];if(typeof _0x15378d===_0xf0f662(0xa3))return(_0x255b9f,_0x30edbf)=>_0x30edbf<_0x15378d;return typeof _0x15378d===_0xf0f662(0x9e)&&(_0x15378d=_0x15378d['split'](',')),proxy_addr_1[_0xf0f662(0xa1)]['compile'](_0x15378d||[]);}[a5_0xc7b53(0xae)](_0x40daf1,_0x4ff54c,_0x1078dc){const _0x285ba9=a5_0xc7b53;return _0x40daf1===_0x4ff54c?_0x1078dc==='allow':_0x1078dc===_0x285ba9(0xa9);}[a5_0xc7b53(0x7c)](_0x3b5a76,_0x28af3c,_0x1be0a){const _0x246469=a5_0xc7b53;return(0x0,range_check_1['inRange'])(_0x3b5a76,_0x28af3c)?_0x1be0a===_0x246469(0xad):_0x1be0a==='deny';}[a5_0xc7b53(0x87)](_0x4fa8bb,_0x416b80,_0x34887b){const _0x198265=a5_0xc7b53;let _0x5b332b;if(_0x416b80[_0x198265(0x9c)]>0x1){const _0x3eed91=ip_1['default'][_0x198265(0x8f)](_0x416b80[0x0]),_0x1b5fd1=ip_1[_0x198265(0xa1)][_0x198265(0x8f)](_0x416b80[0x1]),_0x48d06c=ip_1[_0x198265(0xa1)][_0x198265(0x8f)](_0x4fa8bb);_0x5b332b=_0x48d06c>=_0x3eed91&&_0x48d06c<=_0x1b5fd1;}else _0x5b332b=_0x4fa8bb===_0x416b80[0x0];return _0x5b332b?_0x34887b===_0x198265(0xad):_0x34887b===_0x198265(0xa9);}[a5_0xc7b53(0x88)](_0x281517,_0x3d3f5b,_0x194e59){const _0xf738e9=a5_0xc7b53;if(typeof _0x281517===_0xf738e9(0x9e))return(0x0,range_check_1['isRange'])(_0x281517)?this[_0xf738e9(0x7c)](_0x3d3f5b,_0x281517,_0x194e59):this['testExplicitIp'](_0x3d3f5b,_0x281517,_0x194e59);if(typeof _0x281517===_0xf738e9(0xab))return this[_0xf738e9(0x87)](_0x3d3f5b,_0x281517,_0x194e59);}[a5_0xc7b53(0x92)](_0x34efa7,_0x1dbfa1){const _0x3ef1ba=a5_0xc7b53,_0xe47740=this[_0x3ef1ba(0x7d)][_0x3ef1ba(0x81)]??_0x3ef1ba(0xa9),_0x168691=_0x1dbfa1['map'](_0x289465=>this[_0x3ef1ba(0x88)](_0x289465,_0x34efa7,_0xe47740));return _0xe47740===_0x3ef1ba(0xad)?_0x168691?.[_0x3ef1ba(0x7e)]((_0x36aabc,_0x2a3a0a,_0x5c509f)=>_0x36aabc):_0x168691?.[_0x3ef1ba(0x8b)]((_0xef7795,_0x44c32c,_0x1f7f93)=>_0xef7795);}[a5_0xc7b53(0x75)](_0x366424,_0x19858a){const _0x1efa42=a5_0xc7b53,_0xfe2f81=new IpDeniedError_1[(_0x1efa42(0x78))](_0x1efa42(0xa7)+_0x366424,{'ip':_0x366424});return _0x19858a(_0xfe2f81);}get[a5_0xc7b53(0x7b)](){return(_0x391a44,_0x1feeb8,_0x3151d5)=>{const _0x40626a=a5_0x141d,_0x4a232a=this[_0x40626a(0x9b)](_0x391a44);if(_0x4a232a[_0x40626a(0x8d)])return _0x3151d5();return this[_0x40626a(0x75)](_0x4a232a['ip'],_0x3151d5);};}[a5_0xc7b53(0x9b)](_0xcd8e09){const _0xd0f6fb=a5_0xc7b53;if(this[_0xd0f6fb(0x7d)]['excluding']&&this[_0xd0f6fb(0x7d)][_0xd0f6fb(0x96)]['length']>0x0){const _0x19c801=this[_0xd0f6fb(0x7d)][_0xd0f6fb(0x96)][_0xd0f6fb(0x7f)](_0x219f8d=>{const _0x3b9945=_0xd0f6fb,_0x47249d=new RegExp(_0x219f8d);return _0x47249d[_0x3b9945(0x97)](_0xcd8e09[_0x3b9945(0xa2)]);});if(_0x19c801[_0xd0f6fb(0x9c)]>0x0)return this[_0xd0f6fb(0x7d)]['log']&&this[_0xd0f6fb(0x7d)]['logLevel']!==_0xd0f6fb(0xa9)&&this['logger']('Access\x20granted\x20for\x20excluded\x20path:\x20'+_0x19c801[0x0]),{'status':!![],'ip':'0.0.0.0/0','msg':_0xd0f6fb(0xa5)+_0x19c801[0x0]};}const _0x4f2a0f=this[_0xd0f6fb(0x77)]();if(!_0x4f2a0f||!_0x4f2a0f[_0xd0f6fb(0x9c)])return this[_0xd0f6fb(0x7d)][_0xd0f6fb(0x81)]===_0xd0f6fb(0xad)?{'status':![],'ip':_0xd0f6fb(0x9d),'msg':_0xd0f6fb(0x95)}:{'status':!![],'ip':_0xd0f6fb(0x9d),'msg':_0xd0f6fb(0x8a)};const _0x4243d9=this[_0xd0f6fb(0xac)](_0xcd8e09);if(this[_0xd0f6fb(0x92)](_0x4243d9,_0x4f2a0f))return this['settings'][_0xd0f6fb(0xa8)]&&this[_0xd0f6fb(0x7d)][_0xd0f6fb(0x82)]!==_0xd0f6fb(0xa9)&&this[_0xd0f6fb(0xa0)](_0xd0f6fb(0x91)+_0x4243d9),{'status':!![],'ip':_0x4243d9,'msg':_0xd0f6fb(0x91)+_0x4243d9};return this[_0xd0f6fb(0x7d)]['log']&&this[_0xd0f6fb(0x7d)][_0xd0f6fb(0x82)]!==_0xd0f6fb(0xad)&&this['logger'](_0xd0f6fb(0xa7)+_0x4243d9),{'status':![],'ip':_0x4243d9,'msg':'Access\x20denied\x20to\x20IP\x20address:\x20'+_0x4243d9};}}function a5_0x141d(_0x4d26f7,_0x44b62d){const _0x2e7c5d=a5_0x2e7c();return a5_0x141d=function(_0x141d11,_0x3eee43){_0x141d11=_0x141d11-0x74;let _0x270e76=_0x2e7c5d[_0x141d11];return _0x270e76;},a5_0x141d(_0x4d26f7,_0x44b62d);}exports[a5_0xc7b53(0xa6)]=IpFilter; \ No newline at end of file +'use strict';const a5_0x14a45d=a5_0x2d15;(function(_0x2d625d,_0x2a1439){const _0x5d1596=a5_0x2d15,_0x3ce281=_0x2d625d();while(!![]){try{const _0x1e0344=parseInt(_0x5d1596(0x1ca))/0x1+-parseInt(_0x5d1596(0x1a4))/0x2*(parseInt(_0x5d1596(0x1b2))/0x3)+parseInt(_0x5d1596(0x1ba))/0x4*(parseInt(_0x5d1596(0x1b6))/0x5)+-parseInt(_0x5d1596(0x1a0))/0x6+parseInt(_0x5d1596(0x1c5))/0x7*(parseInt(_0x5d1596(0x1b9))/0x8)+-parseInt(_0x5d1596(0x1cc))/0x9+-parseInt(_0x5d1596(0x1b4))/0xa;if(_0x1e0344===_0x2a1439)break;else _0x3ce281['push'](_0x3ce281['shift']());}catch(_0x30679d){_0x3ce281['push'](_0x3ce281['shift']());}}}(a5_0x460b,0x4771d));function a5_0x2d15(_0x303b65,_0x546e43){const _0x460bd3=a5_0x460b();return a5_0x2d15=function(_0x2d1508,_0x1f3b9b){_0x2d1508=_0x2d1508-0x19d;let _0x2202db=_0x460bd3[_0x2d1508];return _0x2202db;},a5_0x2d15(_0x303b65,_0x546e43);}var __importDefault=this&&this['__importDefault']||function(_0x5679ce){const _0x55fbb8=a5_0x2d15;return _0x5679ce&&_0x5679ce[_0x55fbb8(0x1c8)]?_0x5679ce:{'default':_0x5679ce};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['IpFilter']=void 0x0;const ip_1=__importDefault(require('ip')),range_check_1=require(a5_0x14a45d(0x1c9)),IpDeniedError_1=require(a5_0x14a45d(0x1aa)),proxy_addr_1=__importDefault(require('proxy-addr'));class IpFilter{[a5_0x14a45d(0x1ab)];['getIps'];[a5_0x14a45d(0x1b3)]=_0x20971d=>console[a5_0x14a45d(0x1cb)](_0x20971d);[a5_0x14a45d(0x19d)]=_0x263497=>(0x0,proxy_addr_1[a5_0x14a45d(0x1a6)])(_0x263497,this[a5_0x14a45d(0x1d0)](this[a5_0x14a45d(0x1ab)][a5_0x14a45d(0x1c1)]));constructor(_0x14c9b0,_0x1333ff){const _0x3636be=a5_0x14a45d;this['getIps']=typeof _0x14c9b0==='function'?_0x14c9b0:()=>_0x14c9b0,_0x1333ff?(this['settings']={'mode':_0x1333ff[_0x3636be(0x1ae)]??_0x3636be(0x1bc),'log':_0x1333ff['log']??!![],'logLevel':_0x1333ff[_0x3636be(0x1af)]??_0x3636be(0x1ac),'excluding':_0x1333ff[_0x3636be(0x1c0)]??[],'trustProxy':_0x1333ff[_0x3636be(0x1c1)]??![]},this['logger']=_0x1333ff['logF']??this[_0x3636be(0x1b3)],typeof _0x1333ff[_0x3636be(0x19d)]===_0x3636be(0x1a7)&&(this['detectIp']=_0x1333ff['detectIp'])):this[_0x3636be(0x1ab)]={'mode':_0x3636be(0x1bc),'log':!![],'logLevel':_0x3636be(0x1ac),'excluding':[],'trustProxy':![]};}['compileTrust'](_0x1f6200){const _0x201861=a5_0x14a45d;if(typeof _0x1f6200===_0x201861(0x1a7))return _0x1f6200;if(_0x1f6200===!![])return()=>!![];if(typeof _0x1f6200===_0x201861(0x1a5))return(_0x3ddcf6,_0x5b4a3b)=>_0x5b4a3b<_0x1f6200;return typeof _0x1f6200==='string'&&(_0x1f6200=_0x1f6200['split'](',')),proxy_addr_1['default'][_0x201861(0x1d2)](_0x1f6200||[]);}[a5_0x14a45d(0x1bd)](_0x33128f,_0x201651,_0x19f872){const _0x514e62=a5_0x14a45d;return _0x33128f===_0x201651?_0x19f872===_0x514e62(0x1c3):_0x19f872==='deny';}[a5_0x14a45d(0x1a9)](_0x2f6b5a,_0xca92cf,_0x384353){const _0x226893=a5_0x14a45d;return(0x0,range_check_1[_0x226893(0x1a3)])(_0x2f6b5a,_0xca92cf)?_0x384353==='allow':_0x384353===_0x226893(0x1bc);}[a5_0x14a45d(0x1a2)](_0x5cf1e2,_0x4b8153,_0x247bad){const _0x54361b=a5_0x14a45d;let _0x4955b3;if(_0x4b8153[_0x54361b(0x1b8)]>0x1){const _0x59363b=ip_1[_0x54361b(0x1a6)]['toLong'](_0x4b8153[0x0]),_0x480881=ip_1['default'][_0x54361b(0x1ad)](_0x4b8153[0x1]),_0x3c60e2=ip_1[_0x54361b(0x1a6)][_0x54361b(0x1ad)](_0x5cf1e2);_0x4955b3=_0x3c60e2>=_0x59363b&&_0x3c60e2<=_0x480881;}else _0x4955b3=_0x5cf1e2===_0x4b8153[0x0];return _0x4955b3?_0x247bad===_0x54361b(0x1c3):_0x247bad==='deny';}[a5_0x14a45d(0x1cd)](_0x4a95a7,_0x1a3867,_0x4edb6e){const _0x150dbd=a5_0x14a45d;if(typeof _0x4a95a7===_0x150dbd(0x1cf))return(0x0,range_check_1['isRange'])(_0x4a95a7)?this[_0x150dbd(0x1a9)](_0x1a3867,_0x4a95a7,_0x4edb6e):this[_0x150dbd(0x1bd)](_0x1a3867,_0x4a95a7,_0x4edb6e);if(typeof _0x4a95a7===_0x150dbd(0x19e))return this[_0x150dbd(0x1a2)](_0x1a3867,_0x4a95a7,_0x4edb6e);}[a5_0x14a45d(0x1d1)](_0x1031e9,_0x5075da){const _0x1fad4d=a5_0x14a45d,_0x29ebcd=this['settings'][_0x1fad4d(0x1ae)]??_0x1fad4d(0x1bc),_0x2b2a29=_0x5075da[_0x1fad4d(0x1bb)](_0x5dd63f=>this['testIp'](_0x5dd63f,_0x1031e9,_0x29ebcd));return _0x29ebcd===_0x1fad4d(0x1c3)?_0x2b2a29?.['some']((_0x1e02ee,_0x1afecc,_0x12015d)=>_0x1e02ee):_0x2b2a29?.[_0x1fad4d(0x1c4)]((_0x4d5b91,_0x59885b,_0x18381d)=>_0x4d5b91);}[a5_0x14a45d(0x1a1)](_0x142b62,_0x398270){const _0x425f62=a5_0x14a45d,_0x5ebb6e=new IpDeniedError_1[(_0x425f62(0x1b7))]('Access\x20denied\x20to\x20IP\x20address:\x20'+_0x142b62,{'ip':_0x142b62});return _0x398270(_0x5ebb6e);}get['middleware'](){return(_0x3f7efc,_0x1cc7be,_0x18f643)=>{const _0x44d281=a5_0x2d15,_0x314811=this[_0x44d281(0x1be)](_0x3f7efc);if(_0x314811[_0x44d281(0x1a8)])return _0x18f643();return this[_0x44d281(0x1a1)](_0x314811['ip'],_0x18f643);};}['checkIP'](_0x40e7d5){const _0x306963=a5_0x14a45d;if(this[_0x306963(0x1ab)][_0x306963(0x1c0)]&&this[_0x306963(0x1ab)][_0x306963(0x1c0)][_0x306963(0x1b8)]>0x0){const _0x5b9ea5=this[_0x306963(0x1ab)]['excluding'][_0x306963(0x1ce)](_0x17b518=>{const _0x110d0f=_0x306963,_0x4785d5=new RegExp(_0x17b518);return _0x4785d5[_0x110d0f(0x1bf)](_0x40e7d5[_0x110d0f(0x19f)]);});if(_0x5b9ea5['length']>0x0)return this['settings'][_0x306963(0x1cb)]&&this[_0x306963(0x1ab)][_0x306963(0x1af)]!==_0x306963(0x1bc)&&this['logger']('Access\x20granted\x20for\x20excluded\x20path:\x20'+_0x5b9ea5[0x0]),{'status':!![],'ip':_0x306963(0x1b1),'msg':_0x306963(0x1c6)+_0x5b9ea5[0x0]};}const _0xefb10e=this[_0x306963(0x1c7)]();if(!_0xefb10e||!_0xefb10e[_0x306963(0x1b8)])return this['settings'][_0x306963(0x1ae)]===_0x306963(0x1c3)?{'status':![],'ip':_0x306963(0x1b1),'msg':'Allow\x20list\x20empty'}:{'status':!![],'ip':_0x306963(0x1b1),'msg':_0x306963(0x1b0)};const _0x3b9145=this[_0x306963(0x19d)](_0x40e7d5);if(this[_0x306963(0x1d1)](_0x3b9145,_0xefb10e))return this['settings'][_0x306963(0x1cb)]&&this[_0x306963(0x1ab)][_0x306963(0x1af)]!==_0x306963(0x1bc)&&this[_0x306963(0x1b3)](_0x306963(0x1b5)+_0x3b9145),{'status':!![],'ip':_0x3b9145,'msg':_0x306963(0x1b5)+_0x3b9145};return this['settings'][_0x306963(0x1cb)]&&this['settings'][_0x306963(0x1af)]!==_0x306963(0x1c3)&&this[_0x306963(0x1b3)]('Access\x20denied\x20to\x20IP\x20address:\x20'+_0x3b9145),{'status':![],'ip':_0x3b9145,'msg':'Access\x20denied\x20to\x20IP\x20address:\x20'+_0x3b9145};}}function a5_0x460b(){const _0x564b9b=['Access\x20granted\x20for\x20excluded\x20path:\x20','getIps','__esModule','range_check','329938GNIhBU','log','878022rnnyMy','testIp','filter','string','compileTrust','matchClientIp','compile','detectIp','object','url','886188lnfXWW','error','testRange','inRange','6ziSHhN','number','default','function','status','testCidrBlock','./IpDeniedError','settings','all','toLong','mode','logLevel','Deny\x20list\x20empty','0.0.0.0/0','140391mPhWjq','logger','5137440SgYNsV','Access\x20granted\x20to\x20IP\x20address:\x20','1869405XLUFYg','IpDeniedError','length','3905672vjjXQw','4hWDTrx','map','deny','testExplicitIp','checkIP','test','excluding','trustProxy','IpFilter','allow','every','7xKooUO'];a5_0x460b=function(){return _0x564b9b;};return a5_0x460b();}exports[a5_0x14a45d(0x1c2)]=IpFilter; \ No newline at end of file diff --git a/lib/ip_filter/IpTypes.js b/lib/ip_filter/IpTypes.js index f81a452..e8088d5 100644 --- a/lib/ip_filter/IpTypes.js +++ b/lib/ip_filter/IpTypes.js @@ -1 +1 @@ -'use strict';var a6_0x3ba0d9=a6_0x53a6;(function(_0x86b576,_0x372e60){var _0x3fbda7=a6_0x53a6,_0x23a373=_0x86b576();while(!![]){try{var _0x36c08a=-parseInt(_0x3fbda7(0xc3))/0x1+parseInt(_0x3fbda7(0xc0))/0x2+parseInt(_0x3fbda7(0xc5))/0x3*(parseInt(_0x3fbda7(0xc4))/0x4)+-parseInt(_0x3fbda7(0xbb))/0x5*(-parseInt(_0x3fbda7(0xbd))/0x6)+parseInt(_0x3fbda7(0xbf))/0x7+parseInt(_0x3fbda7(0xbc))/0x8*(-parseInt(_0x3fbda7(0xbe))/0x9)+-parseInt(_0x3fbda7(0xba))/0xa;if(_0x36c08a===_0x372e60)break;else _0x23a373['push'](_0x23a373['shift']());}catch(_0xf82cbd){_0x23a373['push'](_0x23a373['shift']());}}}(a6_0x5196,0xf2ed3));function a6_0x53a6(_0x4cb9e5,_0x1524c9){var _0x51962a=a6_0x5196();return a6_0x53a6=function(_0x53a68f,_0x32677f){_0x53a68f=_0x53a68f-0xba;var _0x488bfa=_0x51962a[_0x53a68f];return _0x488bfa;},a6_0x53a6(_0x4cb9e5,_0x1524c9);}function a6_0x5196(){var _0x33f553=['6QokUfi','11558490LiwtoW','9676435tOuOOL','10929624jeUAjb','6OUQMkD','9ENKjPA','11459602zevSbu','1300964kfcBHP','defineProperty','__esModule','746982eEnyYn','82412gABgPR'];a6_0x5196=function(){return _0x33f553;};return a6_0x5196();}Object[a6_0x3ba0d9(0xc1)](exports,a6_0x3ba0d9(0xc2),{'value':!![]}); \ No newline at end of file +'use strict';function a6_0x5770(_0x8b47ae,_0x3a071){var _0x1bea62=a6_0x1bea();return a6_0x5770=function(_0x5770c2,_0x72c4b2){_0x5770c2=_0x5770c2-0x1c7;var _0x2fdce1=_0x1bea62[_0x5770c2];return _0x2fdce1;},a6_0x5770(_0x8b47ae,_0x3a071);}var a6_0x704761=a6_0x5770;(function(_0x506dc6,_0x542c19){var _0x10fb92=a6_0x5770,_0x3e7d77=_0x506dc6();while(!![]){try{var _0x1f3b1e=-parseInt(_0x10fb92(0x1cd))/0x1+parseInt(_0x10fb92(0x1c9))/0x2+-parseInt(_0x10fb92(0x1c7))/0x3*(-parseInt(_0x10fb92(0x1cf))/0x4)+parseInt(_0x10fb92(0x1c8))/0x5+-parseInt(_0x10fb92(0x1cc))/0x6+-parseInt(_0x10fb92(0x1ce))/0x7+-parseInt(_0x10fb92(0x1d0))/0x8*(parseInt(_0x10fb92(0x1cb))/0x9);if(_0x1f3b1e===_0x542c19)break;else _0x3e7d77['push'](_0x3e7d77['shift']());}catch(_0x45b1d1){_0x3e7d77['push'](_0x3e7d77['shift']());}}}(a6_0x1bea,0xb780a));function a6_0x1bea(){var _0x58767c=['160DipShc','3405Dtpwkd','7053570gmPGiZ','663444SaLKVR','defineProperty','498285kbuYUE','5298696rmZsKJ','98018salkYn','31227esKjVd','3884FnnqTL'];a6_0x1bea=function(){return _0x58767c;};return a6_0x1bea();}Object[a6_0x704761(0x1ca)](exports,'__esModule',{'value':!![]}); \ No newline at end of file diff --git a/lib/ip_filter/index.js b/lib/ip_filter/index.js index 2e03664..0c1dbf6 100644 --- a/lib/ip_filter/index.js +++ b/lib/ip_filter/index.js @@ -1 +1 @@ -'use strict';var a3_0x47ea45=a3_0x567b;(function(_0x3300e1,_0x1c676a){var _0x22aa85=a3_0x567b,_0x3b1cf5=_0x3300e1();while(!![]){try{var _0x10a7f4=parseInt(_0x22aa85(0x14a))/0x1*(-parseInt(_0x22aa85(0x15b))/0x2)+parseInt(_0x22aa85(0x160))/0x3*(-parseInt(_0x22aa85(0x15d))/0x4)+-parseInt(_0x22aa85(0x149))/0x5+parseInt(_0x22aa85(0x158))/0x6*(-parseInt(_0x22aa85(0x156))/0x7)+parseInt(_0x22aa85(0x14e))/0x8*(-parseInt(_0x22aa85(0x14d))/0x9)+parseInt(_0x22aa85(0x15f))/0xa+parseInt(_0x22aa85(0x161))/0xb*(parseInt(_0x22aa85(0x14c))/0xc);if(_0x10a7f4===_0x1c676a)break;else _0x3b1cf5['push'](_0x3b1cf5['shift']());}catch(_0x14bf3c){_0x3b1cf5['push'](_0x3b1cf5['shift']());}}}(a3_0x3fa1,0xde440));function a3_0x3fa1(){var _0x1c31c5=['52549FfjFwI','./IpDeniedError','1350meqCxD','default','./IpFilter','919498iqueao','prototype','2804RpUHwT','getOwnPropertyDescriptor','4886920sreMuV','6012PNsuDP','2398LMstTt','__exportStar','configurable','6987705CdVdaq','2IcaNhM','hasOwnProperty','330060xbysUV','183897JDyDHu','64gagxwq','./IpTypes','writable','defineProperty','__createBinding','get','create','__esModule'];a3_0x3fa1=function(){return _0x1c31c5;};return a3_0x3fa1();}var __createBinding=this&&this[a3_0x47ea45(0x152)]||(Object[a3_0x47ea45(0x154)]?function(_0x1cc26a,_0x18819e,_0x294857,_0x553688){var _0x3d42ff=a3_0x47ea45;if(_0x553688===undefined)_0x553688=_0x294857;var _0x110bdb=Object[_0x3d42ff(0x15e)](_0x18819e,_0x294857);(!_0x110bdb||(_0x3d42ff(0x153)in _0x110bdb?!_0x18819e[_0x3d42ff(0x155)]:_0x110bdb[_0x3d42ff(0x150)]||_0x110bdb[_0x3d42ff(0x148)]))&&(_0x110bdb={'enumerable':!![],'get':function(){return _0x18819e[_0x294857];}}),Object[_0x3d42ff(0x151)](_0x1cc26a,_0x553688,_0x110bdb);}:function(_0x45ef79,_0x31414d,_0x250040,_0x584b86){if(_0x584b86===undefined)_0x584b86=_0x250040;_0x45ef79[_0x584b86]=_0x31414d[_0x250040];}),__exportStar=this&&this[a3_0x47ea45(0x162)]||function(_0x4f92e2,_0x1e4094){var _0x4bc5ee=a3_0x47ea45;for(var _0x297fb6 in _0x4f92e2)if(_0x297fb6!==_0x4bc5ee(0x159)&&!Object[_0x4bc5ee(0x15c)][_0x4bc5ee(0x14b)]['call'](_0x1e4094,_0x297fb6))__createBinding(_0x1e4094,_0x4f92e2,_0x297fb6);};function a3_0x567b(_0x672b22,_0x28e629){var _0x3fa183=a3_0x3fa1();return a3_0x567b=function(_0x567bc7,_0x23e93e){_0x567bc7=_0x567bc7-0x148;var _0x1dd045=_0x3fa183[_0x567bc7];return _0x1dd045;},a3_0x567b(_0x672b22,_0x28e629);}Object[a3_0x47ea45(0x151)](exports,a3_0x47ea45(0x155),{'value':!![]}),__exportStar(require(a3_0x47ea45(0x15a)),exports),__exportStar(require(a3_0x47ea45(0x157)),exports),__exportStar(require(a3_0x47ea45(0x14f)),exports); \ No newline at end of file +'use strict';var a3_0x192dc4=a3_0x43d6;(function(_0x135eb2,_0x47375b){var _0xdf6db9=a3_0x43d6,_0x42d2a2=_0x135eb2();while(!![]){try{var _0x20456a=parseInt(_0xdf6db9(0xd3))/0x1*(-parseInt(_0xdf6db9(0xd5))/0x2)+parseInt(_0xdf6db9(0xcf))/0x3+parseInt(_0xdf6db9(0xdb))/0x4*(-parseInt(_0xdf6db9(0xe0))/0x5)+parseInt(_0xdf6db9(0xe2))/0x6*(parseInt(_0xdf6db9(0xdc))/0x7)+-parseInt(_0xdf6db9(0xe5))/0x8*(parseInt(_0xdf6db9(0xce))/0x9)+parseInt(_0xdf6db9(0xd7))/0xa+-parseInt(_0xdf6db9(0xe7))/0xb*(parseInt(_0xdf6db9(0xd0))/0xc);if(_0x20456a===_0x47375b)break;else _0x42d2a2['push'](_0x42d2a2['shift']());}catch(_0x4cdb89){_0x42d2a2['push'](_0x42d2a2['shift']());}}}(a3_0x3e0c,0x26da3));var __createBinding=this&&this[a3_0x192dc4(0xd9)]||(Object[a3_0x192dc4(0xe4)]?function(_0x5cae4c,_0x1fc8ff,_0x145b0c,_0x57f286){var _0x26dde7=a3_0x192dc4;if(_0x57f286===undefined)_0x57f286=_0x145b0c;var _0xe8dad2=Object[_0x26dde7(0xdf)](_0x1fc8ff,_0x145b0c);(!_0xe8dad2||(_0x26dde7(0xd4)in _0xe8dad2?!_0x1fc8ff[_0x26dde7(0xd8)]:_0xe8dad2[_0x26dde7(0xda)]||_0xe8dad2['configurable']))&&(_0xe8dad2={'enumerable':!![],'get':function(){return _0x1fc8ff[_0x145b0c];}}),Object[_0x26dde7(0xe6)](_0x5cae4c,_0x57f286,_0xe8dad2);}:function(_0x2560e5,_0x812a7a,_0x5303f2,_0x3c439d){if(_0x3c439d===undefined)_0x3c439d=_0x5303f2;_0x2560e5[_0x3c439d]=_0x812a7a[_0x5303f2];}),__exportStar=this&&this[a3_0x192dc4(0xe1)]||function(_0x515de9,_0x5e311c){var _0x35d2c2=a3_0x192dc4;for(var _0x228f56 in _0x515de9)if(_0x228f56!==_0x35d2c2(0xd1)&&!Object['prototype'][_0x35d2c2(0xe3)][_0x35d2c2(0xdd)](_0x5e311c,_0x228f56))__createBinding(_0x5e311c,_0x515de9,_0x228f56);};function a3_0x43d6(_0x4e55f6,_0x14db39){var _0x3e0cd2=a3_0x3e0c();return a3_0x43d6=function(_0x43d60e,_0x20d9a0){_0x43d60e=_0x43d60e-0xce;var _0x4f29c2=_0x3e0cd2[_0x43d60e];return _0x4f29c2;},a3_0x43d6(_0x4e55f6,_0x14db39);}Object['defineProperty'](exports,a3_0x192dc4(0xd8),{'value':!![]}),__exportStar(require(a3_0x192dc4(0xde)),exports),__exportStar(require(a3_0x192dc4(0xd2)),exports),__exportStar(require(a3_0x192dc4(0xd6)),exports);function a3_0x3e0c(){var _0x4abe1f=['24whEwhX','default','./IpDeniedError','38KVraFJ','get','13746MsbHQU','./IpTypes','2856490KFDxgb','__esModule','__createBinding','writable','156548fdjXjZ','255598yfjmLH','call','./IpFilter','getOwnPropertyDescriptor','15ANDbLv','__exportStar','48aLurwl','hasOwnProperty','create','60952ImUrHP','defineProperty','920183vuVApH','99iWOvMk','633234hJyWzV'];a3_0x3e0c=function(){return _0x4abe1f;};return a3_0x3e0c();} \ No newline at end of file diff --git a/lib/utils/byte.js b/lib/utils/byte.js index 12a99c4..f235538 100644 --- a/lib/utils/byte.js +++ b/lib/utils/byte.js @@ -1 +1 @@ -'use strict';var a7_0x3dcd5e=a7_0x4f97;function a7_0x4f97(_0x576839,_0x258887){var _0xd24a3e=a7_0xd24a();return a7_0x4f97=function(_0x4f9709,_0x24f96e){_0x4f9709=_0x4f9709-0x180;var _0x272bd7=_0xd24a3e[_0x4f9709];return _0x272bd7;},a7_0x4f97(_0x576839,_0x258887);}(function(_0x598b65,_0x56f771){var _0x5cd881=a7_0x4f97,_0xe90d12=_0x598b65();while(!![]){try{var _0x5a3e51=-parseInt(_0x5cd881(0x18b))/0x1*(-parseInt(_0x5cd881(0x191))/0x2)+-parseInt(_0x5cd881(0x18c))/0x3+parseInt(_0x5cd881(0x190))/0x4*(parseInt(_0x5cd881(0x180))/0x5)+parseInt(_0x5cd881(0x192))/0x6+-parseInt(_0x5cd881(0x18d))/0x7*(-parseInt(_0x5cd881(0x184))/0x8)+parseInt(_0x5cd881(0x18e))/0x9*(parseInt(_0x5cd881(0x194))/0xa)+-parseInt(_0x5cd881(0x185))/0xb;if(_0x5a3e51===_0x56f771)break;else _0xe90d12['push'](_0xe90d12['shift']());}catch(_0x2a86cb){_0xe90d12['push'](_0xe90d12['shift']());}}}(a7_0xd24a,0xd17f1));Object[a7_0x3dcd5e(0x182)](exports,a7_0x3dcd5e(0x18a),{'value':!![]}),exports[a7_0x3dcd5e(0x183)]=void 0x0;class Byte{[a7_0x3dcd5e(0x189)];constructor(_0x530a7a){var _0x226777=a7_0x3dcd5e;this[_0x226777(0x189)]=new Uint8Array(0x1),this['_byte'][0x0]=_0x530a7a;}static['from'](_0x4a9ec4){return new Byte(_0x4a9ec4);}get[a7_0x3dcd5e(0x193)](){var _0x4faeff=a7_0x3dcd5e;return this[_0x4faeff(0x189)][0x0];}set['value'](_0x5d852a){var _0x5dc3d6=a7_0x3dcd5e;this[_0x5dc3d6(0x189)][0x0]=_0x5d852a;}['setBits'](_0x5cfff1){var _0x2f1307=a7_0x3dcd5e;return _0x5cfff1[_0x2f1307(0x186)](_0x4658eb=>{var _0x31e82c=_0x2f1307;_0x4658eb['value']?this['setBitHigh'](_0x4658eb['position']):this[_0x31e82c(0x188)](_0x4658eb['position']);}),this[_0x2f1307(0x193)];}[a7_0x3dcd5e(0x181)](_0x4d7b8d,_0x6abf6c){var _0x103133=a7_0x3dcd5e;return _0x6abf6c?this[_0x103133(0x18f)](_0x4d7b8d):this[_0x103133(0x188)](_0x4d7b8d),this[_0x103133(0x193)];}[a7_0x3dcd5e(0x18f)](_0x53419c){var _0x40c0f4=a7_0x3dcd5e;return this[_0x40c0f4(0x193)]|=0x1<<_0x53419c,this['value'];}['setBitLow'](_0x3af215){return this['value']&=~(0x1<<_0x3af215),this['value'];}[a7_0x3dcd5e(0x187)](_0x376c73){return(this['value']&0x1<<_0x376c73)>0x0;}}exports[a7_0x3dcd5e(0x183)]=Byte;function a7_0xd24a(){var _0x1f154f=['2612661EVIhUZ','6227893zDpLqJ','3468852OjcLOi','setBitHigh','32PNEcCc','114wXhJdD','9790920EWTTKY','value','30HlCLHs','588785icNGqM','setBit','defineProperty','Byte','8IhlvnF','45125883DuQZab','forEach','readBit','setBitLow','_byte','__esModule','21254KrgWHb'];a7_0xd24a=function(){return _0x1f154f;};return a7_0xd24a();} \ No newline at end of file +'use strict';function a7_0x5076(){var _0x4f95a3=['setBitLow','3377080EEtxvT','setBit','13424mpDGHK','_byte','value','defineProperty','position','468fybPLo','1516040ochizo','setBitHigh','302202cGEhSJ','Byte','setBits','182yxMjCd','readBit','254880rFFpWf','20883JQBwHC','339277AzLTKx'];a7_0x5076=function(){return _0x4f95a3;};return a7_0x5076();}var a7_0x438200=a7_0x1ed1;function a7_0x1ed1(_0x31c896,_0x3b0c41){var _0x5076a5=a7_0x5076();return a7_0x1ed1=function(_0x1ed106,_0xcb6d04){_0x1ed106=_0x1ed106-0x1a1;var _0x2eacfe=_0x5076a5[_0x1ed106];return _0x2eacfe;},a7_0x1ed1(_0x31c896,_0x3b0c41);}(function(_0x32e3e4,_0x2def4c){var _0xf98b2f=a7_0x1ed1,_0x475dcb=_0x32e3e4();while(!![]){try{var _0x1b3061=parseInt(_0xf98b2f(0x1b0))/0x1+parseInt(_0xf98b2f(0x1ac))/0x2*(-parseInt(_0xf98b2f(0x1af))/0x3)+parseInt(_0xf98b2f(0x1a7))/0x4+parseInt(_0xf98b2f(0x1ae))/0x5+-parseInt(_0xf98b2f(0x1a9))/0x6+parseInt(_0xf98b2f(0x1b2))/0x7+parseInt(_0xf98b2f(0x1a1))/0x8*(-parseInt(_0xf98b2f(0x1a6))/0x9);if(_0x1b3061===_0x2def4c)break;else _0x475dcb['push'](_0x475dcb['shift']());}catch(_0x19526c){_0x475dcb['push'](_0x475dcb['shift']());}}}(a7_0x5076,0x75575));Object[a7_0x438200(0x1a4)](exports,'__esModule',{'value':!![]}),exports['Byte']=void 0x0;class Byte{[a7_0x438200(0x1a2)];constructor(_0x50ea55){this['_byte']=new Uint8Array(0x1),this['_byte'][0x0]=_0x50ea55;}static['from'](_0x58a623){return new Byte(_0x58a623);}get[a7_0x438200(0x1a3)](){return this['_byte'][0x0];}set[a7_0x438200(0x1a3)](_0x1c7d89){this['_byte'][0x0]=_0x1c7d89;}[a7_0x438200(0x1ab)](_0x150633){var _0x815d32=a7_0x438200;return _0x150633['forEach'](_0x103cb0=>{var _0x17d25e=a7_0x1ed1;_0x103cb0[_0x17d25e(0x1a3)]?this[_0x17d25e(0x1a8)](_0x103cb0[_0x17d25e(0x1a5)]):this[_0x17d25e(0x1b1)](_0x103cb0[_0x17d25e(0x1a5)]);}),this[_0x815d32(0x1a3)];}[a7_0x438200(0x1b3)](_0x103f1a,_0x498d06){var _0x58f669=a7_0x438200;return _0x498d06?this['setBitHigh'](_0x103f1a):this[_0x58f669(0x1b1)](_0x103f1a),this[_0x58f669(0x1a3)];}[a7_0x438200(0x1a8)](_0xd69ae5){var _0x125f0e=a7_0x438200;return this['value']|=0x1<<_0xd69ae5,this[_0x125f0e(0x1a3)];}[a7_0x438200(0x1b1)](_0x439115){var _0x5209b5=a7_0x438200;return this[_0x5209b5(0x1a3)]&=~(0x1<<_0x439115),this[_0x5209b5(0x1a3)];}[a7_0x438200(0x1ad)](_0x2586fc){var _0x3f8316=a7_0x438200;return(this[_0x3f8316(0x1a3)]&0x1<<_0x2586fc)>0x0;}}exports[a7_0x438200(0x1aa)]=Byte; \ No newline at end of file diff --git a/lib/utils/index.js b/lib/utils/index.js index 6a49d1a..04476f5 100644 --- a/lib/utils/index.js +++ b/lib/utils/index.js @@ -1 +1 @@ -'use strict';var a8_0x3c3a93=a8_0x3a4b;(function(_0x56ef2a,_0x2c37d3){var _0x1c4c07=a8_0x3a4b,_0x251fa6=_0x56ef2a();while(!![]){try{var _0x470638=-parseInt(_0x1c4c07(0x1b7))/0x1*(-parseInt(_0x1c4c07(0x1b4))/0x2)+parseInt(_0x1c4c07(0x1bb))/0x3+parseInt(_0x1c4c07(0x1b6))/0x4*(-parseInt(_0x1c4c07(0x1b9))/0x5)+-parseInt(_0x1c4c07(0x1c1))/0x6*(-parseInt(_0x1c4c07(0x1c7))/0x7)+-parseInt(_0x1c4c07(0x1ba))/0x8*(-parseInt(_0x1c4c07(0x1b5))/0x9)+parseInt(_0x1c4c07(0x1c3))/0xa+-parseInt(_0x1c4c07(0x1bc))/0xb*(parseInt(_0x1c4c07(0x1c6))/0xc);if(_0x470638===_0x2c37d3)break;else _0x251fa6['push'](_0x251fa6['shift']());}catch(_0x1ab021){_0x251fa6['push'](_0x251fa6['shift']());}}}(a8_0x40ed,0x1f185));var __createBinding=this&&this['__createBinding']||(Object[a8_0x3c3a93(0x1c0)]?function(_0x4dd00d,_0x11543c,_0x2fd5b1,_0x6349e5){var _0x693e81=a8_0x3c3a93;if(_0x6349e5===undefined)_0x6349e5=_0x2fd5b1;var _0x8ef1c0=Object['getOwnPropertyDescriptor'](_0x11543c,_0x2fd5b1);(!_0x8ef1c0||(_0x693e81(0x1c4)in _0x8ef1c0?!_0x11543c[_0x693e81(0x1bf)]:_0x8ef1c0[_0x693e81(0x1c9)]||_0x8ef1c0[_0x693e81(0x1c8)]))&&(_0x8ef1c0={'enumerable':!![],'get':function(){return _0x11543c[_0x2fd5b1];}}),Object[_0x693e81(0x1b8)](_0x4dd00d,_0x6349e5,_0x8ef1c0);}:function(_0x4d6983,_0x14f85c,_0x42f93f,_0x4e1bc6){if(_0x4e1bc6===undefined)_0x4e1bc6=_0x42f93f;_0x4d6983[_0x4e1bc6]=_0x14f85c[_0x42f93f];}),__exportStar=this&&this['__exportStar']||function(_0x515170,_0x3e409c){var _0x465220=a8_0x3c3a93;for(var _0x1e0fe0 in _0x515170)if(_0x1e0fe0!=='default'&&!Object[_0x465220(0x1be)][_0x465220(0x1c2)][_0x465220(0x1ca)](_0x3e409c,_0x1e0fe0))__createBinding(_0x3e409c,_0x515170,_0x1e0fe0);};function a8_0x3a4b(_0xf41e2e,_0x3b1504){var _0x40ed1e=a8_0x40ed();return a8_0x3a4b=function(_0x3a4bc8,_0x18d009){_0x3a4bc8=_0x3a4bc8-0x1b4;var _0x30465d=_0x40ed1e[_0x3a4bc8];return _0x30465d;},a8_0x3a4b(_0xf41e2e,_0x3b1504);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),__exportStar(require(a8_0x3c3a93(0x1bd)),exports),__exportStar(require(a8_0x3c3a93(0x1cb)),exports),__exportStar(require(a8_0x3c3a93(0x1c5)),exports);function a8_0x40ed(){var _0x126bd5=['14bNapig','5742Vysoxv','45028tWzUVl','13682kziCUV','defineProperty','25DeTVah','3176bCADRL','8178RiNwuK','11drdEqn','./byte','prototype','__esModule','create','708108xJEIFU','hasOwnProperty','456490icoSLN','get','./logs','5397852QdQqAx','14OygzlL','configurable','writable','call','./rotines'];a8_0x40ed=function(){return _0x126bd5;};return a8_0x40ed();} \ No newline at end of file +'use strict';function a8_0x3831(_0x582c06,_0x14764a){var _0x279f64=a8_0x279f();return a8_0x3831=function(_0x383141,_0x980e12){_0x383141=_0x383141-0x1d6;var _0x3789c9=_0x279f64[_0x383141];return _0x3789c9;},a8_0x3831(_0x582c06,_0x14764a);}var a8_0x109d7a=a8_0x3831;(function(_0x5b2156,_0x38770b){var _0x434334=a8_0x3831,_0x10f9d6=_0x5b2156();while(!![]){try{var _0x2418ea=-parseInt(_0x434334(0x1d6))/0x1*(parseInt(_0x434334(0x1e2))/0x2)+parseInt(_0x434334(0x1e3))/0x3*(-parseInt(_0x434334(0x1e0))/0x4)+-parseInt(_0x434334(0x1e7))/0x5+-parseInt(_0x434334(0x1d9))/0x6*(-parseInt(_0x434334(0x1e6))/0x7)+parseInt(_0x434334(0x1de))/0x8+-parseInt(_0x434334(0x1df))/0x9*(parseInt(_0x434334(0x1ed))/0xa)+-parseInt(_0x434334(0x1dd))/0xb*(-parseInt(_0x434334(0x1e8))/0xc);if(_0x2418ea===_0x38770b)break;else _0x10f9d6['push'](_0x10f9d6['shift']());}catch(_0x3f76d0){_0x10f9d6['push'](_0x10f9d6['shift']());}}}(a8_0x279f,0xc4d0d));function a8_0x279f(){var _0x3d7745=['6798435TUGaVR','391164pFrOxR','./byte','call','create','__exportStar','25980QDtxEH','228936aAmuTM','hasOwnProperty','./logs','42rHVdnS','__createBinding','prototype','getOwnPropertyDescriptor','1441feOBLP','5931000uyfKux','4041rorMZd','12aOmVjp','writable','10YIVQLa','799674qctyya','get','__esModule','265118wjUppF'];a8_0x279f=function(){return _0x3d7745;};return a8_0x279f();}var __createBinding=this&&this[a8_0x109d7a(0x1da)]||(Object[a8_0x109d7a(0x1eb)]?function(_0x1b1c93,_0x1690fe,_0x44d9cd,_0x19fb21){var _0x5e2a3a=a8_0x109d7a;if(_0x19fb21===undefined)_0x19fb21=_0x44d9cd;var _0x58a79a=Object[_0x5e2a3a(0x1dc)](_0x1690fe,_0x44d9cd);(!_0x58a79a||(_0x5e2a3a(0x1e4)in _0x58a79a?!_0x1690fe['__esModule']:_0x58a79a[_0x5e2a3a(0x1e1)]||_0x58a79a['configurable']))&&(_0x58a79a={'enumerable':!![],'get':function(){return _0x1690fe[_0x44d9cd];}}),Object['defineProperty'](_0x1b1c93,_0x19fb21,_0x58a79a);}:function(_0x49e9b8,_0x26e5e6,_0x3221c6,_0x3e435){if(_0x3e435===undefined)_0x3e435=_0x3221c6;_0x49e9b8[_0x3e435]=_0x26e5e6[_0x3221c6];}),__exportStar=this&&this[a8_0x109d7a(0x1ec)]||function(_0x4f7d39,_0x5c963f){var _0x403ac2=a8_0x109d7a;for(var _0x5610d6 in _0x4f7d39)if(_0x5610d6!=='default'&&!Object[_0x403ac2(0x1db)][_0x403ac2(0x1d7)][_0x403ac2(0x1ea)](_0x5c963f,_0x5610d6))__createBinding(_0x5c963f,_0x4f7d39,_0x5610d6);};Object['defineProperty'](exports,a8_0x109d7a(0x1e5),{'value':!![]}),__exportStar(require(a8_0x109d7a(0x1e9)),exports),__exportStar(require('./rotines'),exports),__exportStar(require(a8_0x109d7a(0x1d8)),exports); \ No newline at end of file diff --git a/lib/utils/logs.js b/lib/utils/logs.js index 3b418c2..810e41a 100644 --- a/lib/utils/logs.js +++ b/lib/utils/logs.js @@ -1 +1 @@ -'use strict';var a9_0x45cbf9=a9_0x4f2b;(function(_0x42d317,_0x475b03){var _0x24c8c9=a9_0x4f2b,_0xd862e5=_0x42d317();while(!![]){try{var _0x10b5e3=parseInt(_0x24c8c9(0xdc))/0x1*(parseInt(_0x24c8c9(0xd0))/0x2)+parseInt(_0x24c8c9(0xcb))/0x3+-parseInt(_0x24c8c9(0xdd))/0x4*(-parseInt(_0x24c8c9(0xde))/0x5)+-parseInt(_0x24c8c9(0xd4))/0x6*(-parseInt(_0x24c8c9(0xce))/0x7)+parseInt(_0x24c8c9(0xdb))/0x8+-parseInt(_0x24c8c9(0xd2))/0x9*(parseInt(_0x24c8c9(0xdf))/0xa)+parseInt(_0x24c8c9(0xd1))/0xb*(-parseInt(_0x24c8c9(0xd6))/0xc);if(_0x10b5e3===_0x475b03)break;else _0xd862e5['push'](_0xd862e5['shift']());}catch(_0x119b8){_0xd862e5['push'](_0xd862e5['shift']());}}}(a9_0x1694,0x1ce45));var __importDefault=this&&this[a9_0x45cbf9(0xda)]||function(_0xf69c52){var _0x2ef977=a9_0x45cbf9;return _0xf69c52&&_0xf69c52[_0x2ef977(0xd3)]?_0xf69c52:{'default':_0xf69c52};};function a9_0x4f2b(_0x308358,_0x5cdca5){var _0x16948a=a9_0x1694();return a9_0x4f2b=function(_0x4f2b15,_0x552356){_0x4f2b15=_0x4f2b15-0xc9;var _0x22ddc5=_0x16948a[_0x4f2b15];return _0x22ddc5;},a9_0x4f2b(_0x308358,_0x5cdca5);}Object[a9_0x45cbf9(0xd8)](exports,a9_0x45cbf9(0xd3),{'value':!![]}),exports[a9_0x45cbf9(0xca)]=void 0x0;const pino_1=__importDefault(require(a9_0x45cbf9(0xe0)));class Logs{static ['log']=(0x0,pino_1['default'])({'crlf':!![],'transport':{'target':'pino-pretty','options':{'colorize':!![]},'levels':{'silent':Infinity,'fatal':0x64,'error':0x5a,'warn':0x3c,'info':0x28,'debug':0x14,'trace':0xa}},'timestamp':!![]});constructor(){}static[a9_0x45cbf9(0xd9)](_0x4ea1eb,_0x3214a5,..._0x330dc2){var _0x5cbb54=a9_0x45cbf9;Logs['log'][_0x5cbb54(0xd9)](_0x4ea1eb,_0x3214a5,_0x330dc2);}static[a9_0x45cbf9(0xd7)](_0x130e59,_0x4d1ef2,..._0x56626f){Logs['log']['fatal'](_0x130e59,_0x4d1ef2,_0x56626f);}static['error'](_0x5a4872,_0x2b00f1,..._0x21f584){Logs['log']['error'](_0x5a4872,_0x2b00f1,_0x21f584);}static[a9_0x45cbf9(0xcc)](_0x43a0a2,_0x585b73,..._0x2fdf16){var _0x53bc84=a9_0x45cbf9;Logs['log'][_0x53bc84(0xcc)](_0x43a0a2,_0x585b73,_0x2fdf16);}static['info'](_0x105a33,_0x2dc9f3,..._0xc616d9){var _0x5344cb=a9_0x45cbf9;Logs[_0x5344cb(0xc9)][_0x5344cb(0xcd)](_0x105a33,_0x2dc9f3,_0xc616d9);}static[a9_0x45cbf9(0xcf)](_0x5a1b59,_0x3968a4,..._0x32efa5){var _0x3f85e8=a9_0x45cbf9;Logs['log'][_0x3f85e8(0xcf)](_0x5a1b59,_0x3968a4,_0x32efa5);}static[a9_0x45cbf9(0xd5)](_0x2a67a6,_0x29b00b,..._0x1252ea){var _0x1c4a94=a9_0x45cbf9;Logs[_0x1c4a94(0xc9)][_0x1c4a94(0xd5)](_0x2a67a6,_0x29b00b,_0x1252ea);}}exports['Logs']=Logs;function a9_0x1694(){var _0x3dff49=['1zKAehW','5664FVHWsC','65WZAEat','1970950ZTcYrW','pino','log','Logs','524112iFEuFJ','warn','info','7fCPsJz','debug','468826idQVzd','252021ZvbhkS','9gbomEa','__esModule','282246icBJBv','trace','156yTTDtO','fatal','defineProperty','silent','__importDefault','1109704RLznPI'];a9_0x1694=function(){return _0x3dff49;};return a9_0x1694();} \ No newline at end of file +'use strict';var a9_0x540017=a9_0x5beb;(function(_0x3fa3dc,_0x5d3355){var _0x92bff=a9_0x5beb,_0xd9ca43=_0x3fa3dc();while(!![]){try{var _0x462721=parseInt(_0x92bff(0x157))/0x1+-parseInt(_0x92bff(0x15d))/0x2+parseInt(_0x92bff(0x153))/0x3+-parseInt(_0x92bff(0x159))/0x4+-parseInt(_0x92bff(0x15c))/0x5+-parseInt(_0x92bff(0x14a))/0x6*(parseInt(_0x92bff(0x154))/0x7)+parseInt(_0x92bff(0x155))/0x8;if(_0x462721===_0x5d3355)break;else _0xd9ca43['push'](_0xd9ca43['shift']());}catch(_0x164f25){_0xd9ca43['push'](_0xd9ca43['shift']());}}}(a9_0x228b,0xb846c));function a9_0x228b(){var _0x9dd5e3=['fatal','1385216uKeTBh','log','__importDefault','2144110MnZthB','617762gsojSp','debug','52218VWtvld','error','warn','pino-pretty','pino','trace','info','__esModule','silent','1580679kUOXxS','875dSoQIl','11986008iDIIyn','defineProperty','901534OqOXtK'];a9_0x228b=function(){return _0x9dd5e3;};return a9_0x228b();}function a9_0x5beb(_0xcf0169,_0x50c152){var _0x228ba2=a9_0x228b();return a9_0x5beb=function(_0x5bebfa,_0x3b46b4){_0x5bebfa=_0x5bebfa-0x14a;var _0x488395=_0x228ba2[_0x5bebfa];return _0x488395;},a9_0x5beb(_0xcf0169,_0x50c152);}var __importDefault=this&&this[a9_0x540017(0x15b)]||function(_0x5bab77){var _0x1cbb18=a9_0x540017;return _0x5bab77&&_0x5bab77[_0x1cbb18(0x151)]?_0x5bab77:{'default':_0x5bab77};};Object[a9_0x540017(0x156)](exports,a9_0x540017(0x151),{'value':!![]}),exports['Logs']=void 0x0;const pino_1=__importDefault(require(a9_0x540017(0x14e)));class Logs{static [a9_0x540017(0x15a)]=(0x0,pino_1['default'])({'crlf':!![],'transport':{'target':a9_0x540017(0x14d),'options':{'colorize':!![]},'levels':{'silent':Infinity,'fatal':0x64,'error':0x5a,'warn':0x3c,'info':0x28,'debug':0x14,'trace':0xa}},'timestamp':!![]});constructor(){}static[a9_0x540017(0x152)](_0x25397a,_0x31f018,..._0x4891e4){var _0x183388=a9_0x540017;Logs[_0x183388(0x15a)][_0x183388(0x152)](_0x25397a,_0x31f018,_0x4891e4);}static[a9_0x540017(0x158)](_0x5aad0c,_0x3d4b3f,..._0x1743e3){var _0xaec20a=a9_0x540017;Logs[_0xaec20a(0x15a)][_0xaec20a(0x158)](_0x5aad0c,_0x3d4b3f,_0x1743e3);}static['error'](_0x284003,_0x300374,..._0x25f76f){var _0x55fc28=a9_0x540017;Logs[_0x55fc28(0x15a)][_0x55fc28(0x14b)](_0x284003,_0x300374,_0x25f76f);}static[a9_0x540017(0x14c)](_0x58a353,_0x1574aa,..._0x1db5be){var _0x4e48a9=a9_0x540017;Logs[_0x4e48a9(0x15a)]['warn'](_0x58a353,_0x1574aa,_0x1db5be);}static[a9_0x540017(0x150)](_0x39582f,_0x1be20b,..._0x9221ac){var _0x12f8f3=a9_0x540017;Logs[_0x12f8f3(0x15a)][_0x12f8f3(0x150)](_0x39582f,_0x1be20b,_0x9221ac);}static[a9_0x540017(0x15e)](_0x35c618,_0x55d851,..._0x553364){var _0x3070c9=a9_0x540017;Logs['log'][_0x3070c9(0x15e)](_0x35c618,_0x55d851,_0x553364);}static[a9_0x540017(0x14f)](_0x5c46a8,_0x3bdf27,..._0x4b36bc){var _0x59b40b=a9_0x540017;Logs[_0x59b40b(0x15a)]['trace'](_0x5c46a8,_0x3bdf27,_0x4b36bc);}}exports['Logs']=Logs; \ No newline at end of file diff --git a/lib/utils/rotines.js b/lib/utils/rotines.js index 39f3bfd..726d8b2 100644 --- a/lib/utils/rotines.js +++ b/lib/utils/rotines.js @@ -1 +1 @@ -'use strict';const a10_0x2e80fb=a10_0x41f9;(function(_0x1eda81,_0x38e730){const _0x334427=a10_0x41f9,_0x376bf9=_0x1eda81();while(!![]){try{const _0x109720=-parseInt(_0x334427(0xd5))/0x1+parseInt(_0x334427(0xdf))/0x2*(-parseInt(_0x334427(0xeb))/0x3)+parseInt(_0x334427(0xda))/0x4*(parseInt(_0x334427(0xcf))/0x5)+parseInt(_0x334427(0xd1))/0x6+parseInt(_0x334427(0xd9))/0x7+parseInt(_0x334427(0xdb))/0x8*(parseInt(_0x334427(0xe3))/0x9)+-parseInt(_0x334427(0xd4))/0xa;if(_0x109720===_0x38e730)break;else _0x376bf9['push'](_0x376bf9['shift']());}catch(_0x12a3b5){_0x376bf9['push'](_0x376bf9['shift']());}}}(a10_0x30bd,0xc5ea2));Object[a10_0x2e80fb(0xd0)](exports,a10_0x2e80fb(0xd3),{'value':!![]}),exports[a10_0x2e80fb(0xd8)]=void 0x0;const buffer_1=require(a10_0x2e80fb(0xdc));function a10_0x30bd(){const _0x18aca2=['5729862JIRoIk','StrHexaToByte','__esModule','39785600mWUUyD','266199nSXcjV','StrToByte','ByteToHexa','Routines','9408070UfKWVZ','36956ZwejwI','3157816lPpovs','buffer','toString','substr','52196QlimSP','charCodeAt','CompletaCampos','ByteToString','27Rfgryd','between','length','padStart','evalBool','ByteToWord','true','map','3kBnObf','ByteToNumber','865NGgLxu','defineProperty'];a10_0x30bd=function(){return _0x18aca2;};return a10_0x30bd();}function a10_0x41f9(_0x402b76,_0xd935d0){const _0x30bd02=a10_0x30bd();return a10_0x41f9=function(_0x41f972,_0x2e63eb){_0x41f972=_0x41f972-0xcf;let _0xdcf0b8=_0x30bd02[_0x41f972];return _0xdcf0b8;},a10_0x41f9(_0x402b76,_0xd935d0);}class Routines{static [a10_0x2e80fb(0xe1)]=(_0x423fdd,_0x311ad7,_0x4c2727,_0x4abab9,_0x3415e2=!![])=>{const _0x16ad37=a10_0x2e80fb;if(_0x423fdd['length']<_0x4abab9)return _0x4c2727==='E'?_0x423fdd[_0x16ad37(0xe6)](_0x4abab9,_0x311ad7):_0x423fdd['padEnd'](_0x4abab9,_0x311ad7);else{if(_0x423fdd[_0x16ad37(0xe5)]>_0x4abab9&&_0x3415e2)return _0x423fdd['substr'](0x0,_0x4abab9);}return _0x423fdd;};static [a10_0x2e80fb(0xe8)]=_0x52cd05=>{const _0x5e3bc0=a10_0x2e80fb;if(_0x52cd05[_0x5e3bc0(0xe5)]>0x2)return _0x52cd05[0x0]<<0x8|_0x52cd05[0x1];};static [a10_0x2e80fb(0xec)]=_0x2b477c=>{const _0x247997=a10_0x2e80fb;if(Routines[_0x247997(0xe4)](_0x2b477c[_0x247997(0xe5)],0x1,0x4)){let _0x5ac6ee=0x0;for(let _0x401ebf=0x0;_0x401ebf<_0x2b477c['length'];_0x401ebf++){_0x5ac6ee|=_0x2b477c[_0x2b477c[_0x247997(0xe5)]-0x1-_0x401ebf]<<_0x401ebf*0x8;}return _0x5ac6ee;}};static [a10_0x2e80fb(0xe2)]=_0x386155=>{const _0x2da15c=a10_0x2e80fb;let _0x379817='';return _0x386155[_0x2da15c(0xea)](_0x53bf0a=>{return _0x379817+=String['fromCharCode'](_0x53bf0a),_0x53bf0a;}),_0x379817;};static [a10_0x2e80fb(0xd7)]=_0x102577=>buffer_1['Buffer']['from'](_0x102577)[a10_0x2e80fb(0xdd)]('hex');static [a10_0x2e80fb(0xd2)]=_0x5e3441=>{const _0x504a89=a10_0x2e80fb;let _0x488249='';_0x5e3441[_0x504a89(0xe5)]%0x2!==0x0?_0x488249=_0x5e3441['padStart'](_0x5e3441['length']+0x1,'0'):_0x488249=_0x5e3441;const _0x44660c=new Uint8Array(_0x5e3441['length']/0x2);for(let _0x1e14c3=0x0,_0x62b5d7=0x0;_0x1e14c3<_0x5e3441[_0x504a89(0xe5)];_0x1e14c3+=0x2,_0x62b5d7++){_0x44660c[_0x62b5d7]=parseInt(_0x5e3441[_0x504a89(0xde)](_0x1e14c3,0x2),0x10);}return _0x44660c;};static [a10_0x2e80fb(0xd6)]=_0x1e0a82=>{const _0x3254a2=a10_0x2e80fb,_0x36c80e=new Uint8Array(_0x1e0a82['length']);let _0x3c9fe4=0x0;for(const _0x17d9dd of _0x1e0a82){_0x36c80e[_0x3c9fe4++]=_0x17d9dd[_0x3254a2(0xe0)](0x0);}return _0x36c80e;};static [a10_0x2e80fb(0xe4)]=(_0x445464,_0x48cbc3,_0x98dc88)=>_0x445464>=_0x48cbc3&&_0x445464<=_0x98dc88;static ['parseNumber']=(_0x70dad3,_0xf8c5fb)=>{try{return isNaN(Number(_0x70dad3))?_0xf8c5fb:Number(_0x70dad3);}catch(_0x5bbb2c){return _0xf8c5fb;}};static[a10_0x2e80fb(0xe7)](_0x4df9d1){const _0x1d148c=a10_0x2e80fb;return _0x4df9d1==='1'||_0x4df9d1===_0x1d148c(0xe9)||_0x4df9d1===!![];}}exports['Routines']=Routines; \ No newline at end of file +'use strict';const a10_0x5ed44c=a10_0x5daa;function a10_0x5daa(_0x1895f2,_0x31f8fa){const _0x5cfb8a=a10_0x5cfb();return a10_0x5daa=function(_0x5daaf1,_0x2d062d){_0x5daaf1=_0x5daaf1-0x1c2;let _0x39de0f=_0x5cfb8a[_0x5daaf1];return _0x39de0f;},a10_0x5daa(_0x1895f2,_0x31f8fa);}(function(_0x505ff1,_0xe67e9){const _0x2bbed6=a10_0x5daa,_0xe3680c=_0x505ff1();while(!![]){try{const _0x45d02c=parseInt(_0x2bbed6(0x1c6))/0x1+parseInt(_0x2bbed6(0x1c3))/0x2+-parseInt(_0x2bbed6(0x1d4))/0x3*(-parseInt(_0x2bbed6(0x1ce))/0x4)+-parseInt(_0x2bbed6(0x1de))/0x5+-parseInt(_0x2bbed6(0x1da))/0x6+parseInt(_0x2bbed6(0x1d0))/0x7+parseInt(_0x2bbed6(0x1d3))/0x8*(-parseInt(_0x2bbed6(0x1d1))/0x9);if(_0x45d02c===_0xe67e9)break;else _0xe3680c['push'](_0xe3680c['shift']());}catch(_0x472b79){_0xe3680c['push'](_0xe3680c['shift']());}}}(a10_0x5cfb,0x9d0a7));Object[a10_0x5ed44c(0x1c5)](exports,a10_0x5ed44c(0x1c2),{'value':!![]}),exports[a10_0x5ed44c(0x1db)]=void 0x0;const buffer_1=require(a10_0x5ed44c(0x1c8));class Routines{static [a10_0x5ed44c(0x1d2)]=(_0x5e47c5,_0x259100,_0x4c6d16,_0x533f25,_0x2562e7=!![])=>{const _0x398b13=a10_0x5ed44c;if(_0x5e47c5[_0x398b13(0x1c4)]<_0x533f25)return _0x4c6d16==='E'?_0x5e47c5[_0x398b13(0x1dd)](_0x533f25,_0x259100):_0x5e47c5[_0x398b13(0x1cd)](_0x533f25,_0x259100);else{if(_0x5e47c5[_0x398b13(0x1c4)]>_0x533f25&&_0x2562e7)return _0x5e47c5[_0x398b13(0x1cf)](0x0,_0x533f25);}return _0x5e47c5;};static [a10_0x5ed44c(0x1c9)]=_0x5b270b=>{const _0x163a50=a10_0x5ed44c;if(_0x5b270b[_0x163a50(0x1c4)]>0x2)return _0x5b270b[0x0]<<0x8|_0x5b270b[0x1];};static ['ByteToNumber']=_0x5f2955=>{const _0x39c571=a10_0x5ed44c;if(Routines[_0x39c571(0x1dc)](_0x5f2955[_0x39c571(0x1c4)],0x1,0x4)){let _0x346e65=0x0;for(let _0x5054bf=0x0;_0x5054bf<_0x5f2955[_0x39c571(0x1c4)];_0x5054bf++){_0x346e65|=_0x5f2955[_0x5f2955['length']-0x1-_0x5054bf]<<_0x5054bf*0x8;}return _0x346e65;}};static ['ByteToString']=_0x104886=>{let _0x2d4b1e='';return _0x104886['map'](_0x4f1f84=>{const _0xd80d82=a10_0x5daa;return _0x2d4b1e+=String[_0xd80d82(0x1cc)](_0x4f1f84),_0x4f1f84;}),_0x2d4b1e;};static ['ByteToHexa']=_0x23bc80=>buffer_1[a10_0x5ed44c(0x1d9)][a10_0x5ed44c(0x1ca)](_0x23bc80)[a10_0x5ed44c(0x1d5)](a10_0x5ed44c(0x1d8));static [a10_0x5ed44c(0x1d7)]=_0xbd70b3=>{const _0xe4411d=a10_0x5ed44c;let _0x1165f7='';_0xbd70b3[_0xe4411d(0x1c4)]%0x2!==0x0?_0x1165f7=_0xbd70b3[_0xe4411d(0x1dd)](_0xbd70b3['length']+0x1,'0'):_0x1165f7=_0xbd70b3;const _0x4b7e3c=new Uint8Array(_0xbd70b3[_0xe4411d(0x1c4)]/0x2);for(let _0xd6c867=0x0,_0x3a9bdb=0x0;_0xd6c867<_0xbd70b3[_0xe4411d(0x1c4)];_0xd6c867+=0x2,_0x3a9bdb++){_0x4b7e3c[_0x3a9bdb]=parseInt(_0xbd70b3[_0xe4411d(0x1cf)](_0xd6c867,0x2),0x10);}return _0x4b7e3c;};static [a10_0x5ed44c(0x1d6)]=_0x5a44f7=>{const _0x3dcea2=a10_0x5ed44c,_0x203f51=new Uint8Array(_0x5a44f7[_0x3dcea2(0x1c4)]);let _0x9d91cf=0x0;for(const _0x4afff0 of _0x5a44f7){_0x203f51[_0x9d91cf++]=_0x4afff0[_0x3dcea2(0x1cb)](0x0);}return _0x203f51;};static ['between']=(_0x41054b,_0x507ead,_0xb721d0)=>_0x41054b>=_0x507ead&&_0x41054b<=_0xb721d0;static ['parseNumber']=(_0x2aa85b,_0x1c1f9e)=>{try{return isNaN(Number(_0x2aa85b))?_0x1c1f9e:Number(_0x2aa85b);}catch(_0x179678){return _0x1c1f9e;}};static[a10_0x5ed44c(0x1c7)](_0x16a184){return _0x16a184==='1'||_0x16a184==='true'||_0x16a184===!![];}}function a10_0x5cfb(){const _0x3546c3=['14189064TkhLwe','246kgWXbC','toString','StrToByte','StrHexaToByte','hex','Buffer','402846ztRegE','Routines','between','padStart','3351055dPdBzj','__esModule','1506020HlZyhC','length','defineProperty','582308ayqovH','evalBool','buffer','ByteToWord','from','charCodeAt','fromCharCode','padEnd','41700QgBJSZ','substr','6748392SkIlVR','9luGEDk','CompletaCampos'];a10_0x5cfb=function(){return _0x3546c3;};return a10_0x5cfb();}exports[a10_0x5ed44c(0x1db)]=Routines; \ No newline at end of file diff --git a/package.json b/package.json index 0b60cf4..4bcc45b 100644 --- a/package.json +++ b/package.json @@ -1,51 +1,54 @@ { - "name": "fre-utils", - "version": "1.1.3", - "description": "FRE Access Systems Utilities", - "bin": "lib/index.js", - "main": "lib/index.js", - "types": "lib/index.d.ts", - "scripts": { - "postversion": "git push && git push --tags" - }, - "files": [ - "lib/**/*" - ], - "keywords": [ - "api", - "node", - "js", - "ts", - "utils" - ], - "author": { - "email": "tisoares@outlook.com", - "name": "Tiago Soares", - "url": "https://github.com/tisoares/" - }, - "license": "ISC", - "repository": { - "type": "git", - "url": "git+https://git.fre.com.br/FRE-Publico/node-fre-utils.git" - }, - "dependencies": { - "ip": "^1.1.8", - "proxy-addr": "^2.0.7", - "range_check": "^2.0.4", - "tslib": "^2.6.2", - "tslint": "^6.1.3" - }, - "devDependencies": { - "@types/ip": "^1.1.3", - "@types/jest": "^29.5.11", - "@types/node": "^20.10.4", - "@types/proxy-addr": "^2.0.3", - "javascript-obfuscator": "^4.1.0", - "jest": "^29.7.0", - "nodemon": "^3.0.2", - "ts-jest": "^29.1.1", - "ts-node": "^10.9.2", - "typescript": "^5.3.3" - }, - "engineStrict": true -} + "name": "fre-utils", + "version": "1.1.3", + "description": "FRE Access Systems Utilities", + "bin": "lib/index.js", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "scripts": { + "postversion": "git push && git push --tags" + }, + "files": [ + "lib/**/*" + ], + "keywords": [ + "api", + "node", + "js", + "ts", + "utils" + ], + "author": { + "email": "tisoares@outlook.com", + "name": "Tiago Soares", + "url": "https://github.com/tisoares/" + }, + "license": "ISC", + "repository": { + "type": "git", + "url": "git+https://git.fre.com.br/FRE-Publico/node-fre-utils.git" + }, + "dependencies": { + "ip": "^1.1.8", + "pino": "^8.17.2", + "pino-http": "^9.0.0", + "pino-pretty": "^10.3.1", + "proxy-addr": "^2.0.7", + "range_check": "^2.0.4", + "tslib": "^2.6.2", + "tslint": "^6.1.3" + }, + "devDependencies": { + "@types/ip": "^1.1.3", + "@types/jest": "^29.5.11", + "@types/node": "^20.10.4", + "@types/proxy-addr": "^2.0.3", + "javascript-obfuscator": "^4.1.0", + "jest": "^29.7.0", + "nodemon": "^3.0.2", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.2", + "typescript": "^5.3.3" + }, + "engineStrict": true +} \ No newline at end of file