pymodbus
Auth/lab ref: Python library for Modbus TCP and serial communication.
v2026.11.13-21cd5682 installs+2 in 7 days39 Starssynced 11 hours ago
Install
No NotHoly CLI yet? Install it first.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/pymodbusWrites to ~/.notholy/skills after checking the signature and the SHA-256.
SignatureSigned, ed25519
Packagef5ee77d4…8046fddc
f5ee77d4c738…15d48046fddc1 file · 1.0 KBScanMedium1 finding
- No license found
Sourcegithub.com/AeonDave/malskill/tree/main/offensive-tools/network/pymodbus@21cd568
On this page
Programmatic Modbus access for the moments when register poking stops being a one-off curiosity.
When to use PyModbus
Use PyModbus when you need to:
- read coils, discrete inputs, input registers, or holding registers
- write single or multiple coils/registers in an authorized lab
- script repeatable ICS/OT probes against Modbus TCP or RTU endpoints
Quick Start
from pymodbus.client import ModbusTcpClient
client = ModbusTcpClient("192.168.1.10", port=502)
client.connect()
result = client.read_holding_registers(address=0, count=2, slave=1)
print(result.registers)
client.close()High-Value Workflows
Read holding registers
from pymodbus.client import ModbusTcpClient
client = ModbusTcpClient("192.168.1.10", port=502)
client.connect()
resp = client.read_holding_registers(address=100, count=4, slave=1)
print(resp.registers)
client.close()Write a register or coil
client.write_register(address=10, value=1234, slave=1)
client.write_coil(address=5, value=True, slave=1)Practical Notes
- Confirm unit/slave ID, register base, and endianness assumptions before concluding a read is wrong.
- Read operations are the right first move; write operations should be deliberate and explicitly authorized.
- Pair with packet captures or device manuals when register meaning is unclear.
Caveats
- Modbus address numbering in documentation may not match library expectations exactly.
- Write calls can affect real processes; stay inside lab scope and use safe targets.
- Timeouts, serial settings, and endian interpretation cause a lot of false negatives.
Resources
No bundled scripts/, references/, or assets/.
Use the current PyModbus docs for async clients, serial/RTU examples, and payload decoding helpers.
Files in this version
- SKILL.md2.0 KB
Permissions
| Permission | Declared | Found by the scan |
|---|---|---|
| Reads files | No | No |
| Writes files | No | No |
| Runs shell commands | No | No |
| Uses the network | No | No |
| Uses connectors | No | No |
| Drives a browser | No | No |
Scan findings
Reviewed on Nov 13, 2026
- MediumLicense · No license found
A clean scan lowers the risk but does not prove a package is safe. Read what you install.
| Version | Published | Commit | SHA-256 | Signature | Permission change |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | Nov 13, 2026 | 21cd568 | f5ee77d4 | Signed | – |
More from AeonDave
All from this publisherMore in Network, wireless and telecom
See the category- performing-network-packet-capture-analysismukul975/performing-network-packet-capture-analysis4
- network-segmentation-reviewsecurityskills/network-segmentation-review3
- performing-ssl-stripping-attackmukul975/performing-ssl-stripping-attack3
- implementing-next-generation-firewall-with-palo-altomukul975/implementing-next-generation-firewall-with-palo-alto3
- configuring-zscaler-private-access-for-ztnamukul975/configuring-zscaler-private-access-for-ztna3
- implementing-canary-tokens-for-network-intrusionmukul975/implementing-canary-tokens-for-network-intrusion3
Ask anything your scope allows.
Create an account, add credits and ask the first question in the chat or the terminal.
- 1/3
Create the account
Individual or company. You can switch to a company later without losing balance or keys.
IndividualCompany - 2/3
Add credits
By card. Pay per token, no subscription.
$5.00minimum deposit - 3/3
Ask
In the chat, or install the CLI and run notholy login in your terminal.
$ notholy login