Skip to content

hexsecs/cybertruck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the slides and companion material for the CyberTruck CLI Class.

CAN Tools

Tool Comparison

Tool: SocketCAN

Getting the USB2CAN-FD 2x up

sudo ip link set can0 down
sudo ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on
sudo ip link set can1 down
sudo ip link set can1 up type can bitrate 500000 dbitrate 2000000 fd on

Bringup for USB2Can

sudo ip link set can0 down
sudo ip link set can0 up type can bitrate 500000

Send UDS Tester Presents

Example Command

cangen can0 -I 18DA00F9 -D 023E00 -L 8 -e -g 3000

Explanation:

  • can0: The CAN interface (replace with your actual interface name).
  • -I 18DA00F9: Sets the arbitration ID to 0x18DA00F9 (ID for diagnostics).
  • -D 18DAF900: Sets the data field to 0x3E00 (Tester Present with positive response).
  • -L 8: Sets the data length to 8 bytes.
  • -e: Allows extended ID frames.
  • -g 3000: Sets the gap between messages to 3000 milliseconds (3 seconds).

Command to Suppress Positive Response

If you want to suppress the positive response, you can use 0x3E80 instead:

cangen can0 -I 18DA00F9 -D 023E80 -L 8 -e -g 3000

Tool: PythonCAN

Tool: Caring Caribou

Link: https://github.com/CaringCaribou/caringcaribou

Using Caring Caribou to discover UDS devices on the CAN network.

caringcaribou -i <INTERFACE> uds discovery -min 0x18daf100 -max 0x18daf1ff

# INTERFACE could be something like vcan0 or can0, etc.

To do an automated UDS discovery you can try something like

caringcaribou -i <INTERFACE> uds auto -min 0x18daf100 -max 0x18daf1ff

Getting UDS seeds

caringcaribou uds security_seed 0x03 0x01 0x18da00f1 0x18daf100 -d 0.5 -r1

Full docs: https://github.com/CaringCaribou/caringcaribou/blob/master/documentation/uds.md

Tool: CANCat

Tool: Scapy

Tool: TruckDevil

Truck Devil Tutorial

Tool: SavvyCAN

Diagnostics - Unified Diagnostic Services (UDS)

Automated Threat Evaluation of Autmotive Diagnostic Protocols contains a nice table mapping threats to UDS services.

Additional Resources

Research

Reverse Engineering

About

CyberTruck Tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •