Controller Area Network (or CAN Bus) is a robust hardware communication protocol primarily used in vehicles. Other noted uses are in Industrial automation, Building automation, elevators etc. CAN hacking has really caught up due to advancements in automotive technology or in business terms introduction of IoT in automotive. Hence, it makes sense to have test case for security researchers to be able to analyse CAN enabled devices.
It uses socketscan as of now. You need to have a physical CAN interface on your system which is connected to the CANBus or for testing you can use a simulator and socketscan as a virtual can interface.
This test reads and shows the data on the CANBus.
ef> run can.generic.readcan -h
This test writes data on the CANBus.
ef> run can.generic.writecan -h