Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.29 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.29 KB

Control Things Serial

ctserial goal is to become the security professional's Swiss army knife for interacting with raw serial devices

Installation:

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

Usage:

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

Platform Independence

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.

Author

Based on the excellent work of Philipp Klaus [email protected] which can be found at:

Which in turn was a python implementation of: