Here's a special bonus video that's going to show you how to hack the car hacking software.
In fact, what I want to show you how to do this was a favorite lesson from our National Cyber Warrior
Academy these past two years.
And I want to say a special shout out to Franklin Way.
Franklin Way was actually the student who came up with this idea back in NWA 2016.
And you can see I have turned on my controller area network.
I've got my icy simulator in my controls up, and I'm not limited by a top speed of 100 hundred miles
per hour.
I'm going to be able to pick this thing out up at 280 miles per hour.
The dial has numbers up to two hundred and sixty.
But we can even if you really want to do it, you can even make this wrap around several times so it
can go to 300 and then wrap back around for six hundred nine hundred all the way around.
So I just want to show you this.
It's a really useful quick application of editing open source software and hacking the car hacking software.
It's some pretty cool stuff.
There are a couple of things that you're going to be able to do at the command line.
We're going to use that make command finally that we mentioned early on.
But we're going to be able to recompile this open source software with a few edits that we'll make and
we'll see a couple of troubleshooting tips along the way.
Plus, this is a really common thing.
When you download some software, it'll be close, especially great open source software like the team
at open garages are put together here.
It does almost everything exactly like you'd want.
But, you know, it'd be nice to be able to type out this little minivan that we're driving at 300 miles
per hour instead of just hitting 90 miles per hour.
So if you want to be able to modify things, let's say you wanted to make it accelerate faster because
this accelerates and decelerate kind of slowly, maybe realistically, which is probably the goal.
But we want to be able to hit that max speed faster.
So we'll have a really fast minivan by the time we finish this.
We just need to be able to edit those open source files that we saw earlier.
Well, we can use our nano ed or we can just use leaf pad, which is right here on one of the applications,
right on the desktop for Linux.
We can go to file open and we got that icy simulator folder under our route.
So Route ICSOM and we should be able to find controls that see notice.
You've also got your icy Sandusky and a Lipsey file.
In fact, I think this one may cause an error on this current distribution of Linux.
So we're going to fix that from the command line.
But let's go to controls that see and edit this file.
So we are editing controls that C and we're going to scroll down and you can see a lot of constants
in here.
You may be able to read some of this code if you've programmed in C before.
This is going to be easy for you if you've never programmed and C, especially on a Linux or Unix computer,
this is going to be a really useful quick example.
We're just going to change a couple of things.
You see my max speed of ninety.
I can use my keyboard to just type in, let's say, 300 here and my acceleration rate instead of eight
seconds.
I want to go zero to three hundred in six seconds.
So you could make this faster.
You could make it zip up and sit down.
UBA you're hacking, so you're doing something safe on a virtual car.
So it's all right to change this even more.
But you can see all of the source code for this control where we're not going to change anything else
except this one line max speed and then optionally if you want to change the acceleration rate as well.
I've just changed max speed to 300, an acceleration rate to six.
All I have to do now is save this and come to a control a new terminal window.
I'll go ahead and close out of my other running programs.
And so I will actually I'll start with a completely clean terminal window, new window increase the
size of your control shift and plus so that you can see this more easily.
And all I need to do is now that I've edited so if I go to CBS and I see Sam KDDI, I, Cappotelli Tab
El's, if I had more controls that dot see and I just hit the space bar a couple of times, I can see
my max speed is 300.
I have correctly saved that so I can hit a control see.
Clear.
Now, normally, what I would need to do here is just hit the make command because this already has
a makefile.
And if everything were perfect on this distribution of Linux and on the GitHub files, I should just
be able to run make from inside the I see SIM folder.
If I list that one more time, in fact, let me do that or else.
And I can see that I have a folder or a file called Makefile.
That Makefile, if I saw it, I can see that this just has some compiling information.
Is the new or the free C compiler and it has some flags.
It's contre, it's compiling the I see some file, the controls file and the Libardo file, a library
file that it uses and then it's cleaning up after itself.
If I clear we should be able to issue a make command here, some make should run that make file.
But we've got some sort of error here.
You can see, Jinksy, everything looks OK there, but then we've got an error down here.
This Leyb file.
This is just because this Leyb file that we are using, this one of the library files, it was compiled
in the original version of the Excel does need to be compiled and we need to recompile it with these
flags.
So let me show you the command to recompile this.
Libo, if you got this error, if you got make to work without a problem, that means that they've updated
the files at GitHub for Zombi Craig's Ssempa file.
But there's a good chance on a good, clean Calli install like we just did.
You're going to have to do a recompile of the Lib Dossi to get this Libardo file.
So we'll show you a little bit of extra hacking Dash Fessey.
So we're going to say just to show you really fast what we mean here, Lipsey is the original library
file that was being compiled by this makefile or that was compiled originally Leyb O was what it was
compiled to.
We're going to recompile this output file or this object file, LEYB.
Oh, so let me make this a little bit bigger.
So to be able to see it better and we're going to say, gee, see, this is the new compiler, Jack
Dash.
Gee, Dash, oh, because we're going to do the output file and we'll do a dash C for Leyb.
C, this will recompile that lived C to a new Libardo file.
If I do less well, you'll see that my Libardo is now updated as of twelve thirty five.
These other files I update a little earlier.
So now if I run make with my edited controls that C.
I had a couple of warnings in there, but it looks good, I can run it, make one more time, everything
looks like it's up to up to date just in case you have rebooted your machine since the last lesson or
if you ever want to come back and rerun the vikan simulator's, all we have to do is do a mod probe.
We can and then we do a message to make sure that the beacon interface drivers in there, we're going
to do an IP link.
And Deb.
We can zero or you can use a different number if you want to type the can and then the IP link set up
the can zero, you need to run those four commands any time you restart Linux because that mod probe
will load the kernel module for can.
And then we set up our Vikan zero interface of the can and then we link it up.
Now we should be able to run the doglike sim the on V can zero we need.
Yeah, we're in the ICI sim folder so we can run slash.
I see sim becan zero.
That gives our dashboard simulator, let's run our controller with a new window.
I always need to see and I see SEM to find my dog's controls and I need to run them on becan zero.
So if we've done this correctly, we should accelerate a little more quickly and we should go well past
100 all the way up to 300 miles per hour.
Very nice.
If you Meijers a thousand you'll see it loop around three times and come back up a little bit.
If you did it for a little less or a little more, you can run it and you can change that acceleration.
It was it took me around six seconds to accelerate.
I could make that two seconds and make this really fast.
All we have to do is remake PacTel Dimo, that really fast file.
Open and we can reopen controls that see.
I'm going to change that max speed, I'll make it 600.
An acceleration rate of two seconds.
Oop, I didn't have my number turned on there, so six and two, we can save control less or fail.
Save good.
And then all we need to do is start a new terminal window and we just do a CD and I see Sam do another
make.
It remade the file.
And we can minimize this window, we just need to close the controller and run it again.
And now our new controller, wow, accelerates past 300 to 600, it's having to do some modular arithmetic
because there's some distance between these two.
Look at that.
We wrapped all the way around and we accelerated in just two seconds from zero to almost 600 miles per
hour.
Had to wrap all the way around to see that happen.
Very nice, we can still turn on our blinkers, everything else that we will do, so we just hacked
the car hacking software.
You've learned some really valuable skills with JC so we can recompile open source, see files, you
can edit, see files as easily as using a text editor.
File open controls, see, and I can make this anything I want, I can change other things in here.
Once you get good at hacking and changing just a few things, you can come down and actually start writing
your own C-code, create your own new parts to this really cool like simulator and control panel.
So if you want to do a simulator for turning on the air conditioning, you can figure out a way to do
that if you want to spend some time in there.
So some really great tools at your disposal and some really useful features to be able to do.
We will see you in the next section.