Important Python Tools :
1.Can-utils: It is a framework, communicate with CAN protocol
Step:1----Open--->Virtual Car simulator :
Step:2----Start--->Virtual CAR simulator and Controller:
Virtual CAR simulator :
Controller:
Step:3----Start--->candump command:(To monitor the all CAN messages and signals)
Caringcaribou: It is an security exploration tool on CAN network. Its used to find what services are running and vulnerabilities exits.
Step:1----pip install python-can
Step:2----git clone for caringcaribou module using below method:
Configure:
Python-Can uses a configuration file ~/.canrc to specify a CAN interface. The contents of this file might e.g. be:
[default]
interface = socketcan
channel = can0
Step3---->Run the caringcaribou:
Before starting Caringcaribou,we must start VCAN0:
Step1:
4.Getting Unique ID in CAN network(listener module):
example:
Find which ID mapped to which Function:
1.ID for Door Lock and Unlock
2.ID for indicator.
3.ID for Acc
Fuzzer:
Fuzzer random is used to send random value in particular CAN-ID
ex:
$ ./cc.py fuzzer random -id 0x6c6(Door module)
DOOR lock/unlock:
$ ./cc.py fuzzer random -id 0x403(indicator)
Can data is 8 byte. above command( $ ./cc.py fuzzer brute 0x6c6 ..).Here .. means it checks first byte of CAN data.
command---->$ ./cc.py fuzzer brute 0x6c6 00 ..
Save the data in text file:
5.3-Fuzzer identify:
Command--->./cc.py fuzzer identify -d 2 test_door.txt
Here d---delay
2--->2 seconds
test_door.txt--->previously we store the log in that file
Send the door id with data in CAN:
Indicator data(0x403):
Check the file:
No comments:
Post a Comment