Jump to content

Reverse Engineering an algorythm ?

meho2481

Hello guys, i hope this is the right forum for my issue. 

 

So i am working with mainly Mercedes benz vehicles which have a bunch of ECU's inside, most of these have no/little security in place so that you can change values inside them (important for retrofitting options to your car or just customization/QOL changes) but there is 1 ECU in particular where, if you request security level xy it sends you an 8 Byte seed like XX XX XX XX XX XX XX XX and wants a 8 Byte Key in return, would it be, from a mathematical or programming standpoint be possible, that if i provide like 2-3 Seed/Key combinations, to reverse engineer the algorythm ? im sorry if all of this sounds dumb but i dont have much if any CS experience and was just wondering if that would be possible ? 

 

Link to comment
Share on other sites

Link to post
Share on other sites

There is a possibility that it's not made by an algorithm,but a key that is tied to the individual ECU.

Anyway in that situation you need a hacker or a security specialist to either crack the key or bypass it.

A PC Enthusiast since 2011
AMD Ryzen 7 5700X@4.65GHz | GIGABYTE GTX 1660 GAMING OC @ Core 2085MHz Memory 5000MHz
Cinebench R23: 15669cb | Unigine Superposition 1080p Extreme: 3566
Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, meho2481 said:

Hello guys, i hope this is the right forum for my issue. 

 

So i am working with mainly Mercedes benz vehicles which have a bunch of ECU's inside, most of these have no/little security in place so that you can change values inside them (important for retrofitting options to your car or just customization/QOL changes) but there is 1 ECU in particular where, if you request security level xy it sends you an 8 Byte seed like XX XX XX XX XX XX XX XX and wants a 8 Byte Key in return, would it be, from a mathematical or programming standpoint be possible, that if i provide like 2-3 Seed/Key combinations, to reverse engineer the algorythm ? im sorry if all of this sounds dumb but i dont have much if any CS experience and was just wondering if that would be possible ? 

 

Personally, I'd hit up a MB aftermarket forum, they are likely to have more insight

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

Also you can use a brute force attack - try all of the possible combinations,it will take a while.

A PC Enthusiast since 2011
AMD Ryzen 7 5700X@4.65GHz | GIGABYTE GTX 1660 GAMING OC @ Core 2085MHz Memory 5000MHz
Cinebench R23: 15669cb | Unigine Superposition 1080p Extreme: 3566
Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Vishera said:

There is a possibility that it's not made by an algorithm,but a key that is tied to the individual ECU.

Anyway in that situation you need a hacker or a security specialist to either crack the key or bypass it.

Hey thanks for the quick answer. 

 

It definitely is an algorithm as confirmed by some people i've talked to. 

 

4 minutes ago, Radium_Angel said:

Personally, I'd hit up a MB aftermarket forum, they are likely to have more insight

Sadly this topic in general cannot be found on most forums. 

 

 

Another thing is that some dlls for the calculation of some seeds are publicly available but they aren't for the right security level, could it be possible to see whats inside the dll file ? 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, meho2481 said:

Hey thanks for the quick answer. 

 

It definitely is an algorithm as confirmed by some people i've talked to. 

 

Sadly this topic in general cannot be found on most forums. 

 

 

Another thing is that an some dlls for the calculation of some seeds are publicly available but they aren't for the right security level, could it be possible to see whats inside the dll file ? 

I suspect we cannot help you.

7 minutes ago, Vishera said:

Anyway in that situation you need a hacker or a security specialist to either crack the key or bypass it.

 

A PC Enthusiast since 2011
AMD Ryzen 7 5700X@4.65GHz | GIGABYTE GTX 1660 GAMING OC @ Core 2085MHz Memory 5000MHz
Cinebench R23: 15669cb | Unigine Superposition 1080p Extreme: 3566
Link to comment
Share on other sites

Link to post
Share on other sites

thank you so much for your quick help and advice dude 

Link to comment
Share on other sites

Link to post
Share on other sites

27 minutes ago, meho2481 said:

would it be, from a mathematical or programming standpoint be possible, that if i provide like 2-3 Seed/Key combinations, to reverse engineer the algorythm ?

That depends entirely on what the algorithm is. The entire field of cryptography is dedicated to finding algorithms that make it nigh on impossible to find the input starting from the output without trying every possible combination - if any of those are used then no, you can't do it. If it's something very simple (e.g. "take the password and return the sum of its bits times 3") then it's possible you could figure it out with a few sample inputs. If it's anything security related it should be the former though.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×