Homebrew Question RESTORE PRODINFO

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
At least some of these (likely all of them) are required for online functionality, and they aren't stored anywhere else in the system AFAIK. That's kind of the point of Incognito, if it didn't erase everything used for online identification it wouldn't be doing its job.
In theory it is possible to use certs etc. from another console to spoof that console to go online, but there's no way to make that work on current CFW.
Serial Number and device id can be retrieved from play reports or journal/creport in SYSTEM partition (not on "never used" console obviously). But I think certs are only stored in CAL0.
And yes, I think it's possible to restore certs from another console but you'll have to recalculate the SHA256 hash for the new cert (and cal0 data hash)
 
Last edited by eliboa,

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,316
Trophies
4
Location
Space
XP
13,896
Country
Norway
Serial Number and device id can be retrieved from play reports or journal/creport in SYSTEM partition (not on "never used" console obviously). But I think certs are only stored in CAL0.
And yes, I think it's possible to restore certs from another console but you'll have to recalculate the SHA256 hash for the new cert (and cal0 data hash)
The code for calculating the hashes is in Incognito so that part is easy. But I have a feeling there's more to it than that.
 
  • Like
Reactions: eliboa

MikiFanta

Member
OP
Newcomer
Joined
Aug 14, 2019
Messages
15
Trophies
0
Age
29
XP
102
Country
Italy
Atmosphere backs up PRODINFO.

Maybe Atmos backed it up?

NEVER EVER use incognito on a sysnand.

Your only hope would be to eject the card and use a data recovery package.

In theory, you can use a donor certificate and associated stuff. You would just need to regenerate any checksums etc...

But this is beyond the scope of this thread. It is something I am playing with when I get the time.

But the solution is try and "undelete" it using something like this:

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=2ahUKEwiAgvGx65PkAhU4UxUIHcpJDnoQFjACegQIDBAH&url=https://www.easeus.com/data-recovery/card-recovery-software/sd-card-recovery-freeware.htm&usg=AOvVaw1NaFUFJKysgb484WtXn-dy

If going down this route, STOP USING YOUR SD NOW. EJECT IT. DONT WRITE TO IT AGAIN UNTIL YOU HAVE ATTEMPTED RECOVERY.
I will try to do that, thank you

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

Serial Number and device id can be retrieved from play reports or journal/creport in SYSTEM partition (not on "never used" console obviously). But I think certs are only stored in CAL0.
And yes, I think it's possible to restore certs from another console but you'll have to recalculate the SHA256 hash for the new cert (and cal0 data hash)
So... What do I have to do?

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

Atmosphere backs up PRODINFO.

Maybe Atmos backed it up?

NEVER EVER use incognito on a sysnand.

Your only hope would be to eject the card and use a data recovery package.

In theory, you can use a donor certificate and associated stuff. You would just need to regenerate any checksums etc...

But this is beyond the scope of this thread. It is something I am playing with when I get the time.

But the solution is try and "undelete" it using something like this:

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=2ahUKEwiAgvGx65PkAhU4UxUIHcpJDnoQFjACegQIDBAH&url=https://www.easeus.com/data-recovery/card-recovery-software/sd-card-recovery-freeware.htm&usg=AOvVaw1NaFUFJKysgb484WtXn-dy

If going down this route, STOP USING YOUR SD NOW. EJECT IT. DONT WRITE TO IT AGAIN UNTIL YOU HAVE ATTEMPTED RECOVERY.
I tried, but the program hasn't found the file that I was searching. Thanks anyway.
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
So... What do I have to do?
You can't do anything. Even if you could retrieve S/N & device id from journal, you'll still need a new client cert and the only way to get one is to extract it from another console. Basically, if you loose your prodinfo backup, you're screwed. You need a new Switch to play online (and keep the old one for CFW). You should have made a NAND backup before using a CFW, everybody should.

The code for calculating the hashes is in Incognito so that part is easy. But I have a feeling there's more to it than that.
Yeah me too..
 
  • Like
Reactions: ELY_M

MikiFanta

Member
OP
Newcomer
Joined
Aug 14, 2019
Messages
15
Trophies
0
Age
29
XP
102
Country
Italy
Thanks everyone. I think I will buy a Nintendo Switch Lite for play online and I'll take anyway the "old" switch for play offline games.
 
  • Like
Reactions: ELY_M

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
So... If I have a friend that doesn't want to play online I can take his prodinfo file?
You will not be able to restore the whole partition from another console's prodinfo. I tried, it doesn't work.
It may work if you only restore some parts of CAL0 such as client cert, device id,... but I didn't try. Maybe it will work with incognito's restore feature becauseit does partial restore and it regenerates hashes.
 

intellettuanale

Well-Known Member
Member
Joined
Feb 25, 2017
Messages
151
Trophies
0
Age
32
XP
831
Country
Italy
You will not be able to restore the whole partition from another console's prodinfo. I tried, it doesn't work.
It may work if you only restore some parts of CAL0 such as client cert, device id,... but I didn't try. Maybe it will work with incognito's restore feature becauseit does partial restore and it regenerates hashes.
So, is not possible to unban a console with a prodinfo from another one, right?
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
So, is not possible to unban a console with a prodinfo from another one, right?
This is not what i'm saying. You can't restore the entire PRODINFO partition from another console. I tried to do it, it doesn't work.
What I did was :
- dump then decrypt PRODINFO from console A
- encrypt it using bis keys from console B
- restore PRODINFO to console B

