https://github.com/souravbaghz/CANghost
Automated Script For Hacking Into CAN Bus - Car Hacking
https://github.com/souravbaghz/CANghost
car-hacking hacking icsim replay
Last synced: 5 months ago
JSON representation
Automated Script For Hacking Into CAN Bus - Car Hacking
- Host: GitHub
- URL: https://github.com/souravbaghz/CANghost
- Owner: souravbaghz
- Created: 2020-09-26T14:10:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T18:01:00.000Z (over 3 years ago)
- Last Synced: 2024-08-04T04:06:16.318Z (9 months ago)
- Topics: car-hacking, hacking, icsim, replay
- Language: Shell
- Homepage:
- Size: 443 KB
- Stars: 117
- Watchers: 6
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-canbus - CANghost - Automated Script For Hacking Into CAN Bus. (Hacking and Reverse Engineering tools)
README
![]()
CANghost
An Automated Tool For Hacking Into CAN Bus - Car Hacking
### Requirements:
* Any Linux Distributions (Ubuntu is Recommended)
* can-utils
* [ICSim - Car Simulation](https://github.com/souravbaghz/ICSim)
***#### 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:
- cansniffer for sniffing the packets
- cansend for writing a packet
candump dump all received packets
- canplayer to replay CAN packets
- cangen to generate random CAN packets
+ **can-utils can be installed via apt-get**
```
sudo apt-get install can-utils -y
```
***
+ **Installation of CANghost :**
```
git clone https://github.com/souravbaghz/CANghost
```
+ **Usage:**
```
cd CANghost/
bash canghost.sh
Example- bash canghost.sh vcan0 demolog
```
### Note: First Install & Run [ICSim](https://github.com/SouravSec/ICSim) then run canghost.sh
![]()
***
A Quick Tutorial
+ **Preparing the Virtual CAN Network:**
```
ubuntu@sourav:~/ICSim$./setup_vcan.sh
```
**Running the Simulator:**
* Running the dashboard
```
ubuntu@sourav:~/ICSim$./icsim vcan0
```
* Control Panel can be started by
```
ubuntu@sourav:~/ICSim$./controls vcan0
```
+ **Now Start the CANghost:**
```
ubuntu@sourav:~/CANghost$./canghost.sh vcan0 mylog
```
#### Now choose the option you want and play with your Virtual Car.
***[Click Here](https://youtu.be/HLWc_b1vHWg) to Watch Tutorials on Youtube***
***
### If You Do Love My Works Then You Can Buy Me A Coffee Now.
![]()
***
## About CANghost:
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 & personal purpose, If you want to do it manually then you can check code source to understand how it works...
***Thanks to [@zombieCraig](https://github.com/zombieCraig) for ICSim***
[](https://www.gnu.org/software/bash/)
### 🤝 Connect with me
[](https://www.instagram.com/souravbaghz)
[](https://github.com/souravbaghz)
[](https://twitter.com/souravbaghz)
[](https://medium.com/@souravbaghz)---