Modbus-cli is not the only way to query the Modbus server. For this exercise, I will be introducing one of my favorite tools, or more precisely a Python framework, Scapy. Freely available at http://www.secdev.org/projects/scapy/ but also pre-installed on Kali, Scapy is a powerful interactive packet manipulation tool. It can build, forge, and decode packets for a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. It can handle most classic tasks, such as scanning, tracerouting, probing, unit tests, attacks, or network discovery. It also performs a lot of other specific tasks that most other cookie-cut tools can't do, such as sending invalid ...
Using Python and Scapy to communicate over Modbus
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.