BUT you may be able to unban a console by restoring only some parts of PRODINFO/CAL0 (not the whole partition), basically by replacing the client cert (at least). This is theoretical, i didn't try.
 
Last edited by eliboa,
  • Like
Reactions: intellettuanale

MikiFanta

Member
OP
Newcomer
Joined
Aug 14, 2019
Messages
15
Trophies
0
Age
29
XP
102
Country
Italy
Just installed Photorec. Now I'm trying to restore the file using this program. I'm pretty sure that it will work because it's restoring very old files..
 
  • Like
Reactions: gjimenezf

gjimenezf

Member
Newcomer
Joined
Jun 30, 2016
Messages
21
Trophies
0
Age
39
XP
203
Country
Ecuador
Just installed Photorec. Now I'm trying to restore the file using this program. I'm pretty sure that it will work because it's restoring very old files..
Try to restore the atmosphere folder too, because atmosphere makes backups files of prodinfo in that folder
 

MikiFanta

Member
OP
Newcomer
Joined
Aug 14, 2019
Messages
15
Trophies
0
Age
29
XP
102
Country
Italy
Ok.. The restore of the files is over. All the files that the program has restored have a different name from the original one (fxxxxx).. How can I recognize the file that I want?
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,257
Country
France
Find all files matching the expected size (4 176 896 B), open each file one by one with HxD. If the four first bytes are 0x43414C30 ("CAL0" in string), then it's prodinfo.bin.
 

MikiFanta

Member
OP
Newcomer
Joined
Aug 14, 2019
Messages
15
Trophies
0
Age
29
XP
102
Country
Italy
Find all files matching the expected size (4 176 896 B), open each file one by one with HxD. If the four first bytes are 0x43414C30 ("CAL0" in string), then it's prodinfo.bin.
I don't have any files with that size (4176,896 Kb) ... Do you think that the program hasn't found prodinfo?

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

I found a strange file... There are things like "Stuck dump" "tsl dump"... Is that the file?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    @SylverReZ, RC Pro AM was made by Rare, and that explains why I liked it. Just learned the other day about a game I loved that was made by Rare and I was surprised lol
  • K3Nv2 @ K3Nv2:
    I was playing need for speed remastered and said to myself this is a nice Forza remaster
  • Psionic Roshambo @ Psionic Roshambo:
    https://en.wikipedia.org/wiki/List_of_video_games_developed_by_Rare Not all of them are awesome but man the hits on that list.
  • Psionic Roshambo @ Psionic Roshambo:
    Oh snap Super Offroad was by them too? lol damn
    +1
  • BakerMan @ BakerMan:
    Today I learned that the creators of the Donkey Kong games also made Sea of Thieves
  • BakerMan @ BakerMan:
    why do i feel the sudden urge to start singing pirate's scorn from the donkey kong country cartoon?
  • BigOnYa @ BigOnYa:
    Are you being for real, cause that's hard to believe, DK is Nintendo and made in japan, Sea of thieves was from Microsoft, in America. I'm not calling you a liar, just didn't know.
  • BigOnYa @ BigOnYa:
    Ok yes they were both made by Rare, but DK was from Rare back then, Rare now is owned by MS. So makes since.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    They even developed a LJN game.... lol
  • K3Nv2 @ K3Nv2:
    It was pretty rare
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder what deal with Satan LJN worked to get Rare to make that one...
  • BigOnYa @ BigOnYa:
    I remember couple years ago, they announced they were working on a Perfect Dark remake, wonder what ever happen with that?
  • K3Nv2 @ K3Nv2:
    It went into the darkness
  • BigOnYa @ BigOnYa:
    Me and buddies used to play the hell out of Perfect Dark on N64, that and Goldeneye, was the first real PvP shooter games I remember
  • BigOnYa @ BigOnYa:
    4-way split screen on a tiny 19" TV, lol
  • K3Nv2 @ K3Nv2:
    Did you share joysticks also
  • BigOnYa @ BigOnYa:
    Nuh we had the 4 controller add on thingy for n64. Duh I just got your joke, lol
  • K3Nv2 @ K3Nv2:
    So you touched ends
  • BigOnYa @ BigOnYa:
    Yea, but being in the boy scouts, they forced us to
  • K3Nv2 @ K3Nv2:
    Chopped down some wood for the scout master
  • BigOnYa @ BigOnYa:
    Big Gay Al was our Scout leader.
  • BigOnYa @ BigOnYa:
    I was actually in the scouts for 1 week, til they assigned me homework, n I was like f this, and quit, I was like 10 yrs old. And no I didn't join the girl Scouts.
  • K3Nv2 @ K3Nv2:
    Was the homework about getting to know the scout leaders
  • BigOnYa @ BigOnYa:
    I had to memorize how to tell 15 different trees species, I think, been awhile
    BigOnYa @ BigOnYa: I had to memorize how to tell 15 different trees species, I think, been awhile