Path: blob/master/documentation/modules/post/hardware/automotive/can_flood.md
33403 views
Introduction
CAN Flood is a post-exploitation module that floods a CAN interface for a number of rounds. Both the interface and the number of rounds are to be provided as inputs. An example list of frames also is part of the inputs, and sources the flooding at each round. The module therefore is general as it is parametric in the frame list.
Verification Steps
First, start up a virtual CAN bus:
sudo modprobe cansudo modprobe vcansudo ip link add dev vcan0 type vcansudo ip link set up vcan0
Then do the thing:
Start
msfconsoleuse auxiliary/server/local_hwbridgeset uripath trycanbusrunuse auxiliary/client/hwbridge/connectset targeturi trycanbusrunuse post/hardware/automotive/can_floodset canbus vcan0set session 1run
Options
CANBUS
Determines which CAN interface to use.
FRAMELIST
Path of the file that contains the list of frames. Default is "/usr/share/metasploit-framework/data/wordlists/can_flood_frames.txt".
ROUNDS
Number of executed rounds. Default is 200.
SESSION
The session to run this module on.
Scenarios
The user must know a list of frames that generate an effect on the car. This is because the module is general as it is parametric in the frame list. You can test the module by setting a virtual CAN interface and then execute the commands, thus obtaining the underlying output: