Skip to content
Luca edited this page Mar 19, 2021 · 1 revision

The MITM Tab

In this tab, rules for the CANBadgers Man-in-the-middle mode can be configured.

Creating The Rules

Use the "Add" and "Remove" buttons to add or remove rules.

Modify

Use the fields in the bottom to modify the selected rule.

The Action dictates what should happen with a frame that matches a rule, while the Condition defines how the rule is matched agains incoming CAN-frames.

The Condition Value is applied with the selected Condition, while the Condition Mask dictates which payload bytes have to be taken into consideration (a 1 will apply the rule to the payload byte, a 0 won't). Action Argument and Mask work the same way.

Saving And Loading Rules

Saving

The current rules can be saved to a .txt file using the highlighted button. This allows for storing and swapping of multiple rulesets.

Applying The Rules

File

There are two different ways of getting your rules to run on the CANBadger. Providing a valid filename and pressing "Upload Rules" will store your rules on the CANBadgers SD (specifically in the MITM directory). This allows you to store multiple rulefiles on the CANBadger. They can also be manually uploaded using the SD Tab. Providing a valid filename existing in this directory and starting "MITM from File" will start the CANBadgers Man-in-the-middle mode with rules from the given file.

The "Start MITM" button on the bottom on the other hand will directly start the MITM mode on the CANBadger with the current rules, without storing a rulefile. This allows usage of the Man-in-the-middle mode without a SD card on the CANBadger.

Clone this wiki locally