CaringCaribou / caringcaribou

A friendly car security exploration tool for the CAN bus
GNU General Public License v3.0
751 stars 197 forks source link

Argument to automatically pad data length in send module #44

Closed kasperkarlsson closed 6 years ago

kasperkarlsson commented 6 years ago

Some ECUs require messages to be padded to full length (typically 8 bytes), even though the actual payload within the message may be shorter. When performing manual testing against such targets, the user needs to add a bunch of .00 data bytes after the payload to pad the message to the correct length.

It would be nice to have an optional argument which enables automatic padding, so that e.g. ./cc.py send message -pad 0x123#67.89 would automatically be padded to correspond to ./cc.py send message 0x123#67.89.00.00.00.00.00.00 in order to simplify such use cases.

kasperkarlsson commented 6 years ago

Implemented in https://github.com/CaringCaribou/caringcaribou/commit/c3da676646ec350e8eff8c8472c1f11e453a9755