• Stars
    star
    145
  • Rank 254,144 (Top 6 %)
  • Language
    C
  • Created over 8 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A virtual car. Because you wouldn't download a car, would you?

Notice: This project is original version of vircar. The change of name occured on 12/04/17.

virtualcar

virtualcar (vir-tual-car) is a CAN-based wrapper written in C, that acts as a virtual car. The core is listening to the virtual CAN device and parse, analyze and transmit signal from nodes to nodes, or in other way manipulate with request.

This software is licensed under GNU General Public V3 license. Please, keep the software open source and contribute to the project if you want.

The project is developed on top of SocketCAN module and therefore requires Linux based system. I am currently rewriting the SocketCAN module for MacOS and you may fork the repository from duraki/socketcanx.

a car? really?

Yes! A fully, functional car.
Well, not really no. It does represent a car/vehicle but in a limited spirit and form. I was writing a post about cyber-attacks on a vehicle systems and another one that show virtualcar in action, and didn't have necessary (hardware) equipment to test the techniques, so I wrote this to let myself experiment a bit.

So a few months passed, and I talked about this little code on a BalCCon 2k16 where I offered a small introduction to these cyber-attacks, plus you could buy me a drink and I'd tell you some secrets. So I renamed this project and I'll try to develop some nodes as per request in Issues board. Meanwhile, I'd appreciate pull requests that make sense.

functionality

Currently, virtualcar offers several different controllers or nodes that understand a particular signal and either accept or reject the CAN frame. I'm implementing both data frames and RTR. The RTR has some basic functions like asking for value of an instrument.

virtualcar nodes:

  • NODE_SIGNAL_DOOR_MODE - Door actions
  • NODE_SIGNAL_EHPS_MODE - EHPS actions

TODO nodes (@see nodes.h):

  • NODE_SIGNAL_INST_MODE
  • NODE_SIGNAL_ENGN_MODE
  • NODE_SIGNAL_MABS_MODE
  • NODE_SIGNAL_MESP_MODE
  • NODE_SIGNAL_AIRB_MODE
  • NODE_SIGNAL_NAVG_MODE
  • NODE_SIGNAL_TRNC_MODE

virtualcar-web

I'm sorry, the virtualcar-web is being developed and there is some kind of version floating as a private repository and a submodule in this repo. Anyway, virtualcar-web should be used as web-interface to manipulate with virtualcar daemon. It's written in Rails and support some interesting things but more about that inside virtualcar-web repository and README file.

$ git submodule init
Submodule 'virtualcar-web' (...) registered for path 'virtualcar-web'

$ git submodule update
Cloning into 'virtualcar-web'...
...

To update or fetch the virtualcar-web project:

$ cd virtualcar/virtualcar-web
$ git fetch
...

$ git merge origin/master

requirements

I love to write pure native scripts. The only requirement for now is that you are running under GNU Linux and have can-utils installed on your system.

  • gcc
  • linux kernel (can.h)
  • can-utils

compile & running

To clone the repo and compile it from source:

$ git clone https://github.com/duraki/virtualcar.git
$ cd virtualcar 
$ make
$ chmod 777 virtualcar 

To run virtualcar use sudo (entirely for CAN bus device linking)

$ sudo ./virtualcar
Welcome to vir(tual) car.
~
=========================================
https://github.com/duraki/virtualcar

# waiting for operation

To exit vircar use Ctrl+C.
To kill a car and remove protocol use:

$ ./virtualcar k
ka-boom, pfw, aaa, ts
*car exploded*

outro

If you are interested in car hacking, write me on twitter. Any additional options and CAN nodes should be accepted if they follow RTR or Accept/Desctruct operation. Please, keep the code and project with clean lines of code.

More Repositories

1

SketchCrapp

SketchCrapp - Crack your Sketch.app in seconds :) Supports MacOS Big Sur.
Shell
434
star
2

charles-keygen

An open-source Charles Proxy keygen via RC5 cracking
Java
85
star
3

vicilog

Vicilog - Open-source release notes generator. - PROJECT DEPRECATED; MOVED TO DEVIST - https://devist.io
Ruby
48
star
4

socketcanx

SocketCAN driver rewritten from Linux to OS X
C
24
star
5

devist

Changelog for developers
Ruby
22
star
6

jeep

Hacking your car like in movies
C
13
star
7

sketchspoof

Reverse engineering and cracking MacOS SketchApp
C++
12
star
8

macos-reveng

A personal public repository to keep with MacOS//XNU//Darwin hacking, notably related to reverse engineering. 'Cause bookmark can't keep it anymore.
7
star
9

duraki.github.io

My simple blog + static site generator called 'art' and written in Ruby. - https://duraki.github.io
HTML
6
star
10

pyDLAPK

Python script to download android applications from Google play to PC / Computer
Python
4
star
11

s7circular

Android-based anonymous call pool DDoS attack
Java
3
star
12

socialmail

Scan social accounts via email address
Crystal
3
star
13

bmw_e34_cluster_test_bench-pinout

A BMW E34 Low/High cluster test bench and port pinouts
3
star
14

vibint

A Viber OSINT toolkit
2
star
15

blanko

Minimal new tab page for your Google Chrome.
HTML
2
star
16

phpgex

phpgex is beautiful regex pattern library written in PHP.
PHP
2
star
17

getjarpy

A simple Python script to download files from www.getjar.mobi
Python
1
star
18

tuxtheme

Theme for my very own blog. - https://duraki.github.io
HTML
1
star
19

change-resolution

Natively change screen resolution with Delphi at runtime
1
star
20

dotfiles.old

.files
Perl
1
star
21

novostiba

Simple news parser so I don't have to read various sources
PHP
1
star
22

blogez

A stupid simple PHP static blog generator.
PHP
1
star
23

notes

Personal notes, tricks and small write-ups.
HTML
1
star
24

decipiat

decipiat [lat. dΔ“cipiat], Phishing-as-a-Service
Go
1
star