Microsoft SMBv3 圧縮(別名 coronablue、SMBGhost)における脆弱な CVE-2020-0796 問題を検出する NSE スクリプト。
このスクリプトは、smb-protocols.nse スクリプトの修正版であり、v3.11 の検出と CVE-2020-0796 の検証のために出力データを変更したものです。
注: このスクリプトは SMBv3 上の CVE-2020-0796 の脆弱性を安全にチェックするだけで、それ以上のことは試みません。
.nse ファイルを nmap/scripts/ フォルダにコピーし、update を実行します。
cp cve-2020-0796.nse /usr/share/nmap/scripts/
nmap --script-updatedb
次のように実行します。
nmap -p445 --script cve-2020-0796 <<target>>
-- @output
-- | smb-protocols:
-- | dialects:
-- | NT LM 0.12 (SMBv1) [dangerous, but default]
-- | 2.02
-- | 2.10
-- | 3.00
-- | 3.02
-- |_ 3.11 (SMBv3.11) LZNT1 compression algorithm - Vulnerable to CVE-2020-0796 SMBGhost
圧縮のチェックは https://github.com/ollypwn/SMBGhost/ に基づいています。nselib の smb.lua を利用して実装することもできましたが、関数の大幅な編集が必要だったため、ソケットを使用しました。
Microsoft DNS サーバー(別名 SIGRed)における脆弱な CVE-2020-1350 問題を検出する NSE スクリプト。
このスクリプトは、CVE-2020-1350 のチェックを含む dns-nsid.nse スクリプトのコードコンポーネントを利用しています。
注: このスクリプトは、Microsoft DNS サーバー上の CVE-2020-1350 の脆弱性を識別目的のみで安全にチェックするだけで、それ以上のことは試みません。このスクリプトは完全ではなく、dig CH TXT bind.version @target の出力に依存しており、DNS バージョン番号が隠されている場合は失敗します。
.nse ファイルを nmap/scripts/ フォルダにコピーし、update を実行します。
cp cve-2020-1350.nse /usr/share/nmap/scripts/
nmap --script-updatedb
次のように実行します。
sudo nmap -sSU -p53 --script cve-2020-1350 <<target>>
sudo nmap -sSU -p53 --script cve-2020-1350 <<target>> --script-args output=<outputfile.txt>
スクリプト引数として指定されたカスタム HTTP タイトルを検索する NSE スクリプトです。このスクリプトは、必要な HTTP タイトルの結果のみを検索して提供するのに役立ちます。
.nse ファイルを nmap/scripts/ フォルダにコピーし、update を実行します。
cp http-custom-title.nse /usr/share/nmap/scripts/
nmap --script-updatedb
次のように実行します。
nmap --script ./http-custom-title.nse -p80 scanme.nmap.org --script-args customtitle='ScanMe'
nmap --script ./http-custom-title.nse <<target>> --script-args customtitle='Apache'
vCenter の脆弱性 CVE-2021-21972、CVE-2021-21973 をチェックするためのものです。このスクリプトはさらに、vSphere のバージョンとビルド番号も出力します。
.nse ファイルを nmap/scripts/ フォルダにコピーし、update を実行します。
cp cve-2021-21972.nse /usr/share/nmap/scripts/
nmap --script-updatedb
次のように実行します。
nmap --script cve-2021-21972.nse -p443 <host> (optional: --script-args output=report.txt)