Hacking Why "adding or removing 2" from byte 0x0F of tiket.tik ? Answer and exact "formula".

asper

Well-Known Member
OP
Member
Joined
May 14, 2010
Messages
942
Trophies
1
XP
2,030
Country
United States
haha ok i read your post a few times, it makes a bit more sense now (if you are actually correct, since like you said you are not 100% but that it seems to be right)


but, we generate the signature ourselves? why can we do this, wouldn't this need keys only nintendo has?

eventually i will stop questioning and start enjoying ;)
(when my wii u gets here in a few months)

The signature is already there, inside the title.tik, gently calculated by Nintendo, we do not touch it, we only "interact" with what I suppose is a xor "mask". You should thank the genius who identified a correlation between byte 0x01 and 0x0F !! Maybe he was able to extract a legit eshop/nus title.tik from the console and check it against the wud title.tik ? Dunno but... a big thank to him :)
 
  • Like
Reactions: cearp

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,737
Trophies
2
XP
8,577
Country
Tuvalu
The signature is already there, inside the title.tik, gently calculated by Nintendo, we do not touch it, we only "interact" with what I suppose is a xor "mask". You should thank the genius who identified a correlation between byte 0x01 and 0x0F !! Maybe he was able to extract a legit eshop/nus title.tik from the console and check it against the wud title.tik ? Dunno but... a big thank to him :)
so if we checked the data against the signature ourselves, it would come back false, because nintendo changes that value at 0xF before verifying? :blink:
i think i get it now... ha
yeah, thanks to whoever discovered this!
 
  • Like
Reactions: XRaTiX

asper

Well-Known Member
OP
Member
Joined
May 14, 2010
Messages
942
Trophies
1
XP
2,030
Country
United States
so if we checked the data against the signature ourselves, it would come back false, because nintendo changes that value at 0xF before verifying? :blink:
i think i get it now... ha
yeah, thanks to whoever discovered this!

I suppose (just speculation confirmed by what you can read in the 1st post) that bytes from 0x04 to 0x103 are "xormasked" someway; under that xormask there is the real certificate. I hope some IDA-guru will explain that far better than me.
 
Last edited by asper,
  • Like
Reactions: cearp

pedro702

Well-Known Member
Member
Joined
Mar 3, 2014
Messages
12,731
Trophies
2
Age
34
XP
8,740
Country
Portugal
Anyone has the capability to code a homebrew app to do a ticket dumper from wiiu?

i would want to get some VC titles tickets, i own some games but since we cant get tickets from wuds to use in VC the only option would be for anyone with a VC title to dump the ticket right?
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France

asper

Well-Known Member
OP
Member
Joined
May 14, 2010
Messages
942
Trophies
1
XP
2,030
Country
United States
Anyone has the capability to code a homebrew app to do a ticket dumper from wiiu?

i would want to get some VC titles tickets, i own some games but since we cant get tickets from wuds to use in VC the only option would be for anyone with a VC title to dump the ticket right?

It is actually not possible but i think, thanks to iosu kernel exploit and great coders like @dimok and many others, it will be soon (very soon) a reality ! ;)
 
  • Like
Reactions: AboodXD

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,737
Trophies
2
XP
8,577
Country
Tuvalu
if we can dump games and if we can install files to nand (we can) - it must be possible to dump ticket files from nand and from disk.
the 5.5.1 spoof installs files to nand, right?
and we can dump disks, so i guess the code is out there.

-oops, simply not the permission to access where the tickets are in nand, ok that makes sense.

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

we don't have access to the folder where tickets are stored.
Maybe with IOSU Kernel hack it could be possible, but I don't think anyone made a NAND access homebrew yet.
although yeah what about the spoofer? is that in a 'safe' area of nand or something?
 
  • Like
Reactions: asper

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
the spoofer is WUP installer. WUP installer is not accessing NAND at all.
it's hooking to the official install title function and tells it to install what's located on SD:/install/ instead of NAND/<temporary download folder>.

That function is responsible for accessing NAND and gets enough rights to do it from IOSU kernel.
WUP installer doesn't get any access rights, so it can't read from nand where the titles are installed.


Game launching process doesn't have enough rights from IOSU to access the disc directly, so the game dumper is not dumping the disc content.
It's using PPC Kernel to access the mounted virtual link "/vol" at game launch which the console merge with /content/ from the disc, nand or usb and the update folder from NAND or usb, savegame folder, DLC.
from the /vol/ we also don't have access to the ticket.
 
  • Like
Reactions: cearp

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
Nobody thought about something this simple?
We only thought about the PPC kernel permission, IOSU access rights, etc.
Focusing on the kernel rights to disable the signature check, we didn't try to temper the signature itself.
On Wii, they made a mistake and we could modify the signature, but it was quickly fixed, so they shouldn't have reproduce this mistake. this time, it's a different issue, they didn't make the "same" mistake, but another one which is maybe not their fault, but the way RSA works.

To me the big mistake they did is using the same title key for both disc and eshop version, allowing NUS file decryption with disc ticket, allowing users to download games directly from their own servers (who need torrent website when you can take them at the source?).
 

asper

Well-Known Member
OP
Member
Joined
May 14, 2010
Messages
942
Trophies
1
XP
2,030
Country
United States
Well, it is not a real "tampering", it is "converting" a legit title.tik in another legit title.tik; I am really curious to check an original NUS title.tik with a WUD (system\02 or whatever) title.tik of the same game ;)
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
They didn't expect someone to find their common key, etc.
But that would have been another layer of security they could use. like I said on another thread, that would probably be more hassle to manage two different TitleID and titlekey for the same game (duplicated updates or DLC to store on their servers)
they probably did it by convenience
 
  • Like
Reactions: asper

jbuck1975

Well-Known Member
Member
Joined
Dec 28, 2015
Messages
952
Trophies
0
Age
48
XP
619
Country
United States
Where does the validation to the games title.tik come from? Is there more code in the tik that compares to the wii u or does it connect to the internet and verify the code?
Can some compare different title.tik and find a like number or are ALL nintendo game codes on the wii u to campare and match?
I'm just throwing ideas out.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: I need a remote controlled mower, so I can sit on the couch and do both.