Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

Root FAQ

This site may earn commission on affiliate links.
I bought a T-CAN tool and thought I would find out how to rooted my tesla here,
Does anyone know where I can learn this?
I want to enter the factory mode in Tesla S, in Tesla X it is very simple, but in S you need to gain root access.

View attachment 607530

View attachment 607531
Hah, you can't root your car with T-can. Its CAN diagnostic tool, work with CAN network. It have features to get diagnostic modes, but not more. You can't change config with this.
 
  • Like
Reactions: Chary
For this idea to work, you need to setup a path to connect to the actual tesla OS via a telnet/putty type interface than opens a shell command line interface (maybe), then you need some means to open up a new file system (perhaps on the USB) and that you can then copy files over --- you will also need a compiler toolkit that will generate binary compatible to the CPU (Tegra or intel) in a format that it will recognize that can be loaded [is it linux? Don't know] .

I don't know if any of those paths are left open. Sure, the Tesla will have an IP address when it connects to your home wifi but you have to try a whole bunch of tools to see if any port/protocol is left open --- something probably is there listening on some port, so it would be interesting to see what works.

Even if you do find a port and protocol that might work I doubt it's easily hacked --- probably heavily protected with really nasty encryption. Might be a fun project to someone with enough time on his hands.
 
  • Like
Reactions: Chary
Actually, there's now an app on github by Gekzy called nikola, which lets you remotely control your car from your phone. Works over a reverse SSH connexion directly to the car.

So far I've set up regular status reporting of the car to my home server, as well as backup of critical files, but haven't had time to experiment with nikola. Wish I did have the time.

I have extended and secured many of Gekzy's scripts and am grateful for his trailblazing work.
 
Thanks guys, but as @gwxfer say: "T-CAN is diagnostic tool and work with CAN network" .. I know tjat must be LAN.
I think I know how to do more less.
I need to get to the Tesla LAN network,
- I know the connector is on the left or right pillar.
- I know there is an RJ45 connector there, which is an ordinary network connector.
- I can connect with my laptop,
- scan the LAN network, and then knowing the IP class, I can assign myself an IP address ie: 192.172.176.43 from the same pool to my laptop's ethernet adapter.
Then I can scan the ports in my car.
If SSH port 22 is open, I can try to hackit, but Tesla could have changed the port, it could be different. There are about 65k ports + security systems like firewall etc ...
OK, let's say I found an ssh, telnet,etc... port and hacked.
I have a root password.
So, I can put .... sudo ps-aux to see what the running processes are, edit files, etc....
Cool, all of this can be done, but attacking your own Tesla is stuoid, illogical and time consuming.

I'm looking for a different way.
I am not sure,Tesla is based on Linux or a similar Unix system but where it is physically ???? and it is possible to take it out on the bench ?, It is posiible to run it in password recovery mode like Linux ?

I've done this many times as a network administrator, but I had physical access to the computer.
I don't know Tesla. that's why I asked politely here for help.
Maybe there is an easier way, maybe there is some bug?
 
@murphyS90D "......A Controller Area Network (CAN bus) is a robust vehicle bus standard designed to allow microcontrollers and devices to communicate with each other's applications without a host computer...."

LAN - Wikipedia
--------------------------------
"....A local area network (LAN) is a computer network that interconnects computers within a limited area such as a residence, school, laboratory, ...." and ie:. Tesla ;)


Today guys I found a website and I want to share it with you and will quote:

"...
  • Memory Cards: One of the memory cards contained a file, carkeys.tar, which included the car’s OpenVPN credentials, specifically an x509 certificate, an RSA private key, and an OpenVPN static key. The car keys of tomorrow, are apparently cryptographic in nature. The other contained a large amount of mapping data..."

"...After logging into the IC with these credentials, we immediately found that the account was a sudoer and we were able to become root ..."

"... We used this token from the IC to log into the CID as “tesla1,” which was also a sudoer. We then had root on both the CID and the IC. ..."

please also take a look at the pictures below, will help you understand each network in Tesla.

TH-1.png


TH2.png


TH7.png


TH8.png


link to full article:
Hacking a Tesla Model S: What we found and what we learned


I am going to test it this weekend.
the only problem, I need the wiring diagram to connect to the network ,mens 4-pin ethernet cable (2RX + 2TX)

I'm getting closer to rooting my tesla :D
 
@murphyS90D "......A Controller Area Network (CAN bus) is a robust vehicle bus standard designed to allow microcontrollers and devices to communicate with each other's applications without a host computer...."

