RedTeam
Others
Car-Hacking
Obdii

To gain access to a vehicle's internal network via the OBDII port, follow these steps:

  1. Connect to the OBDII Adapter

    • Use either Wi-Fi or Bluetooth to connect your device to the OBDII interface.
    • If using Bluetooth, start the Bluetooth service:
      sudo /etc/init.d/bluetooth start
  2. Establish Connection

    • Connect to the OBDII device.
  3. Identify the Network

    • Find the name of the network associated with the OBDII adapter (e.g., vcan0).
  4. Install CAN Utilities

    • Install the necessary tools to interact with the car's CAN bus:
      sudo apt install can-utils -y
  5. Monitor the Network Traffic

    • Use the following command to sniff CAN bus traffic and identify commands:
      cansniffer -c vcan0
  6. Capture CAN Commands

    • Log the incoming CAN commands for further analysis:
      candump -c -l vcan0
  7. Analyze the Commands

    • Review the captured data:
      more NAME_OF_THE_FILE
    • Filter specific commands by command number:
      more NAME_OF_THE_FILE | grep COMMAND_NUMBER
  8. Replay Commands

    • Send a specific command back to the car’s network to reproduce actions:
      cansend vcan0 COMMAND_NUMBER#OTHER_NUMBERS
  9. Stop Bluetooth (If Used)

    • When done, stop the Bluetooth service if it was started:
      sudo /etc/init.d/bluetooth stop

This setup allows you to interact with the car's CAN bus via the OBDII interface for testing, diagnostics, or research purposes.