{"id":15007495,"url":"https://github.com/duraki/virtualcar","last_synced_at":"2025-03-30T07:31:19.300Z","repository":{"id":80669661,"uuid":"54796462","full_name":"duraki/virtualcar","owner":"duraki","description":"A virtual car. Because you wouldn't download a car, would you?","archived":false,"fork":false,"pushed_at":"2020-09-07T07:34:08.000Z","size":144,"stargazers_count":143,"open_issues_count":1,"forks_count":40,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-05-22T07:52:58.583Z","etag":null,"topics":["automobiles","canbus","car","ecu","linux-kernel"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duraki.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-26T19:44:50.000Z","updated_at":"2024-04-18T10:22:14.000Z","dependencies_parsed_at":"2023-09-18T06:15:18.745Z","dependency_job_id":null,"html_url":"https://github.com/duraki/virtualcar","commit_stats":null,"previous_names":["dn5/vircar"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duraki%2Fvirtualcar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duraki%2Fvirtualcar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duraki%2Fvirtualcar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duraki%2Fvirtualcar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duraki","download_url":"https://codeload.github.com/duraki/virtualcar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246290555,"owners_count":20753723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automobiles","canbus","car","ecu","linux-kernel"],"created_at":"2024-09-24T19:10:20.478Z","updated_at":"2025-03-30T07:31:18.758Z","avatar_url":"https://github.com/duraki.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"provision/virtualcar-logo.png\"/\u003e\u003c/p\u003e\n\n*Notice*: This project is original version of **vircar**. The change of name occured on \n12/04/17.\n\n## virtualcar \n**virtualcar** (**vir**-tual-**car**) is a CAN-based wrapper written in C, that acts as \na virtual car. The core is listening to the virtual CAN device and parse, analyze and \ntransmit signal from nodes to nodes, or in other way manipulate with request.\n  \nThis software is licensed under GNU General Public V3 license. Please, keep the software \nopen source and contribute to the project if you want.\n  \nThe project is developed on top of SocketCAN module and therefore requires Linux based \nsystem. I am currently rewriting the SocketCAN module for MacOS and you may fork the \nrepository from [duraki/socketcanx](https://github.com/duraki/socketcanx).\n  \n## a car? really?\nYes! A fully, functional car.  \nWell, not really no. It does represent a car/vehicle but in a limited spirit and form. I was \nwriting a post about [cyber-attacks](https://duraki.github.io/posts/o/20160326-napadi-na-auto-sistem-1.html) \non a vehicle systems and [another one](https://duraki.github.io/posts/o/20160327-cyber-attacks-on-vehicles-2.html) \nthat show **virtualcar** in action, and didn't have necessary (hardware) equipment to test \nthe techniques, so I wrote this to let myself experiment a bit.   \n  \nSo a few months passed, and I talked about this little code on a BalCCon 2k16 where I \noffered a small introduction to these cyber-attacks, plus you could buy me a drink and \nI'd tell you some secrets. So I renamed this project and I'll try to develop some nodes \nas per request in Issues board. Meanwhile, I'd appreciate pull requests that make sense.\n   \n## functionality\nCurrently, **virtualcar** offers several different controllers or nodes that understand a \nparticular signal and either accept or reject the CAN frame. I'm implementing both data \nframes and RTR. The RTR has some basic functions like asking for value of an instrument.\n  \n**virtualcar** nodes:\n* `NODE_SIGNAL_DOOR_MODE` - Door actions\n* `NODE_SIGNAL_EHPS_MODE` - EHPS actions\n  \n**TODO** nodes (*@see* `nodes.h`):  \n* `NODE_SIGNAL_INST_MODE`\n* `NODE_SIGNAL_ENGN_MODE`\n* `NODE_SIGNAL_MABS_MODE` \n* `NODE_SIGNAL_MESP_MODE`\n* `NODE_SIGNAL_AIRB_MODE`\n* `NODE_SIGNAL_NAVG_MODE` \n* `NODE_SIGNAL_TRNC_MODE`\n  \n\n## virtualcar-web\nI'm sorry, the virtualcar-web is being developed and there is some kind of version floating \nas a private repository and a submodule in this repo. Anyway, virtualcar-web should be \nused as web-interface to manipulate with virtualcar daemon. It's written in Rails and \nsupport some interesting things but more about that inside [virtualcar-web](https://github.com/duraki/virtualcar-web) \nrepository and README file.\n\n```\n$ git submodule init\nSubmodule 'virtualcar-web' (...) registered for path 'virtualcar-web'\n\n$ git submodule update\nCloning into 'virtualcar-web'...\n...\n```\n  \nTo update or fetch the `virtualcar-web` project:\n  \n```\n$ cd virtualcar/virtualcar-web\n$ git fetch\n...\n\n$ git merge origin/master\n``` \n  \n## requirements\nI love to write pure native scripts. The only requirement for now is that you are running \nunder **GNU Linux** and have **can-utils** installed on your system.  \n\n* gcc\n* linux kernel (can.h)\n* can-utils\n  \n## compile \u0026 running\n\nTo clone the repo and compile it from source: \n\n\t$ git clone https://github.com/duraki/virtualcar.git\n\t$ cd virtualcar \n\t$ make\n\t$ chmod 777 virtualcar \n\nTo run **virtualcar** use sudo (entirely for CAN bus device linking)\t\n\n\t$ sudo ./virtualcar\n\tWelcome to vir(tual) car.\n\t~\n\t=========================================\n\thttps://github.com/duraki/virtualcar\n\n\t# waiting for operation\n\nTo **exit** vircar use Ctrl+C.  \nTo **kill** a car and remove protocol use:\n\t\n\t$ ./virtualcar k\n\tka-boom, pfw, aaa, ts\n\t*car exploded*\n\n## outro\nIf you are interested in car hacking, write me on [twitter](https://twitter.com/0xduraki). \nAny additional options and CAN nodes should be accepted if they follow RTR or Accept/Desctruct\noperation. Please, keep the code and project with clean lines of code. \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduraki%2Fvirtualcar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduraki%2Fvirtualcar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduraki%2Fvirtualcar/lists"}