Dead Or Alive: Dimensions Photo Decrypter

Discussion in '3DS - Flashcards & Custom Firmwares' started by doadphdec, Jun 13, 2011.

Jun 13, 2011
  1. doadphdec
    OP

    Newcomer doadphdec Newbie

    Joined:
    Jun 13, 2011
    Messages:
    8
    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: [​IMG] [​IMG]

    guide: http://gbatemp.net/t297207-dead-or-alive-d...t&p=3723333
    update: http://gbatemp.net/t297207-dead-or-alive-d...t&p=3818341
     


  2. Takeshi

    Member Takeshi GBAtemp Addict

    Joined:
    Jun 1, 2004
    Messages:
    1,946
    Country:
    Germany
    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?
     
  3. TwinRetro

    Global Moderator TwinRetro Don't start nothin', Won't be nothin'

    Joined:
    Aug 29, 2008
    Messages:
    6,181
    Location:
    Las Vegas, NV
    Country:
    United States
    ZOMG REPORTED FOR CHILD PORNOGRAPHY!

    Just yanking ya. That's pretty awesome.
     
  4. doadphdec
    OP

    Newcomer doadphdec Newbie

    Joined:
    Jun 13, 2011
    Messages:
    8
    Country:
    United States
    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
     
  5. Takeshi

    Member Takeshi GBAtemp Addict

    Joined:
    Jun 1, 2004
    Messages:
    1,946
    Country:
    Germany
    I just took 73 black photos (apparently the maximum number) and saved them. [​IMG]

    Afterwards I converted the normal photos without problems.
    Warning: Spoilers inside!
    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.

    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!
     
  6. doadphdec
    OP

    Newcomer doadphdec Newbie

    Joined:
    Jun 13, 2011
    Messages:
    8
    Country:
    United States
    MPOs look nice

    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 [​IMG]
     
  7. doadphdec
    OP

    Newcomer doadphdec Newbie

    Joined:
    Jun 13, 2011
    Messages:
    8
    Country:
    United States
    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
     
  8. Blaze163

    Member Blaze163 The White Phoenix's purifying flame.

    Joined:
    Nov 19, 2008
    Messages:
    3,767
    Location:
    Coventry, UK
    Country:
    United Kingdom
    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...
     
  9. MG4M3R

    Member MG4M3R GBAtemp Regular

    Joined:
    Mar 27, 2007
    Messages:
    276
    Country:
    Brazil
    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
     
  10. Takeshi

    Member Takeshi GBAtemp Addict

    Joined:
    Jun 1, 2004
    Messages:
    1,946
    Country:
    Germany
    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.
     
  11. TCJJ

    Member TCJJ GBAtemp Regular

    Joined:
    May 5, 2009
    Messages:
    288
    Location:
    New Zealand
    Country:
    New Zealand
    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).
     
  12. Takeshi

    Member Takeshi GBAtemp Addict

    Joined:
    Jun 1, 2004
    Messages:
    1,946
    Country:
    Germany
    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.
     
  13. doadphdec
    OP

    Newcomer doadphdec Newbie

    Joined:
    Jun 13, 2011
    Messages:
    8
    Country:
    United States
    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
     
  14. MG4M3R

    Member MG4M3R GBAtemp Regular

    Joined:
    Mar 27, 2007
    Messages:
    276
    Country:
    Brazil
    This:

    [​IMG]

    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.

    [​IMG]

    Thanks for everything ^^
     
  15. sergster1

    Member sergster1 GBAtemp Fan

    Joined:
    Sep 12, 2009
    Messages:
    472
    Location:
    New York
    Country:
    United States
    Im sorry but i dont get it... what does this do LOL
     
  16. Takeshi

    Member Takeshi GBAtemp Addict

    Joined:
    Jun 1, 2004
    Messages:
    1,946
    Country:
    Germany
    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.
     
  17. synce

    Member synce だいこんちゃんのだいふぁん

    Joined:
    Nov 5, 2009
    Messages:
    487
    Country:
    United States
    Anyplace where people share their photos? I remember back in the day this series had awesome fansites like DOATEC and Neotaku, but no more [​IMG]
     
  18. mariokart64n

    Newcomer mariokart64n Newbie

    Joined:
    Dec 6, 2008
    Messages:
    4
    Country:
    Canada
    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.
    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

    -mariokart64n
     
  19. madri1

    Member madri1 GBAtemp Regular

    Joined:
    Feb 15, 2006
    Messages:
    170
    Country:
    France
    can some one post both encrypted files (the one black and the one original)
     
  20. Takeshi

    Member Takeshi GBAtemp Addict

    Joined:
    Jun 1, 2004
    Messages:
    1,946
    Country:
    Germany
    There you go: http://dellicious.de/misc/DoAD.zip
    The zip file contains the original and black files of the 4 files, which I converted (results can be seen on the first page of this thread).
     

Share This Page