ShaytheStar

3TEETH fan
Member
Joined
Apr 30, 2018
Messages
105
Trophies
0
Age
23
Location
my bed
XP
399
Country
United States
-k keys.ini -t nax0 --sdseed="your_sdseed_here_without_quotation_marks" --sdpath="/registered/0000008E/db0efb9c3352208b5249eaf40e9d442e.nca" --plaintext=game.nca "H:/Nintendo/Contents/registered/0000008E/db0efb9c3352208b5249eaf40e9d442e.nca/00"

Here you are, just make sure keys.ini is in the same directory with the hactool application and stuff with it.
It's very stubborn.
 

Attachments

  • Screen Shot 2018-07-01 at 2.49.13 PM.png
    Screen Shot 2018-07-01 at 2.49.13 PM.png
    6.2 KB · Views: 323

der:Tom

Well-Known Member
Member
Joined
Oct 3, 2008
Messages
187
Trophies
1
XP
682
Country
Austria
Hey guys, prob a stupid question but can someone help me with the SD Seed?

"Copy the hex representation of it and put it somewhere for later"

What excactly is meant by this? The 32 hex digits?

"Search for the contents of private"

content is 7 hex digits

"Copy the 16 bytes after that. This is your SD seed"

After the content of private the file is empty.

Can someone please explain me how i can get my SD Seed?
 

FoxofGrey

Well-Known Member
Newcomer
Joined
Jul 1, 2016
Messages
92
Trophies
0
XP
396
Country
United States
Hey guys, prob a stupid question but can someone help me with the SD Seed?

"Copy the hex representation of it and put it somewhere for later"

What excactly is meant by this? The 32 hex digits?

"Search for the contents of private"

content is 7 hex digits

"Copy the 16 bytes after that. This is your SD seed"

After the content of private the file is empty.

Can someone please explain me how i can get my SD Seed?
So, if you're looking at HxD, one line represents 16 bytes. 1 Hexadecimal letter, like let's say B, is a half of a byte. So you'll have 16 sets of two Hexadecimal characters like this, for example:
A1 56 31 4D 8A 09 7A 3C 01 90 AC B1 51 0A 1B 11
This is what your SD Key MIGHT look like, lengthwise. Just get rid of the spaces in-between though.


But, yes, there will be 16 bytes within the hex contents of the "private" file. You will need to dump your eMMC and use HacDiskMount to mount the "SYSTEM" portion. Navigate to the directory (folder) the github tutorial mentions within the SYSTEM partition, open that file up with the same hex editor, and use "ctrl-f" to find the contents of the Private file in hex representation. The 16 bytes (the line below) is your SD Key. Do not show it to anyone.


