Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/post/hardware/automotive/can_flood.md
Views: 11788
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 can
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0
Then do the thing:
Start
msfconsole
use auxiliary/server/local_hwbridge
set uripath trycanbus
run
use auxiliary/client/hwbridge/connect
set targeturi trycanbus
run
use post/hardware/automotive/can_flood
set canbus vcan0
set session 1
run
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: