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

Imancol

Otak Productions
Member
Joined
Jun 29, 2017
Messages
1,376
Trophies
0
XP
2,774
Country
Colombia
1) My script
2) 02_convert_to_der.py
3) 03_save_as_pfx.bat

(you may have to modify the 03 to use type instead of cat if you don't have mingw installed)

Code:
openssl x509 -inform DER -in clcert.der -outform PEM -out clcert.pem
openssl rsa -inform DER -in privkey.der -outform PEM -out privkey.pem
type clcert.pem privkey.pem > nx_tls_client_cert.pem
openssl pkcs12 -export -in nx_tls_client_cert.pem -out nx_tls_client_cert.pfx -passout pass:switch
del privk.bin
del clcert.der
del privkey.der
del clcert.pem
del privkey.pem
del nx_tls_client_cert.pem
import binascii, sys, random, asn1
ModuleNotFoundError: No module named 'asn1'

Install ans1 with the command "pip install asn1" but I get an error.

Failed to read Private Key from privk.bin!
 
Last edited by Imancol,

Imancol

Otak Productions
Member
Joined
Jun 29, 2017
Messages
1,376
Trophies
0
XP
2,774
Country
Colombia
Gotta be able to install ans1... google why you aren't able to install the module...
This is what I did ...

Requirements:
Python and dependencies (asn1 and pycrypto)
PRODINFO.bin of your RawNAND
CertNXtractionPack
CertNXtractionPack.py


Guide:
Download everything and decompress.
Run CMD and install the Python dependencies.
Move your PRODINFO.bin to the CertNXtractionPack folder.
Move your CertNXtractionPack.py to the CertNXtractionPack folder.
edit CertNXtractionPack.py and place your Keys (Or use the first four digits to find the correct Keys)
Run CertNXtractionPack.py in your CMD window
Run 02_convert_to_der.py in your CMD window
Run 03_save_as_pfx.bat in your CMD window

You should have a folder called Out with the nx_tls_client_cert.pfx

It is important to do all this in a CMD window and not just running the script.

Note: I still appear nx_tls_client_cert.pfx with 0KB Solution?
 
Last edited by Imancol,

ut0pia

Member
Newcomer
Joined
Apr 30, 2018
Messages
17
Trophies
0
Age
42
XP
216
Country
France
It worked like a charm and i was able to download my purchased digital copy of Bayoneta.
Now I need a tuto to restore it on my sdcard :D
 

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
36
XP
273
Country
United States
This is what I did ...

Requirements:
Python and dependencies (asn1 and pycrypto)
PRODINFO.bin of your RawNAND
CertNXtractionPack
CertNXtractionPack.py


Guide:
Download everything and decompress.
Run CMD and install the Python dependencies.
Move your PRODINFO.bin to the CertNXtractionPack folder.
Move your CertNXtractionPack.py to the CertNXtractionPack folder.
edit CertNXtractionPack.py and place your Keys (replace the Hash with the real Keys)
Run CertNXtractionPack.py in your CMD window
Run 02_convert_to_der.py in your CMD window
Run 03_save_as_pfx.bat in your CMD window

You should have a folder called Out with the nx_tls_client_cert.pfx

It is important to do all this in a CMD window and not just running the script.

Note: I still appear nx_tls_client_cert.pfx with 0KB Solution?

Did you edit the 03 file and rename cat to type? Try the zip I uploaded...
 

NANASHI89

Well-Known Member
Member
Joined
May 3, 2012
Messages
2,475
Trophies
1
XP
5,368
Country
United States
Run python3 -m pip install pycrypto
Untitled.png
 

Gnarmagon

Noob <3
Member
Joined
Dec 12, 2016
Messages
647
Trophies
0
Age
22
XP
794
Country
Germany
In that window, type...

pip install -m pycrypto
NO,

this is the python interpreter....

do the following:

you can exit by typing: "exit()"
then just type pip install pycrypto
OR
pip install pycryptodome

btw you seem to not know that the -m option is for python so it knows that you want to call the pip module and the correct command should be:

python -m pip install pycrypto

please test it before posting ._.
 
  • Like
Reactions: Subtle Demise

SocraticBliss

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

this is the python interpreter....

do the following:

you can exit by typing: "exit()"
then just type pip install pycrypto
OR
pip install pycryptodome

btw you seem to not know that the -m option is for python so it knows that you want to call the pip module and the correct command should be:

python -m pip install pycrypto

please test it before posting ._.

Bah calm down, mistakes happen :P
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • 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."
    +2
  • 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.
    +1
  • 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
    +1
  • 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
    +1
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
  • SylverReZ @ SylverReZ:
    @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage shiz.
    +1
  • AncientBoi @ AncientBoi:
    [squeezes @SylverReZ onto a physical media, then archives you in my old stuff box] :tpi::rofl2::tpi:
    +1
  • BakerMan @ BakerMan:
    guys, should i change my pfp to one of these or keep it the same?
    iu

    iu

    (i guess i could change it to one of my other pfps too, but i just want to see what you guys think first)
  • SylverReZ @ SylverReZ:
    @BakerMan, Up to you.
  • BakerMan @ BakerMan:
    smug sonic time lmao
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Chronic The HempHog
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=EtapU5nI6G4 +1