What is CANalyse and how do I control(hack) cars through telegram? (Part — 1)

CANalyse is a tool built to analyze the log files to find out unique datasets automatically and able to connect to simple user interfaces such as Telegram. Basically, while using this tool you can provide your bot-ID and be able to use the tool over the internet through telegram.

CANalyse is made to be placed inside a raspberry-PI and able to exploit the vehicle through a telegram bot by recording and analysing the data logs, like a hardware implant planted inside a car which can communicate with the Network bus.

Let’s install the tool, clone the repository from , and open your terminal in the CANalyse folder. if you are using it for the first time install the requirements by using the command:

pip3 install -r requirements.txt

requirements.txt is already provided in the repository and by running the above command it will automatically install all the required libraries used in this tool. Now, you need to run the canalyse_tool.py command:

python3 canalyse_tool.py

Once you install the requirements and run the tool it should open a menu like this

You have four options,

  1. CANalyse
  2. Connect to Telegram
  3. settings
  4. Manual
    it’s a manual where it describes the functionality of each option in the
    “ CANalyse menu ”.

CANalyse:

CANalyse menu

in the CANalyse menu, you can manually record the source and attack files and analyse them. once you navigate to the “ Play payload “ option you can see all the IDs present in the payload.log on the screen. at this point, you can also play the specific ID from the payload log file also.

Sample data

All that we have done manually can also be done over the internet(telegram). Yep, that's the cool part of the tool. Let’s get started with that, to do that navigate back to the “ Main menu ”.

Connect to Telegram:

once you go to the second option you will be asked to give an “ API token ”. you can create your own Telegram bot and get the “ HTTP API token” enter the token into the tool and it will automatically connect with the tool.

Once you enter your bot “ HTTP API ” ID and it is connected it will show something like this on your terminal.

at this point, the tool has successfully connected with your telegram bot and you can go to your bot on telegram and start to see the menu. the menu displays all the functions which can be used through the telegram bot and the data input format.

if you can see the menu it confirms that your bot can communicate with the tool.

Settings:

Comm_channel: you can change the communication protocol.
Interface: you can change the interface here, the library python-can supports various interfaces such as:

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Beginning Python Programming — Part 13

10 Reasons to go Low-Code for your next enterprise app — part 1

What are Software Design Patterns & An Introduction to Factory Design Pattern

software design patterns, Factory design pattern

Lessons a coding boot camp can (and can’t) teach you

Serverless For Devops Teams

Redirect the call with SwaVan

Traefik Kubernetes Ingress and X-Forwarded- Headers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kartheek Lade

Kartheek Lade

More from Medium

What happens when you type google.com in your browser and press Enter

CS 373 Spring 2022: Stacy Jong: Final Entry

Disintegration: Bandcamp Joins Epic Games | Resident Sound 3/03/2022

Inspiration! The Way To Internal Harmony