Hacking JNUSTool - NUSGrabber and CDecrypt combined!

ANTONIOPS

Well-Known Member
Member
Joined
Jan 15, 2016
Messages
126
Trophies
0
Age
32
XP
862
Country
Spain
You can provide the key via commandline:
java -jar JNUSTool.jar TITLEID KEY
When you wrap this into a batchfile, you have what you want ;)


WoW that's a faster way and it works, thanks.


EDIT: Is there any way of skipping the window opening and download everything without having to press the Download button?
 
Last edited by ANTONIOPS,

Friend of Sonic

Member
Newcomer
Joined
Dec 13, 2013
Messages
22
Trophies
0
Age
37
XP
128
Country
United States
If I only see one version number and latest in the dropdown (such as "17, Latest") does that mean the vanilla version of the game is most up to date, and there was never a title update? Just trying to figure out if there is a best way to try to gauge what titles need an update.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
@Maschell, I'm trying to download a system file but got an error about UTF8.
I'm using latest release (as of today, I just tried the link on the first post).
I didn't have any issue with all other system files I tried to download, only this one is giving an error.

Code:
E:\Emulateurs\Nintendo\Wii-U\Utils\JNUS Tool (Maschell)>java -jar "JNUSTool 2016-05-10.jar" 0005001b10059200 -dlEncrypted
JNUSTool 0.0.7 - alpha - by Maschell

No cached TMD found.
Getting missing tmd from Server!
No cached ticket found.
getting missing ticket
No cached FST (0000004e) found.
Getting FST from server.
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at de.mas.jnustool.NUSTitle.readMeta(NUSTitle.java:242)
        at de.mas.jnustool.NUSTitle.<init>(NUSTitle.java:184)
        at de.mas.jnustool.Starter.main(Starter.java:61)
Exception in thread "main" java.lang.NullPointerException
        at de.mas.jnustool.NUSTitle.<init>(NUSTitle.java:186)
        at de.mas.jnustool.Starter.main(Starter.java:61)


I also tried to download it with NUSGrabber and use the tmp_0005001b10059200 folder but there is the same error.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
thank you.

now I still have an issue with that title.

without the tmp_ folder
Code:
E:\Emulateurs\Nintendo\Wii-U\Utils\JNUS Tool (Maschell)>java -jar "JNUSTool 2016-08-23.jar" 0005001b10059200
JNUSTool 0.0.7 - alpha - by Maschell

No cached TMD found.
Getting missing tmd from Server!
No cached ticket found.
getting missing ticket
No cached FST (0000004e) found.
Getting FST from server.
Error while parsing the meta files
Total Size of Content Files: 0.0 MB
Total Size of Decrypted Files: 8.1 MB
Entries: 8
Files: 5
Files in NUSTitle: 5
Content 00000003 missing. Downloading the files from the server
Content 00000001 missing. Downloading the files from the server
Downloading:     8,02 MB /meta/WUP-N-HASP-EUR.bfma
Downloading:     0,00 MB /code/app.xml
Content 00000002 missing. Downloading the files from the server
Downloading:     0,06 MB /meta/iconTex.tga
Downloading:     0,00 MB /code/cos.xml
Downloading:     0,01 MB /meta/meta.xml
checksum failed
B72FFA01061B438F083E2ACFBA4225610CF1ED86
0000000000000000000000000000000000000000
java.lang.IllegalArgumentException: checksumfail
        at de.mas.jnustool.util.Decryption.decryptFileChunkHash(Decryption.java:137)
        at de.mas.jnustool.util.Decryption.decryptFileHash(Decryption.java:232)
        at de.mas.jnustool.util.Downloader.downloadAndDecrypt(Downloader.java:67)
        at de.mas.jnustool.FEntry.downloadAndDecrypt(FEntry.java:199)
        at de.mas.jnustool.FEntryDownloader.call(FEntryDownloader.java:28)
        at de.mas.jnustool.FEntryDownloader.call(FEntryDownloader.java:1)
        at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(Unknown Source)
        at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
        at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
        at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
0005001B10059200 connection failed.
Done!


with the tmp_ folder:
Code:
E:\Emulateurs\Nintendo\Wii-U\Utils\JNUS Tool (Maschell)>java -jar "JNUSTool 2016-08-23.jar" 0005001b10059200
JNUSTool 0.0.7 - alpha - by Maschell

