Hacking RELEASE CertNXtractionPack - Get your Switch cert from a NAND dump!

NANASHI89

Well-Known Member
Member
Joined
May 3, 2012
Messages
2,475
Trophies
1
XP
5,368
Country
United States
Alright, Search/Run cmd.exe , that's a command window...
Untitled.png
 

david watters

Active Member
Newcomer
Joined
Oct 18, 2013
Messages
30
Trophies
1
Age
35
Location
Inwood, Florida
XP
356
Country
United States
im lost on the 02 file

C:\New folder (2)>python 02.PY
Traceback (most recent call last):
File "02.PY", line 144, in <module>
main()
File "02.PY", line 100, in main
E, N = get_pubk(clcert)
File "02.PY", line 58, in get_pubk
clcert_decoder.enter() # Seq, 3 elem
File "C:\Python36-32\lib\site-packages\asn1.py", line 450, in enter
bytes_data = self._read_bytes(length)
File "C:\Python36-32\lib\site-packages\asn1.py", line 541, in _read_bytes
raise Error('Premature end of input.')
asn1.Error: Premature end of input.
 

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
36
XP
273
Country
United States
same response

Sounds like your python got installed incorrectly, or you didn't check the box to create an environment variable... might have to uninstall python, then re-install it and make sure the checkbox for create path/environment variable is checked...
 

Imancol

Otak Productions
Member
Joined
Jun 29, 2017
Messages
1,376
Trophies
0
XP
2,774
Country
Colombia
Did you edit the 03 file and rename cat to type? Try the zip I uploaded...
I got bored of the editing, and the changes you made in CertNXtractionPack.py did not create the files clcert.der and privk.bin after placing the Keys. I will leave the whole pack, edit the .bat changing cat by type and I already create a 4KB file. Just read the Readme.txt

--------------------- MERGED ---------------------------

What's a command window?
on the keyboard press Windows + R and type cmd in the window, press enter

--------------------- MERGED ---------------------------

If you have problems installing dependencies, change "python3" for only "python" (without quotes) in the commands.

--------------------- MERGED ---------------------------

What's a command window?
I do not understand why you are following this thread if you do not know what CMD is. As you obtained PRODINFO.bin ?, it is necessary to decipher your unique certificate and it is only achieved by executing basic commands in CMD in RCM mode or through script.
 

Attachments

  • CertNXtractionPack.rar
    626.1 KB · Views: 304

ut0pia

Member
Newcomer
Joined
Apr 30, 2018
Messages
17
Trophies
0
Age
42
XP
216
Country
France
im lost on the 02 file

C:\New folder (2)>python 02.PY
Traceback (most recent call last):
File "02.PY", line 144, in <module>
main()
File "02.PY", line 100, in main
E, N = get_pubk(clcert)
File "02.PY", line 58, in get_pubk
clcert_decoder.enter() # Seq, 3 elem
File "C:\Python36-32\lib\site-packages\asn1.py", line 450, in enter
bytes_data = self._read_bytes(length)
File "C:\Python36-32\lib\site-packages\asn1.py", line 541, in _read_bytes
raise Error('Premature end of input.')
asn1.Error: Premature end of input.

This happens to me too and fix by extracting PRODINFO.bin from my NAND backup using unique BIS Key
 

scottgl

Well-Known Member
Newcomer
Joined
Jan 4, 2016
Messages
52
Trophies
0
Age
39
XP
151
Country
United States
This doesn't work in producing an unencrypted DER or the private key. Does this only work on firmware version 1.0, or is it supposed to work on all firmware versions? I'm getting the following error from 02_convert_to_der.py:

Traceback (most recent call last):
File "02_convert_to_der.py", line 144, in <module>
main()
File "02_convert_to_der.py", line 100, in main
E, N = get_pubk(clcert)
File "02_convert_to_der.py", line 59, in get_pubk
clcert_decoder.enter() # Seq, 8 elem
File "/usr/local/lib/python3.6/dist-packages/asn1.py", line 447, in enter
if tag.typ != Types.Constructed:
AttributeError: 'NoneType' object has no attribute 'typ'

binwalk clcert.der

DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------

We should be seeing cert info from the above command if this was successful.
 
Last edited by scottgl,

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
36
XP
273
Country
United States
This doesn't work in producing an unencrypted DER or the private key. Does this only work on firmware version 1.0, or is it supposed to work on all firmware versions? I'm getting the following error from 02_convert_to_der.py:

Traceback (most recent call last):
File "02_convert_to_der.py", line 144, in <module>
main()
File "02_convert_to_der.py", line 100, in main
E, N = get_pubk(clcert)
File "02_convert_to_der.py", line 59, in get_pubk
clcert_decoder.enter() # Seq, 8 elem
File "/usr/local/lib/python3.6/dist-packages/asn1.py", line 447, in enter
if tag.typ != Types.Constructed:
AttributeError: 'NoneType' object has no attribute 'typ'

I don't think you used the correct decrypted PRODINFO.bin, you have to have that first...
 

Imancol

Otak Productions
Member
Joined
Jun 29, 2017
Messages
1,376
Trophies
0
XP
2,774
Country
Colombia
I think someone who didnt know what a command prompt was should probably learn the basics before messing about with their console cert.
Well the same I wonder. If you do not know what CMD is, how did you obtain PRODINFO.bin ?. I got it with the latest version of TegraRcmSmash and Payload memloaderv1. It was not easy because I had to dump all the NAND with a text editor and it took me more than 2 hours. Then use HacDiskMount together the keys to dump the RawNand partitions. All that uses CMD or system symbol.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
    rqkaiju2 @ rqkaiju2: i like physical media because it actually feels like you own it. thats why i plan on burning...