关联漏洞
标题:
OpenSSH 安全漏洞
(CVE-2024-6387)
描述:OpenSSH(OpenBSD Secure Shell)是加拿大OpenBSD计划组的一套用于安全访问远程计算机的连接工具。该工具是SSH协议的开源实现,支持对所有的传输进行加密,可有效阻止窃听、连接劫持以及其他网络级的攻击。 OpenSSH 存在安全漏洞,该漏洞源于信号处理程序中存在竞争条件,攻击者利用该漏洞可以在无需认证的情况下远程执行任意代码并获得系统控制权。
介绍
# CVE-2024-6387-Checker
This tool scans your network for hosts running vulnerable versions of OpenSSH (CVE-2024-6387). It can handle single IPs, multiple IPs, CIDR ranges, and CSV files with custom ports.
## Requirements
Install the required libraries using pip:
```sh
pip install paramiko netaddr pandas termcolor
```
## Usage
Command-line Arguments
```sh
python CVE-2024-6387-Checker.py [-h] [-p PORT] [-c] input [-w WORKERS]
```
- `input`: Host(s) to scan (single IP, comma-separated, CIDR, or file path)
- `-p, --port`: SSH port (default: 22)
- `-c, --csv`: Input is a CSV file with IP and port columns
- `-w, --workers`: Specify number of workers (default: 10)
## Examples
Single Host on Default Port (22)
```sh
python CVE-2024-6387-Checker.py 192.168.1.1
```
Multiple Hosts (comma-separated)
```sh
python CVE-2024-6387-Checker.py 192.168.1.1,192.168.1.2
```
CIDR Notation
```sh
python CVE-2024-6387-Checker.py 192.168.1.0/24
```
Hosts from a File
Create a file hosts.txt with each host on a new line:
```sh
python CVE-2024-6387-Checker.py hosts.txt
```
Specify an Alternative Port
```sh
python CVE-2024-6387-Checker.py 192.168.1.1 -p 2222
```
Scan from a CSV File
Create a CSV file `hosts.csv` with columns `ip` and `port`:
```csv
ip,port
192.168.1.1,22
192.168.1.2,2222
```
Scan using the CSV file:
```sh
python CVE-2024-6387-Checker.py -c hosts.csv -c
```
Specify Number of Workers:
```sh
python scan_openssh.py 192.168.1.0/24 -w 20
```
## Script Overview
`check_ssh_version(host, port)`
Attempts to connect to the specified host and port, retrieves the SSH banner, and checks if it matches vulnerable OpenSSH versions.
`scan_hosts(hosts, port)`
Scans a list of hosts on the specified port.
`scan_csv(file_path)`
Reads a CSV file with ip and port columns and scans each host.
`main()`
Parses command-line arguments and initiates the appropriate scan based on the input format.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contributing
Contributions are welcome. Please submit pull requests for any enhancements or bug fixes.
文件快照
[4.0K] /data/pocs/56cfdefedeb04d1641a14fc8213b50a033347fe4
├── [4.9K] CVE-2024-6387-Checker.py
├── [ 59] example.csv
├── [1.0K] LICENSE
├── [2.1K] README.md
└── [ 34] requirements.txt
0 directories, 5 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。