smod is a modular framework with every kind of diagnostic and offensive feature you could need in order to pentest the modbus protocol. It is a full modbus protocol implementation using Python and Scapy. This software can be run on Linux/OSX under python 2.7.x.
You can download it from the following link: https://packetstormsecurity.com/files/download/135366/smod-1.0.1.tar.gz
Source: https://packetstormsecurity.com/files/135366/smod-Modbus-Assessment-Framework-1.0.1.html