Merge pull request #14 from neutrinoguy/ics

Added Modbus protocol
pull/20/head
Swissky 2022-10-10 09:52:07 +02:00 committed by GitHub
commit c607332c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 41 additions and 0 deletions

41
docs/protocols/modbus.md Normal file
View File

@ -0,0 +1,41 @@
# Modbus
### Discovery
**Modbus Client:**
- [QModBus](https://sourceforge.net/projects/qmodbus/)
- [pymodbus](https://github.com/riptideio/pymodbus)
- [Modbus Tools](https://www.modbustools.com/)
**Modbus Discover Nmap Script:**
```bash
nmap --script modbus-discover.nse --script-args='modbus-discover.aggressive=true' -p 502 <host>
```
**Connect to Modbus Slave:**
``` python
from pymodbus.client import ModbusTcpClient
client = ModbusTcpClient('<IP_Address_of_Target>')
client.write_coil(1, True)
result = client.read_coils(1,1)
print(result.bits[0])
client.close()
```
**Modbus Pentesting:**
- [smod](https://github.com/0x0mar/smod)
**Modbus Slave Simulator**
- [Diagslave](https://www.modbusdriver.com/diagslave.html)
- [ModbusPal](https://modbuspal.sourceforge.net/)
**Modbus Master Simulator**
- [modpoll](https://www.modbusdriver.com/modpoll.html)