Hacking my Roommates Car - Linux CAN Bus sniffing

Поділитися
Вставка
  • Опубліковано 10 бер 2023
  • In this video, I take advantage of the OBD2 port on my roommate's Honda Accord to sniff some CAN packets. The CAN bus is used by all electronic control units (ECUs) in a car to send and receive data from other ECUs.
    In previous videos, I explain how CAN works, and I show how to set up a virtual machine on your laptop to set up a CAN interface in Linux. I also showed where you can get a CAN to USB converter module.
    [OBD2 port cable]
    www.amazon.com/dp/B081N7G2BR?...
    [CAN to USB Converter]
    www.amazon.com/dp/B07P9JGXXB?...
  • Наука та технологія

КОМЕНТАРІ • 46

  • @MiniBrothas
    @MiniBrothas 7 місяців тому +4

    This is great! Exactly what I need to be able to start a car hacking project.

  • @user-rk9zx3lt8k
    @user-rk9zx3lt8k 9 місяців тому +1

    you r one of best engineer I have seen on youtube, please keep your video, right now I am learning can knlowdege from you to communicate all motors in my robot arm.

  • @Icebeam47
    @Icebeam47 7 місяців тому +1

    I've been very interested in reverse engineering canbus, its totally unencrypted and wide open. I have coming soon a wifi canbus server that i can hook up to a vehicle. I'd like to do something like sort and log data in a database somewhere as it comes in from the vehicle.
    I wondered What would happen if i just changed values around and sent that to the vehicle.

  • @hi-ccowboy7983
    @hi-ccowboy7983 3 місяці тому

    Do Teslas have the equivalent of an ODB-II port? I know there are videos that show how to extract the data, but it required a dongle and some effort to install it. I'm trying to see how they're able to leave it off if it's a US Federal requirement.

  • @klauszinser
    @klauszinser Рік тому +3

    As a side issue, the Software Wireshark is also interesting.

  • @TheTruth-fb4be
    @TheTruth-fb4be 13 днів тому

    To reprogram a keyfob, do you need the can bus to be communicating?

  • @Chris-xv7zw
    @Chris-xv7zw 8 місяців тому

    When I do cansniffer can0 -c, I just keep getting can messages scrolling. It doesn't stick to the 27 rows (slots?) like you have. All the IDs just keep scrolling so fast, I can't even tell which IDs I want to focus on for changes to the messages/payload. I also don't see the column headers like "ID" or "DATA". I feel like it's my terminal settings? Any help fixing this would be much appreciated!

    • @kb9mtd-aaronwebb
      @kb9mtd-aaronwebb 7 місяців тому

      I think this is because of your terminal. When you open terminal go up top and select terminal and either reset or select one of the choices in the drop down. You can also open a new terminal then push and hold the windows key then an arrow key. I usually use windows right then open another terminal and hit windows left. They should take up half of your whole screen. If you try to resize it'll get wonky again. Just select q to quit cansniffer then exit to close the terminal. Then reopen. Hope this helps.

  • @MS-qn7rz
    @MS-qn7rz 4 місяці тому

    I tried doing the exact same process that u did. For some reason, I could not find can0 when I give the ‘ip link ls’ command. I did this after connecting to the obd port of my car. Can you tell me what is that I m doing wrong or is there any pre-requisite that I need I m missing out? It would be a HUGE favor. Thanks

  • @adiityamishra
    @adiityamishra 2 місяці тому

    Is it possible to decode can data if we just have the can frame id? If yes can you please guide.
    Cool video btw

  • @N0sfuratu
    @N0sfuratu 9 місяців тому +3

    Did you try to send CAN to trigger the wipers / lights? I'd be curious if the system allowed sending messages to those zones/domains.

    • @EV_engineer
      @EV_engineer  8 місяців тому +2

      I did not, I am also curious...

    • @jahwni
      @jahwni 5 місяців тому +1

      Yeah that's what I was hoping to see too, whether you can send or edit those live values? Say to turn the lights on or whatever, now that you know what ones are changing and to what values.

  • @morejelloplease
    @morejelloplease 6 місяців тому +2

    Here's a new challenge... most vehicles 2020+ have what they call fake engine sounds, even non-bose or "premium" audio systems in cars have fake engine enhancing sounds piped into the audio amplifier. mazda cx5 says they are sent from the head unit tp the bose amplifier via CAN, there's 2 can hi/low wires going into the amp. there is also a pulse width modulation control wire and an audiopilot mic +/- wire. i'm thinking it's not as simple as unplugging the can wires int othe amp, because maybe the amp won't turn on and or function properly. there is a catch, if any of the doors are not closed, the fake audio sound won't get pumped thru the speakers. maybe there's a workaround? currently there is no way to disable to fake engine sound sent to the speakers via mazda software, or a press-and-hold button sequence in the cabin. * I believe PCM stands for powertrain control module. this amp takes signals from the ignition, engine tachometer, and transmission so it knows what gear it's in to send the proper audio track to the speakers. what i'm hearing is a slight delay, almost like the fake sound is a few Hz behind the actual engine frequency at any given RPM and it gives it an unpleasant sound as if something is vibrating or off.

  • @DunOpondo
    @DunOpondo Рік тому +3

    This is intriguing!
    Does this mean I can just use Linux to read obd2 codes instead of buying the code readers? If so, do you know how, cause that'd be really helpful 😁

    • @EV_engineer
      @EV_engineer  Рік тому +5

      I was wondering the same thing. If it’s possible, it would make a cool video!

    • @N0sfuratu
      @N0sfuratu 9 місяців тому +1

      Yes and no. You would need to send OBD PID's over CAN to have them respond with the diagnostic codes.
      There are some legislated codes (ones that are generic that all OEM's use), but there will be some custom ones that only a certain OEM will use. If they are custom, you will get a number, but not necessarily what the code means.

  • @naveens1379
    @naveens1379 2 місяці тому

    for some reason, when i use cansniffer -c can0 command, i don't see the can messages being dumped. is there something that i'm doing wrong? perhaps wrong bitrate or could you give me any other suggestions to troubleshoot my issue? Thanks a lot in advance

  • @technics6215
    @technics6215 7 місяців тому +12

    Reading data from unprotected diagnostic interface is not hacking ;) I think it would be hacking if you were able to open the doors or start the engine without key.

    • @snazzfab
      @snazzfab 6 місяців тому

      😭

    • @arcowo
      @arcowo 5 місяців тому

      hacker: n.
      [originally, someone who makes furniture with an axe]
      1. A person who enjoys exploring the details of programmable systems and how to stretch their capabilities, as opposed to most users, who prefer to learn only the minimum necessary. RFC1392, the Internet Users' Glossary, usefully amplifies this as: A person who delights in having an intimate understanding of the internal workings of a system, computers and computer networks in particular.
      2. One who programs enthusiastically (even obsessively) or who enjoys programming rather than just theorizing about programming.
      3. A person capable of appreciating hack value.
      4. A person who is good at programming quickly.
      5. An expert at a particular program, or one who frequently does work using it or on it; as in ‘a Unix hacker’. (Definitions 1 through 5 are correlated, and people who fit them congregate.)
      6. An expert or enthusiast of any kind. One might be an astronomy hacker, for example.
      7. One who enjoys the intellectual challenge of creatively overcoming or circumventing limitations.
      8. [deprecated] A malicious meddler who tries to discover sensitive information by poking around. Hence password hacker, network hacker. The correct term for this sense is cracker.
      The term ‘hacker’ also tends to connote membership in the global community defined by the net. It also implies that the person described is seen to subscribe to some version of the hacker ethic.
      It is better to be described as a hacker by others than to describe oneself that way. Hackers consider themselves something of an elite (a meritocracy based on ability), though one to which new members are gladly welcome. There is thus a certain ego satisfaction to be had in identifying yourself as a hacker (but if you claim to be one and are not, you'll quickly be labeled bogus). See also geek, wannabee.
      This term seems to have been first adopted as a badge in the 1960s by the hacker culture surrounding TMRC and the MIT AI Lab. We have a report that it was used in a sense close to this entry's by teenage radio hams and electronics tinkerers in the mid-1950s.
      From catb.org

    • @AmineOnline
      @AmineOnline Місяць тому +1

      You are wrong sniffing is a real thing

  • @farhadkamali2321
    @farhadkamali2321 Місяць тому +1

    HI
    I did all the steps but I don't get any information from obd2 port.
    The car is Hyundai Azera 2019. please guide me.
    Thank you.

    • @1996_Dude
      @1996_Dude Місяць тому +1

      Hello
      newer hyundai models have "CAN bus gateway" and it blocks the data from OBD port
      you need to directly splice wires to the required module that you want to read
      also can i know what are you tring to do ? im curious because i have 2016 azera

  • @williamrawlins9981
    @williamrawlins9981 Рік тому

    So i have exactly the same set up, innomaker usb2can with termination resistor. When i candump into terminal i get nothing. The leds on the immo are all lit up red. I am getting data on the bus though as if i plug in my can interface that came with my standalone ecu the recieve led goes mad. I've checked continuity and all good to the pins.

  • @u.w.6001
    @u.w.6001 6 місяців тому +2

    Hacking ?!? you simply show the CAN Frames on the BUS - hacking is different...

  • @111chicane
    @111chicane 11 місяців тому +1

    Are you interested in writing code for PIC or Atmel micro, that will sniff the CAN and give an output only when the car is in Ignition? Its a paid gig, of course.

    • @EV_engineer
      @EV_engineer  11 місяців тому

      Hi, I’m not looking for more work right now. Thanks for the offer!

    • @davidedgar7338
      @davidedgar7338 11 місяців тому +1

      Oh. Dude who put ev motor in Rx8 has done this already. If you mean you want ghost can from missing sensors or something similar.

  • @redcloud4741
    @redcloud4741 2 місяці тому

    thats so sick

  • @VivoJefindo-id4cj
    @VivoJefindo-id4cj Місяць тому

    I will try this metode for kobelco excavator.. I hope succes

  • @joshuasalcedo3630
    @joshuasalcedo3630 10 місяців тому

    How is a hacked vehicle repaired? Who would fix it or where would i start. Ty for any feedback

    • @ColeUmland13
      @ColeUmland13 10 місяців тому

      just unplug the OBD cable i guess

    • @EV_engineer
      @EV_engineer  9 місяців тому

      In this particular case, the vehicle is fine. If you suspect some ECUs in a car are infected, the manufacturer would probably need to reflash the firmware and wipe the flash memory.

  • @yuvanthik3254
    @yuvanthik3254 Рік тому +1

    can we able to retransmit the can messages to the car itself using cansend command..

    • @EV_engineer
      @EV_engineer  Рік тому

      That’s a good question 🧐, my roommate was pretty explicit though when he gave me read-only permission to his car

    • @yuvanthik3254
      @yuvanthik3254 Рік тому +1

      @@EV_engineer Can we transmit the can messages using the hardware you used in the video that's can2usb.

    • @EV_engineer
      @EV_engineer  Рік тому +1

      @@yuvanthik3254 Yes

  • @maalonszuman491
    @maalonszuman491 Рік тому

    Great video is it possible to drive the car ?

    • @EV_engineer
      @EV_engineer  Рік тому

      I assume you mean drive the car and log the CAN signals? Yea that’s doable

  • @mohammedshine2372
    @mohammedshine2372 Рік тому

    Can you share the links to purchase these devices

    • @EV_engineer
      @EV_engineer  Рік тому

      Sure! Updated the description

    • @kb9mtd-aaronwebb
      @kb9mtd-aaronwebb 7 місяців тому

      ​@@EV_engineerhopefully you put in affiliate links! I just purchased via your links! Thanks for the video!

  • @thghho
    @thghho 6 місяців тому

    Hi,
    Great job, will you be interested to complete a small project for USD6,000?

  • @rafaeltavares6928
    @rafaeltavares6928 6 місяців тому +1

    Dude.
    Just because you can post something online, it's doesn't mean you should.