Hacking Dead Or Alive: Dimensions Photo Decrypter

  • Thread starter Thread starter doadphdec
  • Start date Start date
  • Views Views 23,258
  • Replies Replies 25

doadphdec

Member
Newcomer
Joined
Jun 13, 2011
Messages
8
Reaction score
0
Trophies
0
XP
23
Country
United States
Code:
/*********************************************
* Dead Or Alive: Dimensions Photo Decrypter *
*********************************************
* instructions:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *
* - make photos in showcase mode if youÂÂÂÂ *
*ÂÂ haven'tÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *
* - find your dead or alive folder inÂÂÂÂÂÂ *
*ÂÂ extdata on SD card. if you made photosÂÂ*
*ÂÂ it should have folder 00000000 withÂÂÂÂ *
*ÂÂ files with size of 400416B inside. EUÂÂ *
*ÂÂ version is 0000038aÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *
* - move it off the sd card to your pcÂÂÂÂÂÂ*
* - disable wireless switch on 3ds so noÂÂÂÂ*
*ÂÂ DLC is received while you screw aroundÂÂ*
* - check how many files there are inÂÂÂÂÂÂ *
*ÂÂ the folder you put on your pcÂÂÂÂÂÂÂÂÂÂ *
* - start the game, create new SD dataÂÂÂÂÂÂ*
* - go to showcase mode, set stage toÂÂÂÂÂÂ *
*ÂÂ training stage and choose crouchingÂÂÂÂ *
*ÂÂ hayabusa figureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *
* - make as many completely black picturesÂÂ*
*ÂÂ of the background, as you have files in *
*ÂÂ the folder on your pc, with 3d switched *
*ÂÂ on. it is important that only black isÂÂ*
*ÂÂ on your pictures!!ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*
* - switch off 3ds and remove SD cardÂÂÂÂÂÂ *
* - move the new folder to your pc, but doÂÂ*
*ÂÂ NOT overwrite the originalÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*
* - copy original back to the SD cardÂÂÂÂÂÂ *
* - you can switch wifi back on and playÂÂÂÂ*
* - now you can decrypt. take picture files *
*ÂÂ with the same filename from bothÂÂÂÂÂÂÂÂ*
*ÂÂ folders. pictures are 400416BÂÂÂÂÂÂÂÂÂÂ *
* - in cmd.exe, call:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *
*ÂÂÂÂ doadpd.exe blackfile originalfileÂÂÂÂ *
* - if black file was black and both filesÂÂ*
*ÂÂ have the same number, you should haveÂÂ *
*ÂÂ originalfile.l.tga andÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*
*ÂÂ originalfile.r.tga in same folder nowÂÂ *
* - you can open tga with GIMP to convertÂÂ *
*ÂÂ to PNG or JPEGÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*
*ÂÂ http://www.gimp.org/ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*
* - if you want, you can even make MPO file *
*ÂÂ with software called StereoPhoto MakerÂÂ*
*ÂÂ so you can view in 3D:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*
*ÂÂ http://stereo.jpn.org/eng/stphmkr/ÂÂÂÂÂÂ*
* - if you can code, feel free to makeÂÂÂÂÂÂ*
*ÂÂ better programÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ*
* no warranty, if you screw up and lose DLC *
* it's on youÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *
*********************************************
*ÂÂÂÂÂÂÂÂ _ÂÂ_ÂÂ_____ _____ _ÂÂÂÂ _____ÂÂÂÂ *
*ÂÂÂÂÂÂÂÂ/ |/ \/ÂÂ__//ÂÂ__// \ÂÂ /ÂÂ__/ÂÂÂÂ *
*ÂÂÂÂÂÂÂÂ| || || |ÂÂ_| |ÂÂ_| |ÂÂ |ÂÂ\ÂÂÂÂÂÂ *
*ÂÂÂÂ /\_| || || |_//| |_//| |_/\|ÂÂ/ÂÂÂÂÂÂ *
*ÂÂÂÂ \____/\_/\____\\____\\____/\____\ÂÂÂÂ *
*ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂlet's rockÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *
*********************************************/
source: http://pastie.org/private/hxbjiaz3ppxwju9tx9pg
binary: http://www.mediafire.com/?1yvctma0nfwb52z
example:
30cn59f.png
24mf3is.png


