Skip to content

A low-level CAN protocol hacking library

License

Notifications You must be signed in to change notification settings

jinparksj/canhack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Welcome to the CANHack repository

This repository contains tools and resources for CAN hacking.

The src folder contains canframe.py that provides the CANFrame class that generates the bitstream of a CAN frame.

Also included are canhack.h and canhack.c, the generic C for the CANHack toolkit. The subfolder pyb contains files that port the toolkit to the PyBoard and make the API available in MicroPython. To patch the MicroPython firmware, also ports/stm32/Makefile and ports/stm32/modpyb.c need editing to build the files and include the CANHack class.

There is a CANHack toolkit demo video that goes into detail on how to use the toolkit, the CAN protocol hacks it includes, and demonstrates it attacking CAN frames in real hardware.

There is also a blog post describing the CANHack toolkit.

A protocol decoder can2 is included in src/can2. This can show CAN events from a logic analyzer trace and output to Wireshark. There is a blog post describing this.

About

A low-level CAN protocol hacking library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 53.3%
  • Python 45.5%
  • C++ 1.2%