Forum-Gallery-Shop-Sponsors

« Advertise on Freel2.com

Home > In Car Electronics > SDD .exml file editing
Post Reply  Down to end
Page 1 of 2 12>
Print this entire topic · 
rhys_m



Member Since: 18 Aug 2019
Location: kent
Posts: 28

United Kingdom 2008 Freelander 2 TD4 SE Manual Zermatt Silver
SDD .exml file editing

Not sure where was best to put this, but I think here will do. In my quest to decode as many jlr CAN signals I have begun to look the sdd files. The ones that are really enticing me are the .exml files, these are encrypted XML. I have been going through so much of the program code but haven't been able to figure out how. Now there is definitely a way to do this and a couple of programs people have made to do it. One user over on jaguar forums has said he can do it but I can't get any response from him, and there's a Chinese site that have listed they can supply a program for $155. So it's definitely do-able but it seems no one is very willing to share the methods.

Everything I have produced, and will produce will all be free and open source so I kind of begrudge spending $155 on something that potentially may work. I know on this site there seems some really good people with sdd, so perhaps someone knows of a way?

Thanks


Last edited by rhys_m on 19th Oct 2019 8:47 pm. Edited 1 time in total

Post #379979 18th Oct 2019 8:14 pm
View user's profile Send private message View poster's gallery Reply with quote
Vanny



Member Since: 06 Dec 2015
Location: Cheshire
Posts: 437

United Kingdom 2013 Freelander 2 SD4 XS Auto Santorini Black

They're not encrypted, they're encoded, and not a very complicated encoding.

The Java program/dll you need is freely available. Took me about an hour of googling to find it. I'm not gonna spoil your fun of finding it, because I learned a huge amount in hunting around for it.

Post #379982 18th Oct 2019 9:02 pm
View user's profile Send private message View poster's gallery Reply with quote
rhys_m



Member Since: 18 Aug 2019
Location: kent
Posts: 28

United Kingdom 2008 Freelander 2 TD4 SE Manual Zermatt Silver

Ah don't do this to me Bow down

I have literally decompiled every jar that I could find within sdd as I suspected it would be something there, but no luck so far. I must be missing something in my googling, as I have literally just come up with just 3 links about it.

Il be jumping back on the pc when the misses comes home. Perhaps time to look at this from a different angle if you managed to find it that quick......

Post #379983 18th Oct 2019 9:09 pm
View user's profile Send private message View poster's gallery Reply with quote
alex_pescaru



Member Since: 12 Mar 2009
Location: RO
Posts: 4642

How do you call a process which uses:

- a plain text session key
- a 3DES (Triple Data Encryption Standard) cipher
- an electronic codebook cipher mode

Encoding or encrypting? Laughing

Post #379995 19th Oct 2019 8:07 am
View user's profile Send private message View poster's gallery Reply with quote
Vanny



Member Since: 06 Dec 2015
Location: Cheshire
Posts: 437

United Kingdom 2013 Freelander 2 SD4 XS Auto Santorini Black

There is no key, so it's not encrypted.

Maybe that's an over simplification?

Post #379998 19th Oct 2019 8:15 am
View user's profile Send private message View poster's gallery Reply with quote
alex_pescaru



Member Since: 12 Mar 2009
Location: RO
Posts: 4642

Strange, as it's JLR's implementation inside their DLL files...
Maybe we are talking about different things?

Post #380000 19th Oct 2019 8:30 am
View user's profile Send private message View poster's gallery Reply with quote
MotionInc



Member Since: 17 Jun 2019
Location: North America
Posts: 1355

Canada 2008 LR2 i6 SE Auto Tambora Flame

Intrigued, will be intently following this thread.

Post #380004 19th Oct 2019 10:52 am
View user's profile Send private message View poster's gallery Reply with quote
alex_pescaru



Member Since: 12 Mar 2009
Location: RO
Posts: 4642

@Vanny
Here's a file encrypted/encoded with the JLR's method: file_to_decrypt
Please try to decrypt/decode it with the program you've found and if you'll get results, then we are talking about the same thing.

The key needed is unique/the same for encryption/decryption and may be embedded inside that program you've found and therefore the program don't ask for it, leaving the impression that there is no key involved. But the process is using the operating systems' cryptographic services (3DES, plain text ver.2 key) alright.

PS: For the sake of topic and OP, please tell us what's in the above file... Laughing

Post #380017 19th Oct 2019 5:37 pm
View user's profile Send private message View poster's gallery Reply with quote
Vanny



