[Download] SEEDconv - seeddb.bin generator for use with Decrypt9

Discussion in '3DS - Homebrew Development and Emulators' started by d0k3, Jul 15, 2015.

  1. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,652
    2,659
    Dec 3, 2004
    Gambia, The
    Instructions: Get the file at nand:/data/<console-unique>/sysdata/0001000f/00000000 (only available on FW 9.6, thus only available with a hardmod or on EmuNAND). Copy this to some directory on your PC together with seedconv.exe. Then just drag and drop 00000000 (or multiple different 00000000 files) onto seedconv.exe, and a working seeddb.bin should automagically be generated. If multiple files are used, the seeddb.bin will contain all unique seeds from all files.

    If you drag and drop one or multiple seeddb.bin files (rename them first, must not be called 'seeddb.bin'!), the unique seeds from them will also get added to the newly generated seeddb.bin file. This works also when drag and dropping alongside one or multiple 00000000 files.

    Download: https://github.com/d0k3/SEEDconv/releases
    Source Code: https://github.com/d0k3/SEEDconv

    You're on your own for getting that nand:/data/<console-unique>/sysdata/0001000f/00000000 file - but as I said, you need a hardmod or EmuNAND to dump that from your 9.6.0+ NAND. Also, no seeddb.bin releases in this thread, please, as I fear that won't go well with GBAtemp rules. Share that stuff somewhere else ;). The game specific seeds, by the way, are not console unique, as confirmed by Shadowtrance. However, your 00000000 file may be, so be careful.

    ... and before I forget about it, thanks go to everyone who helped solving this mystery, including @Shadowtrance, @mixups, @key1340 and @k8099.
     
    Last edited by d0k3, Jul 30, 2015
  2. kactusss

    kactusss GBAtemp Regular

    Member
    225
    95
    Dec 10, 2012
    France
    Sorry for my ignorance but what is the purpose of the seeddb.bin file ?
     
  3. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Decrypting games that use the new 9.6 SEED crypto. Without it, there's no decrypting them.
    So no making cia's, editing etc from them.
     
    Games&Stuff, Ridge and kactusss like this.
  4. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,652
    2,659
    Dec 3, 2004
    Gambia, The
    You need it to decrypt some specific titles, such as the Puzzles and Dragons Z demo. Without it, no decryption, CIA conversion, etc... of these title is possible. At the moment there are only a handful of these titles, but there may be more in the future. Edit: Ha, Shadowtrance was faster :).

    This is how you get the discussion to the correct place :D. Bloo Kid 2 seems to be okay (see Shadowtrances reply). Can you further test the decrypted Pony Pets 3D and give a more detailed description? To be pretty honest, I am not that experienced with that stuff (believe it or not :)), so I don't know what the big code.bin could mean. It does sound like a ctrtool problem rather than a SEEDconv or Decrypt9 problem, though (remember, the SEED crypto is pretty new), so I'd first update that to the newest version.
     
    Ridge likes this.
  5. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Your thread, you move the convo here from elsewhere. :P haha Plus I'm tired... need coffee!

    As for the code.bin thing @mixups did you merge the exefs xorpads? I assume there was a norm one and a 7x one? they need to be merged with MEX.py THEN use it with the encrypted exefs.bin. (not sure if you did that or not, just pointing it out).
     
  6. kactusss

    kactusss GBAtemp Regular

    Member
    225
    95
    Dec 10, 2012
    France
    Wow that is really great. Thanks @d0k3 and @Shadowtrance , great work, as usual...
     
  7. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Don't thank me, i didn't do shit except be a guinea pig testing random stuff. haha
    @d0k3 is the wizard here. not me. :D
     
  8. kactusss

    kactusss GBAtemp Regular

    Member
    225
    95
    Dec 10, 2012
    France
    Testing is an essential part :P
     
  9. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,652
    2,659
    Dec 3, 2004
    Gambia, The
    I wouldn't say that I would have gotten anywhere with this without some help :).

    By the way, here's the list of SEED crypto titles from the other thread (found by Shadowtrance):
    http://pastebin.com/fj39z39Y
    If you really intend to collect 'em all, that's not even that much.
     
  10. mixups

    mixups Member

    Newcomer
    27
    11
    May 26, 2015
    United States
    I'm using o3ds fw4.5 with slot0x25KeyX.bin. Do I need to update?
    7x.xorpad is not generated.
    ncchinfo_gen.py of the log here.

    Code:
    Parsing NCSD in file "Pony Pets 3D (Japan).3ds":
      Parsing Main NCCH
      NCCH Offset: 00004000
      Product code: CTR-N-JHDJ
      Partition number: 0
      KeyY:
      Title ID: 0004000000166000
      Format version: 2
      Uses 9.x SEED crypto
    
      ExHeader offset:  00000200
      ExHeader counter: 00040000001660000100000000000000
      ExHeader Megabytes(rounded up): 1
    
      ExeFS offset:  00002C00
      ExeFS counter: 00040000001660000200000000000000
      ExeFS Megabytes(rounded up): 3
    
      RomFS offset:  00211000
      RomFS counter: 00040000001660000300000000000000
      RomFS Megabytes(rounded up): 85
    
    
      Parsing Manual NCCH
      NCCH Offset: 056A0000
      Product code: CTR-P-CTAP
      Partition number: 1
      KeyY:
      Title ID: 000400000FF3FF00
      Format version: 0
      Uses 9.x SEED crypto
    
      RomFS offset:  00001000
      RomFS counter: 000400000ff3ff000300000000000000
      RomFS Megabytes(rounded up): 1
    
    Done!
     
  11. Duo8

    Duo8 I don't like video games

    Member
    3,444
    1,144
    Jul 16, 2013
    Ooooh I missed this whole thing. So that's how they do preloading.
     
  12. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,652
    2,659
    Dec 3, 2004
    Gambia, The
    From there I can only tell that it looks like it doesn't use 7.x crypto (= no slot0x25keyx needed). However, I know there's a specific and rare kind of crypto that cannot be handled by an O3DS (yup, updating won't be of any use). Maybe that's that. Needs confirmation, though.

    Additional info:
    In theory you'd need a slot0x0AkeyX.bin file for that, but don't bother searching as that doesn't exist and even Decrypt9 couldn't handle that now.
     
  13. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    Why Hardmod only? I can simply use my xorpads to decrypt every emunand version.
     
    d0k3 likes this.
  14. Duo8

    Duo8 I don't like video games

    Member
    3,444
    1,144
    Jul 16, 2013
    Maybe N3DS only games?
     
  15. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Valid point for old3ds users, not so much for n3ds users. :(
     
    kactusss likes this.
  16. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    Backup emuNAND, update your n3ds emunand, extract it, decrypt it, restore it.
     
    Last edited by liomajor, Jul 15, 2015
  17. Duo8

    Duo8 I don't like video games

    Member
    3,444
    1,144
    Jul 16, 2013
    You can't get to 9.6
     
  18. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Yeah i know. that's what i meant though, more of a hassle for n3ds hence the need for a hardmod. :P
     
  19. gudenau

    gudenau Largely ignored

    Member
    GBAtemp Patron
    gudenau is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,287
    1,252
    Jul 7, 2010
    United States
    /dev/random
    Neat, now people can "port" new titles.
     
  20. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    Sure, use cia (updateCDN) files to update it to 9.6.0.