guide: http://gbatemp.net/t297207-dead-or-alive-d...t&p=3723333
update: http://gbatemp.net/t297207-dead-or-alive-d...t&p=3818341
 
What a neat idea. Although the usage is a little cumbersome, but the result is nonetheless impressive.
One question, though, is it possible to make just one black photo and rename and copy/paste it the required number of times?
 
it's cumbersome because I can't make good user interface. maybe someone else can make it better, it's simple program. reusing single picture is not possible, because each picture is encrypted with different nonce or key, but you can make 200 black pictures at one time and use them, even if you haven't got so many pictures yet. you can also delete pictures so they get the same filename and only single black picture is needed, but sometimes I got ugly empty slot in picture list in the game, so I don't recommend this. restoring backup of extdata fixed this
 
I just took 73 black photos (apparently the maximum number) and saved them.
wink.gif


Afterwards I converted the normal photos without problems.
QGnxU.png
pRPel.png

Ozcwv.png
OUtat.png

4xe7n.png
FTxtX.png

tgKzi.png
8l4fh.png
all images as MPO files: http://dellicious.de/misc/DoAD_MPO.zip

I compiled your program on OS X, so it can be used by Mac users aswell. Download: http://dellicious.de/misc/doadpd.zip
If you're not okay with this, just tell me and I'll remove the link.

doadphdec said:
it's cumbersome because I can't make good user interface.
...
That's not what I meant. It's cumbersome because you have to search through the extdata folder and because you have to take the black pictures, but after that it's easy to use.

Thank you doadphdec for making this!
 
MPOs look nice

Takeshi said:
I compiled your program on OS X, so it can be used by Mac users aswell. Download: http://dellicious.de/misc/doadpd.zip
If you're not okay with this, just tell me and I'll remove the link.
cool with me. as matter of fact, I allow any kind of modification and distribution of doadpd. I would have kept source private otherwise

QUOTEThat's not what I meant. It's cumbersome because you have to search through the extdata folder and because you have to take the black pictures, but after that it's easy to use.
it's better, if the program just looks for right files itself. that's what I meant. because I can't do that, if anybody else can I would be happy too
smile.gif
 
I notice in pictures with 3d slider off region in header that is 0xFF otherwise is not cleared in file. game leaks little bit of unencrypted memory there. just posting this, because somebody could find it interesting
 
Pity DOA Dimensions doesn't use the same AR tech as Pokedex 3D, that would make these photos a lot more interesting. But then I guess that's more fuel for the 'DOA is kiddy porn' bullshit since somebody will inevitably take a photo that looks like Kasumi licking balls or something...
 
Could someone give a simpler explanation for us noobs? XD

I found the DoA folder, and something tells me that the files are those with size 392KB.

But...I don't know how to run the executable.
I moved 2 files into the same folder, changing the name of one of them (00000042[original] x00000042[black]).

And I ran the executable "doadpd.exe x00000042 00000042"

It didn't work, just got two defective files as output =p
 
MG4M3R said:
Could someone give a simpler explanation for us noobs? XD

I found the DoA folder, and something tells me that the files are those with size 392KB.

But...I don't know how to run the executable.
I moved 2 files into the same folder, changing the name of one of them (00000042[original] x00000042[black]).

And I ran the executable "doadpd.exe x00000042 00000042"

It didn't work, just got two defective files as output =p
I'm not sure if this is simpler but this is how I've done it.

1. backed up the content of my SD card
2. copied the photos from the DoA folder to a folder on my desktop called 'orig' (the 392KB files are the photos, ignore the rest)
3. launched DoA:D and deleted all photos
4. took the black photos
5. copied them to a folder on my desktop called 'black' (again, ignore everything but the 392KB files)
6. restored my SD card backup
7. copied doadpd.exe to my Desktop
8. launched doadpd from the command line: 'doadpd.exe orig/00000015 black/00000015' (with '00000015' being the file name of the photo)
9. the .tga files were in the folder called 'black' afterwards

I don't know if it didn't work because you renamed the files, but this may be a possibility. Also, make sure the original photo and the black photo have exactly the same number, as it won't work otherwise.

Note: I just realized that I did it backwards as the readme states the syntax as this: 'doadpd.exe blackfile originalfile' maybe that's why it didn't work for you. It could be that it doesn't matter.
 
Takeshi said:
MG4M3R said:
Could someone give a simpler explanation for us noobs? XD