Member Since: 06 Dec 2015
Location: Cheshire
Posts: 437

United Kingdom 2013 Freelander 2 SD4 XS Auto Santorini Black

@alex_pescaru

Well that was no fun, I was expecting a proper message and not just my own post en***ed Sad

Now, here's a confession for you.
Everything I have learned about extracting the information from the EXMLs has come from your excellent posts, dotted in various places. Especially that Russian LR forum! So I must bow to your superior knowledge on the top and correct myself.

Encrypted NOT encoded.

Post #380020 19th Oct 2019 6:24 pm
View user's profile Send private message View poster's gallery Reply with quote
alex_pescaru



Member Since: 12 Mar 2009
Location: RO
Posts: 4642

Thank you for your kind words, but really there is no need. Anyone with enough passion can find out, learn and know the same things.

@rhys_m
If you say that you know how to look through program code, then look through DLLs where CryptAcquireContext, CryptImportKey, CryptSetKeyParam and CryptDecrypt functions are used/imported and you'll hit the jackpot.
And then, don't forget that you said that "everything you will produce will all be free and open source" Very Happy Thumbs Up

Post #380025 19th Oct 2019 8:56 pm
View user's profile Send private message View poster's gallery Reply with quote
JulesK



Member Since: 07 Dec 2014
Location: Ceredigion.
Posts: 1664

Wales 2014 Freelander 2 TD4 HSE Auto Firenze Red

Good God, I got lost at encrypted/encoded Rolling with laughter

Off to take some Anadin Confused


Sheep If it wasn't so bad it'd be funny.

🐑
Freelander 2 HSE auto 2014 ( Florrie ) ..... Try again.
Freelander 2 GS 2012...... Gone.

Post #380030 20th Oct 2019 6:02 am
View user's profile Send private message View poster's gallery Reply with quote
Vanny



Member Since: 06 Dec 2015
Location: Cheshire
Posts: 437

United Kingdom 2013 Freelander 2 SD4 XS Auto Santorini Black

Maybe code-ine would be better 🤣

Post #380032 20th Oct 2019 6:38 am
View user's profile Send private message View poster's gallery Reply with quote
JulesK



Member Since: 07 Dec 2014
Location: Ceredigion.
Posts: 1664

Wales 2014 Freelander 2 TD4 HSE Auto Firenze Red

Loves it Vanny loves it Thumbs Up


Rolling with laughter



Sheep If it wasn't so bad it'd be funny.

🐑
Freelander 2 HSE auto 2014 ( Florrie ) ..... Try again.
Freelander 2 GS 2012...... Gone.

Post #380061 21st Oct 2019 9:06 am
View user's profile Send private message View poster's gallery Reply with quote
rhys_m



Member Since: 18 Aug 2019
Location: kent
Posts: 28

United Kingdom 2008 Freelander 2 TD4 SE Manual Zermatt Silver

Im sure I replied to this, but obviously not. Dont worry @alex_pescaru I'm a massive advocate for open source, wouldnt do it any other way.

managed to get all the can messages needed though, wrote some software to help finding the correct IDs, its not a freelander 2 jobby at the moment, but this is the most helpful forum I have come across. Once the jag is done, I will be moving back to the freelander anyway

Milestone



massive thanks to Vanny too

Post #380062 21st Oct 2019 9:11 am
View user's profile Send private message View poster's gallery Reply with quote
smarggauges



Member Since: 16 Apr 2020
Location: Russia
Posts: 6

2009 Freelander 2 TD4 SE Auto Alaska White

@alex_pescaru

Thanks for the tip.

I made a proxy-dll for intercept CryptImportKey call and inject this dll with help AppInit_DLLs.

The key can be found in the file %TEMLP%\hack.txt.
hack.dll: C:\Program Files\Application.exe key:0x08 0x02 0x00 0x00 0x03 0x66 0x00 0x00 0x18 0x00 0x00 0x00 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX

x86 binary and sources is availible on https://github.com/smartgauges/exml


Last edited by smarggauges on 11th May 2020 8:24 am. Edited 1 time in total

Post #391058 11th May 2020 7:10 am
View user's profile Send private message View poster's gallery Reply with quote
Post Reply  Back to top
Page 1 of 2 12>
All times are GMT

Jump to  
Previous Topic | Next Topic >
Posting Rules
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Site Copyright © 2006-2024 Futuranet Ltd & Martin Lewis
Freel2.com RSS Feed - All Forums


Switch to Mobile site