Using cached TMD.
Using cached cetk.
Using cached FST
Error while parsing the meta files
Total Size of Content Files: 0.0 MB
Total Size of Decrypted Files: 8.1 MB
Entries: 8
Files: 5
Files in NUSTitle: 5
Content 00000001 missing. Downloading the files from the server
Decrypting:     0,01 MB /meta/meta.xml
Downloading:     0,00 MB /code/app.xml
Decrypting:     0,06 MB /meta/iconTex.tga
Content 00000002 missing. Downloading the files from the server
Decrypting:     8,02 MB /meta/WUP-N-HASP-EUR.bfma
Downloading:     0,00 MB /code/cos.xml
checksum failed
B72FFA01061B438F083E2ACFBA4225610CF1ED86
0000000000000000000000000000000000000000
Done!

WUP-N-HASP-EUR.bfma located in meta folder is 0 byte instead of 8.02MB
 

malikoman

Active Member
Newcomer
Joined
Sep 29, 2016
Messages
33
Trophies
0
Age
34
XP
69
Country
Uruguay
Hi guys,

I have a really low user level knowledge about things, not a programmer or hacker of sorts, and I've been reading around, but I just don't get how to use this.
I managed to download everything and put the common key for Super Smash for Wii U (EUR version) in the "config" file.
After that, I opened the JAR file (which doesn't look totally like the pictures) and click on the 3 different buttons.

Open FST - does nothing, I also don't know what FST means ._.
Download META - immediately shows a pop up saying "Finished"
Download Encrypted Files - starts downloading a bunch of files into a "tmp_0005000E10145000" folder, but I have no clue as to what to do with that.

Is there a way for me to find a basic guide for this? Or an alternative. I just want to update my game :/

Thanks in advance!
 

EclipseSin

Ignorant Wizard
Member
Joined
Apr 1, 2015
Messages
2,063
Trophies
0
Age
35
Location
221b Baker Street
XP
1,726
Country
United Kingdom

Open FST - Open the File System Table (the folder structure) of a selected title.
Download META - Downloads the meta folder only for the selected title.
Download Encrypted Files - Downloads game files for selected from nus but doesn't extract them.

To extract the files in (example) tmp_0005000E10145000, you must use CDecrypt or let JNUSTool do the work.

CDecrypt is a command line tool (the black DOS prompt looking program on Windows). It requires the executable to be in the folder with the encrypted files for easiest usage.
Here is an example pic of CDecrypt. I believe JNUSTool also supports extracting downloaded files now, but I have not used it in a while. The usage is probably in this thread somewhere. Here's an example pic of cdecrypt though.

jVxVVNI.png


ckey.bin is a file containing the common key as hex (not a txt file), the other two files are part of the encrypted files download, unless it is a full game. They you will need to modify the title.tik (modify one from any update and copy to the games encrypted files folder) to contain the right key for decryption .


If you use Open FST on a selected title such as an update, you will be able to download the extracted files instead of the encrypted ones. It should open a new window with a folder structure and checkboxes. Check the boxes of files you want, and click the download button.

@Maschell might need to correct me, but his comment at the top of the page, java -jar JNUSTool.jar TITLEID KEY , i believe does the same as Open FST, but for any title as long as you have the key.
 
Last edited by EclipseSin,

malikoman

Active Member
Newcomer
Joined
Sep 29, 2016
Messages
33
Trophies
0
Age
34
XP
69
Country
Uruguay
Open FST - Open the File System Table (the folder structure) of a selected title.
Download META - Downloads the meta folder only for the selected title.
Download Encrypted Files - Downloads game files for selected from nus but doesn't extract them.

To extract the files in (example) tmp_0005000E10145000, you must use CDecrypt or let JNUSTool do the work.

If you use Open FST on a selected title such as an update, you will be able to download the extracted files instead of the encrypted ones. It should open a new window with a folder structure and checkboxes. Check the boxes of files you want, and click the download button.

Woow,thanks for the prompt reply!
I tried with Open FST but all it does is close the current window and nothing else. What I mean to say is that the other window with the check-boxes doesn't appear at all.
When you said "let JNUSTool do the work" you mean to use the "Open FST" and use the checkbox right?

Thanks again in advance!
 
Last edited by malikoman,

nexusmtz

Well-Known Member
Member
Joined
Feb 17, 2016
Messages
1,386
Trophies
0
XP
1,425
Country
United States
I managed to download everything and put the common key for Super Smash for Wii U (EUR version) in the "config" file.

I tried with Open FST but all it does is close the current window and nothing else.

If you're not getting the FST window, copy and paste the messages that appear in the command prompt window that you ran java from.

Note that you won't have any messages if you ran the jar by double-clicking it, unless you have the java console turned on. Please run java from a command prompt.

You'll probably see the message: "Not a FST. Maybe a wrong key?" because you entered Smash's NUS Title key as the WiiU Common Key in your config file. The common key is not specific to the title. Find the common key somewhere and enter it.

(Updates don't need the NUS title key, so don't worry about that one for now.)

By the way, you want the files from the FST if you're adding an update to your loadiine rip. You want the encrypted files if you're going to use wupinstaller to add the update to your WiiU for use with your original disc.
 
Last edited by nexusmtz,

malikoman

Active Member
Newcomer
Joined
Sep 29, 2016
Messages
33
Trophies
0
Age
34
XP
69
Country
Uruguay
If you're not getting the FST window, copy and paste the messages that appear in the command prompt window that you ran java from.

Note that you won't have any messages if you ran the jar by double-clicking it, unless you have the java console turned on. Please run java from a command prompt.

You'll probably see the message: "Not a FST. Maybe a wrong key?" because you entered Smash's NUS Title key as the WiiU Common Key in your config file. The common key is not specific to the title. Find the common key somewhere and enter it.

(Updates don't need the NUS title key, so don't worry about that one for now.)

By the way, you want the files from the FST if you're adding an update to your loadiine rip. You want the encrypted files if you're going to use wupinstaller to add the update to your WiiU for use with your original disc.

Once again, prompt response, THANKS!!

I'll give it a try as soon as I get home (I'm at work right now) and then get back at you with the results.

