{"id":13740162,"url":"https://github.com/souravbaghz/CANghost","last_synced_at":"2025-05-08T19:35:49.890Z","repository":{"id":50191618,"uuid":"298827838","full_name":"souravbaghz/CANghost","owner":"souravbaghz","description":"Automated Script For Hacking Into CAN Bus - Car Hacking","archived":false,"fork":false,"pushed_at":"2021-09-10T18:01:00.000Z","size":454,"stargazers_count":117,"open_issues_count":0,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-04T04:06:16.318Z","etag":null,"topics":["car-hacking","hacking","icsim","replay"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/souravbaghz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-26T14:10:31.000Z","updated_at":"2024-07-31T22:10:51.000Z","dependencies_parsed_at":"2022-09-24T07:22:34.481Z","dependency_job_id":null,"html_url":"https://github.com/souravbaghz/CANghost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravbaghz%2FCANghost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravbaghz%2FCANghost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravbaghz%2FCANghost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravbaghz%2FCANghost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souravbaghz","download_url":"https://codeload.github.com/souravbaghz/CANghost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224758292,"owners_count":17364978,"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":["car-hacking","hacking","icsim","replay"],"created_at":"2024-08-03T04:00:43.714Z","updated_at":"2024-11-15T09:31:08.481Z","avatar_url":"https://github.com/souravbaghz.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/souravbaghz"],"categories":["Hacking and Reverse Engineering tools"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg  width=\"180\" src=\"ghost.png\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e \u003cb\u003eCANghost\u003c/b\u003e\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003e\u003cb\u003eAn Automated Tool For Hacking Into CAN Bus - Car Hacking\u003c/b\u003e\u003c/h3\u003e \n\n### Requirements:\n\n* Any Linux Distributions (Ubuntu is Recommended)\n* can-utils\n* [ICSim - Car Simulation](https://github.com/souravbaghz/ICSim)\n***\n\n#### can-utils is a Linux specific set of utilities that enables Linux to communicate with the CAN network on the vehicle. The canutils consist of 5 main tools that we use very frequently:\n- cansniffer for sniffing the packets\n- cansend for writing a packet\n candump dump all received packets\n- canplayer to replay CAN packets\n- cangen to generate random CAN packets\n + **can-utils can be installed via apt-get**\n ```\n sudo apt-get install can-utils -y\n ```\n ***\n \n + **Installation of CANghost :**\n ```\n git clone https://github.com/souravbaghz/CANghost\n ```\n + **Usage:**\n ```\n cd CANghost/\n bash canghost.sh \u003cinterface\u003e \u003clogfilename\u003e\n Example- bash canghost.sh vcan0 demolog\n ```\n ### Note: First Install \u0026 Run [ICSim](https://github.com/SouravSec/ICSim) then run canghost.sh\n \n \u003cp align=\"center\"\u003e\n  \u003cimg  width=\"900\" src=\"Screenshot.png\" /\u003e\n\u003c/p\u003e\n\n ***\n \u003ch3 align=\"center\"\u003e\u003cb\u003eA Quick Tutorial\u003c/b\u003e\u003c/h3\u003e \n \n + **Preparing the Virtual CAN Network:**\n ```\n ubuntu@sourav:~/ICSim$./setup_vcan.sh\n ```\n \n  **Running the Simulator:**\n * Running the dashboard\n```\n ubuntu@sourav:~/ICSim$./icsim vcan0\n```\n \n * Control Panel can be started by\n ```\n  ubuntu@sourav:~/ICSim$./controls vcan0\n ```\n \n + **Now Start the CANghost:**\n ```\n ubuntu@sourav:~/CANghost$./canghost.sh vcan0 mylog\n ```\n #### Now choose the option you want and play with your Virtual Car.\n \n ***[Click Here](https://youtu.be/HLWc_b1vHWg) to Watch Tutorials on Youtube***\n \n ***\n \n ### If You Do Love My Works Then You Can Buy Me A Coffee Now.\n \u003ca href=\"https://www.buymeacoffee.com/souravbaghz\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n \n ***\n ## About CANghost:\n I made this tool to automate the process and save my time while hacking or practicing. The script first dump all the CAN packets in **Capture** option and Replay that packets(logfile) into Car in **Replay** option. Don't play with Real car, I always recommend to use on Simulator. I made this tool for learning \u0026 personal purpose, If you want to do it manually then you can check code source to understand how it works... \n \n ***Thanks to [@zombieCraig](https://github.com/zombieCraig) for ICSim***\n \n \n [![!#/bin/bash](https://img.shields.io/badge/-%23!%2Fbin%2Fbash-1f425f.svg?style=for-the-badge\u0026logo=image%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGE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661odVp3DZtkc7AnYR33RRC708PrVi1larW7XwZIjLnd7R6SgSqWSNjU1B3F72pz5TZbXmX5vV81Yb7Lg7XT%2FUXriu8XLVqw6c6XqWnBKiiYU%2BMt3wWF7u7i91XlSEITwSAZ%2FCzAAHsJVbwXYFFEAAAAASUVORK5CYII%3D)](https://www.gnu.org/software/bash/)\n \n \u003cbr\u003e\n\n### 🤝 Connect with me\n[![Instagram: souravbaghz](https://img.shields.io/badge/instagram-%23E4405F.svg?\u0026style=for-the-badge\u0026logo=instagram\u0026logoColor=white)](https://www.instagram.com/souravbaghz)\n[![GitHub souravbaghz](https://img.shields.io/badge/github-%23000000.svg?\u0026style=for-the-badge\u0026logo=github)](https://github.com/souravbaghz)\n[![Twitter souravbaghz](https://img.shields.io/badge/twitter-%231DA1F2.svg?\u0026style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/souravbaghz)\n[![Medium souravbaghz](https://img.shields.io/badge/medium-%2312100E.svg?\u0026style=for-the-badge\u0026logo=medium\u0026logoColor=white)](https://medium.com/@souravbaghz)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouravbaghz%2FCANghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouravbaghz%2FCANghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouravbaghz%2FCANghost/lists"}