Breaking Modbus

For the following exercises, I am using a lab setup that includes two virtual machines, one running a copy of Ubuntu Linux with IP address 192.168.179.131 assigned and the other running a copy of Kali Linux with IP address 192.168.179.129 assigned. The Ubuntu Linux virtual machine is used to run a Modbus stack, implemented in Python. The Kali virtual machine will be our attacker. I choose Kali Linux because it is a free pentesting distro that comes preloaded with a slew of hacking tools.

To get the Modbus server running on the Ubuntu VM, open Command Prompt and install the pyModbus module with the following commands:

$ sudo apt-get install python-pip      # In case pip did not get installed $ sudo pip install pyModbus

Next, we ...

Get Industrial Cybersecurity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.