ctserial goal is to become the security professional's Swiss army knife for interacting with raw serial devices
As long as you have git and Python 3.5 or later installed, all you should need to do is:
git clone https://github.com/ControlThingsTools/ctserial.git
cd ctserial
pip3 install -r requirements.txt
First, start the tool from a terminal. Then connect to your serial device and interact with it. For example:
ctmodbus> connect /dev/your-serial-device
ctmodbus> sendhex deadc0de (sends actual hex, so 4 bytes)
ctmodbus> sendhex \xde \xad c0de (sends same hex as before, ignoring spaces and \x)
ctmondus> send Dead Code 国 (sends full utf-8 string without spaces)
ctmodbus> send "Dead Code 国" (Use quotes if you need spaces)
ctmodbus> exit
Python 3.5+ and all dependencies are available for all major operating systems. It is primarily developed on MacOS and Linux, but should work in Windows as well.
- Justin Searle justin@controlthings.io
Based on the excellent work of Philipp Klaus philipp.l.klaus@web.de which can be found at:
Which in turn was a python implementation of: