READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

TestDrive Unlimited 2 apparent JPG format..

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Nobby
veteran
Posts: 109
Joined: Thu May 13, 2010 12:35 am
Has thanked: 5 times
Been thanked: 13 times

TestDrive Unlimited 2 apparent JPG format..

Post by Nobby » Tue Aug 13, 2013 7:42 pm

Hey guys

I hope someone can help me with this. First i need to say, i am completely useless at this sort of thing, so any responses will have to be dumbed down a lot :)

Ok onto the point of the post.. In Testdrive unlimited 2 you have the ability to take photos. Then if you want you can either view your photo album or you can use your photos to decorate your house ( the houses have a few picture frames you can put the photos in)
The files that get saved have a .jpg extension but nobody has been able to view these pictures in anything other than the game. It is strongly believed they are in fact jpg's but have been encrypted somehow. But personally im not even sure they are jpg's.

Ultimately what i would like is to be able to take photos, make them readable in photoshop or another art program, edit them, or insert a totally new image, then be able to save them, then if need be convert them back so i can put them back in the game.

So if someone could be kind enough to maybe take a look at the file, see if they can find anything out, or if there is a way to convert it to something useable, and then back again. It would be VERY much appreciated.

Heres the file... Photo

Many thanks in advance.. Nobby

P.S. Also here is a snapshot of the photo being displayed in game.. So if you are able to read it somehow, you know what the image should look like..
Image
Yes! i know that's what i said... But its not what i meant. ;)

barracuda
beginner
Posts: 30
Joined: Sat Nov 24, 2012 2:15 pm
Has thanked: 3 times
Been thanked: 27 times

Re: TestDrive Unlimited 2 apparent JPG format..

Post by barracuda » Mon Aug 19, 2013 11:30 am

It's definitely not a valid JPEG file. The first bytes should start with "FF D8 FF E0 00 10 4A 46 49 46", but instead, they start with "B3 1B 1A F7 44 18 0A A5 41 CF". There seems to be some plain text at the bottom of the file, though: "##ݬ2“î¹XR00000B2X.JPG##". Maybe "ݬ2“î¹" (DD AC 32 93 EE B9) is the key and "XR" is the method (XOR), but that's just a wild guess.

Edit: nah, I don't think it's simple XOR. Do you have some more photos for analysis?

Nobby
veteran
Posts: 109
Joined: Thu May 13, 2010 12:35 am
Has thanked: 5 times
Been thanked: 13 times

Re: TestDrive Unlimited 2 apparent JPG format..

Post by Nobby » Thu Sep 05, 2013 12:45 am

i could certainly get some more. just takes a couple of mins.

Photos
OK heres a set of 3 photos. Hope this helps and i hope you can find something useful out..This is one thing that has baffled us for a while.
Yes! i know that's what i said... But its not what i meant. ;)

barracuda
beginner
Posts: 30
Joined: Sat Nov 24, 2012 2:15 pm
Has thanked: 3 times
Been thanked: 27 times

Re: TestDrive Unlimited 2 apparent JPG format..

Post by barracuda » Thu Sep 05, 2013 11:37 am

Well, okay. Apparently, the key is different for every file. Only the last 25 bytes are always(?) in the same format: ##[DD AC 32 93 EE B9]XR[filename]##[0C]

I wonder if there are similarities between two photos with the same file name. In that case, the key is probably based on the file name. But without reversing the executable, I would say it's very hard to figure out the encryption/decryption process.

Edit: new theory: the bytes between the two hashes is the key, including or excluding the hashes. Don't know the cipher, though. I tried AES and xtea (used in TDU1) without success.

Post Reply