Skip to content

A security professional's swiss army knife for interacting with raw serial devices

License

Notifications You must be signed in to change notification settings

cambosa/ctserial

This branch is 18 commits behind ControlThings-io/ctserial:main.

Repository files navigation

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 philipp.l.klaus@web.de which can be found at:

Which in turn was a python implementation of:

About

A security professional's swiss army knife for interacting with raw serial devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%