LAN - Wikipedia
--------------------------------
"....A local area network (LAN) is a computer network that interconnects computers within a limited area such as a residence, school, laboratory, ...." and ie:. Tesla ;)


Today guys I found a website and I want to share it with you and will quote:

"...
  • Memory Cards: One of the memory cards contained a file, carkeys.tar, which included the car’s OpenVPN credentials, specifically an x509 certificate, an RSA private key, and an OpenVPN static key. The car keys of tomorrow, are apparently cryptographic in nature. The other contained a large amount of mapping data..."

"...After logging into the IC with these credentials, we immediately found that the account was a sudoer and we were able to become root ..."

"... We used this token from the IC to log into the CID as “tesla1,” which was also a sudoer. We then had root on both the CID and the IC. ..."

please also take a look at the pictures below, will help you understand each network in Tesla.

TH-1.png


TH2.png


TH7.png


TH8.png


link to full article:
Hacking a Tesla Model S: What we found and what we learned


I am going to test it this weekend.
the only problem, I need the wiring diagram to connect to the network ,mens 4-pin ethernet cable (2RX + 2TX)

I'm getting closer to rooting my tesla :D
This all info from website is not work anymore.
 
Hah, you can't root your car with T-can. Its CAN diagnostic tool, work with CAN network. It have features to get diagnostic modes, but not more. You can't change config with this.
Tcan can work with can and if you use LAN *INTEL by AP 103 Tegra by IC 101* or (BroadReach ...103 model3) you can use LAN functions. I do not add config and miles editing becouse ......maybe later it is not that way for me on this moment.
 
  • Informative
Reactions: davidc18
Tcan can work with can and if you use LAN *INTEL by AP 103 Tegra by IC 101* or (BroadReach ...103 model3) you can use LAN functions. I do not add config and miles editing becouse ......maybe later it is not that way for me on this moment.
Hi Bacila.
Thank you for your mega work.
I think there is no need in config changing in Tcan. Strong side is CAN network access that can make a lot in last Patreon update.
 
Paid top dollar for a 2016 s salvage. The only way I could justify it was the free supercharging. Just got shut off. Plz pm me so I can decide what to do next. Thnx
I literally am in the same boat. Worked then navigation did an auto update and poof, no more supercharging. If anyone can help that would be amazing. Been searching for answers and seems like it’s possible but I can’t find anyone who will respond about the subject. Pm me if you can help or know how I can get supercharging back and don’t tell me it’s impossible either, I’m not buying it.
 
I literally am in the same boat. Worked then navigation did an auto update and poof, no more supercharging. If anyone can help that would be amazing. Been searching for answers and seems like it’s possible but I can’t find anyone who will respond about the subject. Pm me if you can help or know how I can get supercharging back and don’t tell me it’s impossible either, I’m not buying it.

It's totally possible, you just need to reach the right person ;)
 
FYI - navigation or firmware updates will not turn off your supercharging. Tesla Has automated services that watch for salvage VINs then remote into the vehicle itself and change the car’s configuration on the gateway computer to disable supercharging and fast DC charging. Tesla is also known to revert the change back to disabled if you try to re-enable it via root (though anyone with root can come up with creative ways to disallow the mothership from controlling things in the first place).
 
  • Informative
Reactions: cleverscreenam
It's not to keep it on a low profile. Tesla is well aware of most everything and there's nothing they can do about it. It's what the forum en/discourages. I've been banned 4 times, for example.

I've summed up the use of rooting in my above post 4. Yes you can reduce eMMC writes, but personally I think it's important to preserve the system logs. This is not an issue when you upgrade to an industrial-grade eMMC like SwissBit.

Rooting can be done concurrent with Tesla access if the doer is talented. But most ppl who have warranty choose to not, reasonably so. Inevitably their eMMC will fail and the more MCUs they buy from Tesla, the more eMMCs they'll have fail. The only lasting solution is to upgrade that eMMC chip. And you might as well root it in the process. If no Linux skillz though, rooting won't do you much good until someone makes a self-hosted mobile app. But at least your chip will be upgraded.

If you hire a mercenary hacker like the whizkid or Ingineer (who may now be working at Wendy's), they will never ever give you access to the root account, and they watch you. This is the difference between them and we open-sourcers who will upgrade your chip, give you root, and won't track you, for a fee. Note: I don't provide this service.
What is the range of fees to root a car? Would someone on this thread be able to point a wandering traveler in the right direction?