As for the way I'm running it, I just double-clicked it and that's it. And regarding the common key, the one I copied into "config" was the one I found for Smash EUR.
 

nexusmtz

Well-Known Member
Member
Joined
Feb 17, 2016
Messages
1,386
Trophies
0
XP
1,425
Country
United States
the one I copied into "config" was the one I found for Smash EUR.

Understood. That's confirmation of why it doesn't work, and why you didn't see the error messages. There's just one WiiU Common Key globally (not per title, region, or WiiU) and you need that key in your config file no matter what you're trying to decrypt. Without it, JNUSTool can't make sense of the FST, because the FST is encrypted with that key. Using any other key results in garbage and that causes an exception to occur in the code.

The good news is that once you've found it and entered it, you won't have to change it. As for the Smash EUR key that you found, that would be needed in conjunction with the common key if you were to attempt downloading the encrypted version of the full game from somewhere.
 

nexusmtz

Well-Known Member
Member
Joined
Feb 17, 2016
Messages
1,386
Trophies
0
XP
1,425
Country
United States
Makes no sence at all. I open the jar file and winrar wants extract it....... Getting bored of circles
If you did a 'select all' when you installed WinRAR, you told WinRAR to take over that extension. Open a command prompt, pushd/cd to your jnustool directory, and run java -jar JNUStool.jar instead. That will work around the file association problem.
 
  • Like
Reactions: jammybudga777

kudofan

Well-Known Member
Member
Joined
Dec 13, 2013
Messages
164
Trophies
1
Age
31
XP
2,370
Country
United States
Sorry if this is a stupid question, but is there a way to download and install multiple updates at once?
I've missed multiple updates but I'm not sure which ones.
 
Last edited by kudofan,

nexusmtz

Well-Known Member
Member
Joined
Feb 17, 2016
Messages
1,386
Trophies
0
XP
1,425
Country
United States
Sorry if this is a stupid question, but is there a way to download and install multiple updates at once?
I've missed multiple updates but I'm not sure which ones.
It's not a stupid question, but it's pretty ambiguous.

First, you only need the latest update for any given title. You might have a reason to download older updates, e.g. if they had some feature or compatibility that was removed in later updates.

You can select multiple titles in jnustool by holding the CTRL key, but if you're using the Open FST button to obtain files for use with loadiine, you'll still get a window for each title, so it doesn't save you much effort. Also, don't 'X' any of the FST windows, or it'll close all of them.

JNUSTool doesn't install updates, so that question doesn't have much meaning in this thread.
 
  • Like
Reactions: kudofan

kudofan

Well-Known Member
Member
Joined
Dec 13, 2013
Messages
164
Trophies
1
Age
31
XP
2,370
Country
United States
It's not a stupid question, but it's pretty ambiguous.

First, you only need the latest update for any given title. You might have a reason to download older updates, e.g. if they had some feature or compatibility that was removed in later updates.

You can select multiple titles in jnustool by holding the CTRL key, but if you're using the Open FST button to obtain files for use with loadiine, you'll still get a window for each title, so it doesn't save you much effort. Also, don't 'X' any of the FST windows, or it'll close all of them.

JNUSTool doesn't install updates, so that question doesn't have much meaning in this thread.
Just for clarification, I meant multiple updates for the same game.
Anyway, you did answer my question, so thank you.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: Sup