Attacking the Modbus protocol