View attachment 134165
Help please, im losing my mind T.T
You see the slashes in your directory paths for sdpath and the "00" file? Reverse those to be "/" slashes due to how Hactool interprets the slashes.
And make sure your key file is in the "ini" format (so make it keys.ini rather than keys.txt, as that'll have the best result).
 
Last edited by FoxofGrey,

PeterGemp

Well-Known Member
Member
Joined
Jun 28, 2018
Messages
118
Trophies
0
XP
269
Country
United States
Ah yes, you're doing gods work, too, @FoxofGrey. I also explained it somewhere else. I hope you're okay if I add my wording for visibility:

In necessary detail, since the guide (https://gist.github.com/khang06/84aabeac507fa99a676d22bb6120cea8#file-0-sd-guide-md) is too god damn vague at the most inconvenient times:

"The hex representation of private", the only line of 16 Bytes in Hex within "private"- aka. "THE CONTENTS OF PRIVATE", for example:

F6 67 A5 9E 8B 62 65 65 AF D5 FF 0D 9E 80 15 8E

THEN open "save\8000000000000043" from your mounted NAND system partition that you dumped beforehand, right?
The search for "the content of "private" " within "save\8000000000000043":
This means nothing else than to look for the hex digit combination from "private" within "save\8000000000000043".
Make sure that you are searching for Hex-values in the search (see open tab in "Find"-search mask, HxD editor).

You then copy the next line that come after your matched search result (=private).

F6 67 A5 9E 8B 62 65 65 AF D5 FF 0D 9E 80 15 8E <= Aforementioned "The hex representation of private", only one line of 16 Bytes in Hex - aka. "THE CONTENTS OF PRIVATE"
A5 6E A5 5E 86 62 35 6D AF D5 F2 0C 9E F0 15 8E <= YOUR SD SEED, the line following "the contents of private"

Lose the spaces and these 16 bytes become your SD Seed: A56EA55E8662356DAFD5F20C9EF0158E
 
Last edited by PeterGemp,

huma_dawii

Well-Known Member
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,270
Country
United States
So, if you're looking at HxD, one line represents 16 bytes. 1 Hexadecimal letter, like let's say B, is a half of a byte. So you'll have 16 sets of two Hexadecimal characters like this, for example:
A1 56 31 4D 8A 09 7A 3C 01 90 AC B1 51 0A 1B 11
This is what your SD Key MIGHT look like, lengthwise. Just get rid of the spaces in-between though.


But, yes, there will be 16 bytes within the hex contents of the "private" file. You will need to dump your eMMC and use HacDiskMount to mount the "SYSTEM" portion. Navigate to the directory (folder) the github tutorial mentions within the SYSTEM partition, open that file up with the same hex editor, and use "ctrl-f" to find the contents of the Private file in hex representation. The 16 bytes (the line below) is your SD Key. Do not show it to anyone.



You see the slashes in your directory paths for sdpath and the "00" file? Reverse those to be "/" slashes due to how Hactool interprets the slashes.
And make sure your key file is in the "ini" format (so make it keys.ini rather than keys.txt, as that'll have the best result).


I'll try that.
 

huma_dawii

Well-Known Member
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,270
Country
United States
So, if you're looking at HxD, one line represents 16 bytes. 1 Hexadecimal letter, like let's say B, is a half of a byte. So you'll have 16 sets of two Hexadecimal characters like this, for example:
A1 56 31 4D 8A 09 7A 3C 01 90 AC B1 51 0A 1B 11
This is what your SD Key MIGHT look like, lengthwise. Just get rid of the spaces in-between though.


But, yes, there will be 16 bytes within the hex contents of the "private" file. You will need to dump your eMMC and use HacDiskMount to mount the "SYSTEM" portion. Navigate to the directory (folder) the github tutorial mentions within the SYSTEM partition, open that file up with the same hex editor, and use "ctrl-f" to find the contents of the Private file in hex representation. The 16 bytes (the line below) is your SD Key. Do not show it to anyone.



You see the slashes in your directory paths for sdpath and the "00" file? Reverse those to be "/" slashes due to how Hactool interprets the slashes.
And make sure your key file is in the "ini" format (so make it keys.ini rather than keys.txt, as that'll have the best result).


OMG IT WORKED!!!! D:
 

Mat37

Well-Known Member
Member
Joined
Dec 3, 2016
Messages
790
Trophies
0
Age
22
Location
Does it matter ?
XP
1,379
Country
France
I got this when loading get_titlekeys :
F:\Switch\SD>"C:\Program Files (x86)\Python27\python.exe" get_titlekeys.py PRODINFO.bin common_ticketblob.bin
Traceback (most recent call last):
File "get_titlekeys.py", line 4, in <module>
from Crypto.Cipher import AES
ImportError: DLL load failed: %1 nÆest pas une application Win32 valide.
 

huma_dawii

Well-Known Member
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,270
Country
United States
I got this when loading get_titlekeys :
F:\Switch\SD>"C:\Program Files (x86)\Python27\python.exe" get_titlekeys.py PRODINFO.bin common_ticketblob.bin
Traceback (most recent call last):
File "get_titlekeys.py", line 4, in <module>
from Crypto.Cipher import AES
ImportError: DLL load failed: %1 nÆest pas une application Win32 valide.
You need to install crypto via pip command

pip install pycrypto

and to install that you need Visual Basic C++ 9.0.0 or something like that....
 

supermariorick

Well-Known Member
Member
Joined
Jun 18, 2010
Messages
640
Trophies
1
XP
816
Country
United States
Ah yes, you're doing gods work, too, @FoxofGrey. I also explained it somewhere else. I hope you're okay if I add my wording for visibility:

In necessary detail, since the guide (https://gist.github.com/khang06/84aabeac507fa99a676d22bb6120cea8#file-0-sd-guide-md) is too god damn vague at the most inconvenient times:

"The hex representation of private", the only line of 16 Bytes in Hex within "private"- aka. "THE CONTENTS OF PRIVATE", for example:

F6 67 A5 9E 8B 62 65 65 AF D5 FF 0D 9E 80 15 8E

THEN open "save\8000000000000043" from your mounted NAND system partition that you dumped beforehand, right?
The search for "the content of "private" " within "save\8000000000000043":
This means nothing else than to look for the hex digit combination from "private" within "save\8000000000000043".
Make sure that you are searching for Hex-values in the search (see open tab in "Find"-search mask, HxD editor).

You then copy the next line that come after your matched search result (=private).

F6 67 A5 9E 8B 62 65 65 AF D5 FF 0D 9E 80 15 8E <= Aforementioned "The hex representation of private", only one line of 16 Bytes in Hex - aka. "THE CONTENTS OF PRIVATE"
A5 6E A5 5E 86 62 35 6D AF D5 F2 0C 9E F0 15 8E <= YOUR SD SEED, the line following "the contents of private"

Lose the spaces and these 16 bytes become your SD Seed: A56EA55E8662356DAFD5F20C9EF0158E

you can actually skip mounting a nand dump as you can just use the memloader payload to access the Switch's filesystem and hacdiskmount to mount it as a drive on the computer.
 
  • Like
Reactions: PeterGemp

supermariorick

Well-Known Member
Member
Joined
Jun 18, 2010
Messages
640
Trophies
1
XP
816
Country
United States
also if you can't get hacdiskmount to run because you dont have x64 Windows then you can use @ihaveamac 's SwitchFS with Winfsp for Windows and FUSE for MacOS (requires latest python 3 and latest vcredist-x86 if u dont have x64 for Windows or Xcode for MacOS)

oh yeah and you also need visual studio c++ build tools which the readme has a deprecated link and so you'll have to google the installation package
 
Last edited by supermariorick,
  • Like
Reactions: hippy dave

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://www.ebay.com/itm/386617469929?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=2T8UwYf_Qse&...