Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/souravbaghz/Carpunk
The CAN Injection Toolkit
https://github.com/souravbaghz/Carpunk
automotive-hacking automotive-security canbus canbus-messages canghost carhacking carpunk hacking-tool vehicle-security
Last synced: 3 months ago
JSON representation
The CAN Injection Toolkit
- Host: GitHub
- URL: https://github.com/souravbaghz/Carpunk
- Owner: souravbaghz
- License: gpl-3.0
- Created: 2021-09-10T17:20:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-01T18:22:05.000Z (about 2 years ago)
- Last Synced: 2024-04-18T18:57:05.171Z (7 months ago)
- Topics: automotive-hacking, automotive-security, canbus, canbus-messages, canghost, carhacking, carpunk, hacking-tool, vehicle-security
- Language: Shell
- Homepage: https://github.com/souravbaghz/Carpunk
- Size: 5.52 MB
- Stars: 153
- Watchers: 9
- Forks: 38
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-canbus - Carpunk - CAN injection toolkit and successor of CANghost. (Hacking and Reverse Engineering tools)
- awesome-hacking-lists - souravbaghz/Carpunk - The CAN Injection Toolkit (Shell)
README
Carpunk v2
CAN Injection | Car Hacking Toolkit### What's New:
Carpunk is a CAN Injection Toolkit and an updated version of CANghost. Now it comes with some extra options like enable/disable the interface, basic sniffing, and the best part, it has some CAN Injection related vulnerabilities.
+ It works for both Simulation & Real cars.
+ Two more CAN injection attacks are added.
+ Tested on Ubuntu and Parrot OS.
***
#### Things To Note Before Running Carpunk:
+ You have to load your canbus driver yourself, the script makes canbus interface up and down only.
+ Now you have to pass an argument for your canbus interface.
+ Your logs file will be named as carpunk1.log,carpunk2.log and so on if you're using in one shot. If you restart the script then it will create carpunk1.log again and your previously created carpunk1.log will be deleted.
+ Copy your all logs file somewhere else before starting the carpunk script.
+ I am not responsible for any damage to your vehicle and illegal activities with this toolkit. Use at your own risk.
***#### Installation & Usage of CarPunk :
```
git clone https://github.com/souravbaghz/Carpunk
cd Carpunk
sudo bash carpunk.sh
```
***
+ [1] Up The CAN Interface : Enable/UP the CAN Interface.
+ [2] Down The CAN Interface : Make The CAN Interface Down.
+ [3] Start The Basic Sniffing : Start Sniffing Only(get terminal clear as soon as you stop it by ctrl+c).
+ [4] Record The CAN Packets : Capture/Record The CAN Packets Into File(as carpunk1.log- name will be carpunk2.log,carpunk3.log,so on for multiple times).
+ [5] Play The CAN Packets : Replay The CAN Packets Which You Captured Earlier(specify the log-file. e.g: carpunk1.log).
+ [6] CAN Injection DOS Attack : Perform DOS Attack Through CAN Injection.
+ [7] ECU Hard Reset : ECU Hard Reset
+ [0] Exit : To Exit The CarPunk Script.
***
### If You Do Love My Works Then You Can Buy Me A Coffee Now.
***
[![!#/bin/bash](https://img.shields.io/badge/-%23!%2Fbin%2Fbash-1f425f.svg?style=for-the-badge&logo=image%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIge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G%2Fu5uGH4swzd561F%2BuhIT4%2BLnSuPsv9%2BJKIpjNr9dXYOyk7%2FBZrcjIT4eCnoKgedJP4BEqhG77E3NKP31FO7cfQA5K0dSYuLgz2TwCWJSOBzG6crzKK%2BohNfni%2Bx6OMUMMNe%2Fgf7ocbw0v0acKg6J8Ql0q%2BT%2FAXR5PNi5dz9c71upuQqCKFAD%2BYhrZLEAmpodaHO3Qy6TI3NhBpbrshGtOWKOSMYwYGQM8nJzoFJNxP2HjyIQho4PewK6hBktoDcUwtIln4PjOWzflQ%2Be5yl0yCCYgYikTclGlxadio%2BBQCSiW1UXoVGrKYwH4RgMrjU1HAB4vR6LzWYfFUCKxfS8Ftk5qxHoCUQAUkRJaSEokkV6Y%2F%2BJUOC4hn6A39NVXVBYeNP8piH6HeA4fPbpdBQV5KOx0QaL1YppX3Jgk0TwH2Vg6S3u%2BdB91%2B%2FpuNYPYFl5uP5V7ZqvsrX7jxqMXR6ff3gCQSTzFI0a1TX3wIs8ul%2Bq4HuWAAiM39vhOuR1O1fQ2gT%2F26Z8Z5vrl2OHi9OXZn995nLV9aFfS6UC9JeJPfuK0NBohWpCHMSAAsFe74WWP%2BvT25wtP9Bpob6uGqqyDnOtaeumjRu%2ByFu36VntK%2FPA5umTJeUtPWZSU9BCgud661odVp3DZtkc7AnYR33RRC708PrVi1larW7XwZIjLnd7R6SgSqWSNjU1B3F72pz5TZbXmX5vV81Yb7Lg7XT%2FUXriu8XLVqw6c6XqWnBKiiYU%2BMt3wWF7u7i91XlSEITwSAZ%2FCzAAHsJVbwXYFFEAAAAASUVORK5CYII%3D)](https://www.gnu.org/software/bash/)
### 🤝 Connect with me
[![Instagram: souravbaghz](https://img.shields.io/badge/instagram-%23E4405F.svg?&style=for-the-badge&logo=instagram&logoColor=white)](https://www.instagram.com/souravbaghz)
[![GitHub souravbaghz](https://img.shields.io/badge/github-%23000000.svg?&style=for-the-badge&logo=github)](https://github.com/souravbaghz)
[![Twitter souravbaghz](https://img.shields.io/badge/twitter-%231DA1F2.svg?&style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/souravbaghz)
[![Medium souravbaghz](https://img.shields.io/badge/medium-%2312100E.svg?&style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@souravbaghz)---
### Thanks To:
+ [@linux-can](https://github.com/linux-can) for [can-utils](https://github.com/linux-can/can-utils)
+ [@Craig Smith](https://github.com/zombieCraig) for [ICSim](https://github.com/zombieCraig/ICSim)
+ [@Jay Turla](https://github.com/shipcod3)