1
0
Fork 0

Updated socket can instructions

This commit is contained in:
Luca Gambarotto 2024-06-15 10:09:23 +02:00
parent 7ac1fc18f9
commit 5a0d537fac
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,7 @@ sudo ip link set can0 up type can bitrate 500000
Virtual CAN: Virtual CAN:
```console ```console
sudo ip link add dev vcan0 type vcan sudo ip link set vcan0 up type vcan
``` ```
## View and record dump ## View and record dump
@ -36,5 +36,11 @@ Assume to replay a file recored on can0 on vcan0:
canplayer vcan0=can0 -I candump-2024-06-13_150626.log canplayer vcan0=can0 -I candump-2024-06-13_150626.log
``` ```
To replay an infinite number of times:
```console
canplayer vcan0=can0 -I candump-2024-06-13_150626.log -l -i
```
## References ## References
- [CAR Hacking 101](https://medium.com/@yogeshojha/car-hacking-101-practical-guide-to-exploiting-can-bus-using-instrument-cluster-simulator-part-ee998570758) - [CAR Hacking 101](https://medium.com/@yogeshojha/car-hacking-101-practical-guide-to-exploiting-can-bus-using-instrument-cluster-simulator-part-ee998570758)