I found the DoA folder, and something tells me that the files are those with size 392KB.

But...I don't know how to run the executable.
I moved 2 files into the same folder, changing the name of one of them (00000042[original] x00000042[black]).

And I ran the executable "doadpd.exe x00000042 00000042"

It didn't work, just got two defective files as output =p
I'm not sure if this is simpler but this is how I've done it.

1. backed up the content of my SD card
2. copied the photos from the DoA folder to a folder on my desktop called 'orig' (the 392KB files are the photos, ignore the rest)
3. launched DoA:D and deleted all photos
4. took the black photos
5. copied them to a folder on my desktop called 'black' (again, ignore everything but the 392KB files)
6. restored my SD card backup
7. launched doadpd from the command line: 'doadpd.exe orig/00000015 black/00000015' (with '00000015' being the file name of the photo)
8. the .tga files were in the folder called 'black' afterwards

I don't know if it didn't work because you renamed the files, but this may be a possibility. Also, make sure the original photo and the black photo have exactly the same number, as it won't work otherwise.

Note: I just realized that I did it backwards as the readme states the syntax as this: 'doadpd.exe blackfile originalfile' maybe that's why it didn't work for you. It could be that it doesn't matter.

I would presume that the order does matter. Also, I presume that you put doadpd.exe on your desktop along with those backed-up folders, otherwise it wouldn't have worked, since the file paths have to be relative to the executable. That is, if you had placed the exe in another folder, let's say My Documents, then you would have to change the paths. As an example, it might be "C:\Users\\Desktop\orig/00000015 black/00000015". I just thought I'd put that out there in case anyone runs into problems (then again, my explanation is a bit vague, so it might confuse people more, in which case, please do ask).
 
TCJJ said:
I would presume that the order does matter. Also, I presume that you put doadpd.exe on your desktop along with those backed-up folders, otherwise it wouldn't have worked, since the file paths have to be relative to the executable. That is, if you had placed the exe in another folder, let's say My Documents, then you would have to change the paths. As an example, it might be "C:\Users\\Desktop\orig/00000015 black/00000015". I just thought I'd put that out there in case anyone runs into problems (then again, my explanation is a bit vague, so it might confuse people more, in which case, please do ask).
You're right about the location of the .exe. I forgot to write it down, but I'll edit the post to make it clear.
 
MG4M3R said:
It didn't work, just got two defective files as output =p
how are files broken? you can't open them or is picture bad?

order of arguments for doadpd.exe only changes names of output files. reason decryption work both way is following:
black picture is cipher stream xor 0
original picture is cipher stream xor picture
black picture xor original picture is cipher stream xor 0 xor cipher stream xor picture
equals cipher stream xor cipher stream xor picture
equals picture
order for xor operation does not matter. that why both ways work

as I already speak of how this works, I can explain more fully at this time
first decrypt as I write before. first 16416 byte of picture file is header and doesn't matter. after that is only raw pixels with 2 byte each. 5 bit blue 6 bit green 5 bit red
order of pixel is 8x8 blocks from bottom to top and left to right. block is split in two horizontal stacked blocks. for order of pixel within block please refer to source code
first half of file is left picture and second half right picture
 
QUOTE said:
how are files broken? you can't open them or is picture bad?

This:

00000042r.jpg


Don't ask me what went wrong XD

I tried again following your advice, threw it all on the Desktop (the images in separate folders) and typed "doadpd OriFolder/00000026 BlackFolder/00000026" on prompt.

00000026l.jpg


Thanks for everything ^^
 
sergster1 said:
Im sorry but i dont get it... what does this do LOL
The photos you can take in DoA:Dimensions can only be viewed in the game. With this tool you can decrypt them and view them on the PC or any other 3DS.
 
Anyplace where people share their photos? I remember back in the day this series had awesome fansites like DOATEC and Neotaku, but no more
frown.gif
 
Hi guys I've created a video guide, as well as a download package to help people get started.

Video Guide:
[youtube]http://www.youtube.com/watch?v=s0wnO4WJEa8[/youtube]

Download Tools: (FULL CREDIT GOES TO "doadphdec")
www.mediafire.com: DOAD Photo Decrypter.zip

here are a few of mine that I took, you can goto www.doaworld.com/forums/ if you wish to share content with others.


-mariokart64n
 

Site & Scene News

Popular threads in this forum