目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2024-6387 PoC — OpenSSH 安全漏洞

来源
关联漏洞
标题: OpenSSH 安全漏洞 (CVE-2024-6387)
Description: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.
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →