
CVE-2024-6387 エクスプロイト
SSH脆弱性スキャナーは、Nmapを使用してドメインのリストをスキャンし、脆弱性のあるSSHバージョンを検出するPythonスクリプトです。複数のポートでSSHサービスをチェックし、既知のセキュリティ脆弱性があるバージョンを特定します。
nmap ライブラリ (python3-nmap)termcolor ライブラリ (termcolor)リポジトリをクローンします:
git clone https://github.com/thegenetic/CVE-2024-6387-exploit.git
cd CVE-2024-6387-exploit
依存関係をインストールします:
pip install -r requirements.txt
domains.txt) を作成します。1行に1ドメインを指定します。python CVE-2024-6387.py domains.txt
-Pn: すべてのホストをオンラインとして扱います(ホスト検出をスキップします)。-sV: オープンポートを調査してサービス/バージョン情報を特定します。-p-: 65535すべてのポートをスキャンします。--script ssh2-enum-algos,ssh-auth-methods,ssh-hostkey,ssh-run,sshv1: SSH固有のスクリプトを使用して、より詳細な情報を取得します。$ python CVE-2024-6387.py domains.txt
Scanning example.com (93.184.216.34)...
[example.com] SSH version detected on port 22: SSH-2.0-OpenSSH_8.8p1
[example.com] SSH version detected on port 2222: SSH-2.0-OpenSSH_8.6p1
...
Scan Results:
example.com (22): SSH-2.0-OpenSSH_8.8p1
example.com (2222): SSH-2.0-OpenSSH_8.6p1
example.com (none): No SSH version detected on open ports
...
$ cat domains.txt
example.com
...