Hacking Command Line NUS Downloader

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
Well it seems to work fine and all the additional info the new version provides while downloading is very nice. ^^ However there are some problems.

It downloads no longer to a folder relative from where the .exe is but from where the .bat is. That presents me with a problem since I originaly downloaded stuff directly to SD, to cut down on copy time later on. Now that's no longer possible.
frown.gif


Do you think you could change that back or provide a switch where one can set his own download folder?

It would be very much apreciated. ^^


Edit: Oh and maybe not have it create all these folders that are not needed...


Edit: Ok never mind that download loation stuff. There is an easy fix. Just change into the folder you want stuff to be downloaded in. I feel stupid... ^^"
 

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
Well after a lot of testing I can say with 95% certaint, that there are no more crashes. ^^

Btw. I don't now if this would be easy to implement, but a switch where you can name the wad and one where you can choose which folder to pack it in, would make my life so much easier and it would be much apreciated...

Edit: Just noticed a major problem. I think nusd is auto-fakesigning the wads. It says "decrypting" during download and I can't install these wad with an original Nintendo IOS...
 

wiiNinja

Well-Known Member
OP
Member
Joined
Jan 13, 2009
Messages
645
Trophies
1
XP
1,756
Country
United States
QUOTE said:
Edit: Just noticed a major problem. I think nusd is auto-fakesigning the wads. It says "decrypting" during download and I can't install these wad with an original Nintendo IOS...

Can you post your batch?
 

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
Well I could but it's still very beta, especially now that the directory structure has changed.

All my nusd commands look like this:

QUOTE said:
%buchstabe%:\nusd\nusd.exe 000000010000000C 12 packwad

That seems to produce fakesigned wads now. (unless i totally goofed up on my testing. I tested them with trying to install them with an vanialle Nintendo IOS36 and the slots were ofcourse empty) Is there maybe a PC program with which one can see if it's fakesigned or signed by Nintendo?

But I'm pretty sure that the fakesigning flag is on by default in this version and sadly there is no switch in the command line version to turn it off...

Look or yourself
decrypt.png



Like I said could just be that I goofed up the testing, but I think it's something else.


Btw. the new gui version also has a save wad as feature, so that switch for name and directory should be prett easy to implement. Could you do that? pretty please? ^^


Edit:
I just noticed that I can't get a consistent md5 hash out of the same download command. maybe this version of nusd is still too buggy to be be used? I mean it isn't released as a final yet for a reason...
 

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
Does anybody here know where to get the source for 1.5a beta? I thinks that's our best bet for a stable version at the moment...
 

WB3000

Well-Known Member
Member
Joined
Apr 5, 2007
Messages
674
Trophies
1
Website
wb3000.co.nr
XP
471
Country
United States
The code you are using is indeed beta code (I've been committing changes somewhat daily on it). It is in no way ready for public use yet
tongue.gif
.

A lot of the code has been converted to use libWiiSharp, so there's definitely some changes in WAD creation, etc. All WADs should not be fakesigned though, and I don't think there's a problem with my code involving that.

I'll look to add official CLI code to the build before next release though.
 

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
Well I don't know if they are fakesigned. But they won't install with an unpatched IOS and every time I download an IOS again the resulting wad has a different md5 hash, so there is definetly something wong with the wads it puts out.

Can the soure for 1.5a be found somwhere? On google code I can only find the newest...
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,803
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,788
Country
Cyprus
WB3000 said:
I'll look to add official CLI code to the build before next release though.
sweet! It sounds like the official nusd will accept command line arguements in the future
biggrin.gif


One request WB3000, can you have it run without the common-key (as wiininja's cmd line nusd does)??
 

WB3000

Well-Known Member
Member
Joined
Apr 5, 2007
Messages
674
Trophies
1
Website
wb3000.co.nr
XP
471
Country
United States
LibWiiSharp seems to decrypt and then reencrypt the contents, although there is no fakesigning as far as I can tell. The differences in hash appear to be with the random time stamp it creates. I've never been a fan of these footers, and perhaps they could be causing issues.

Every commit of the source is on google code since pre-v1.3. If you want v1.5, I believe you can find the entry version you want and pass it to whatever svn program you use. The last release I actually published was v1.3beta, so I can't speak for how stable 1.5 is.

QUOTE said:
One request WB3000, can you have it run without the common-key (as wiininja's cmd line nusd does)??

It already does
tongue.gif
(SVN builds)
 

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
WB3000 said:
LibWiiSharp seems to decrypt and then reencrypt the contents, although there is no fakesigning as far as I can tell. The differences in hash appear to be with the random time stamp it creates. I've never been a fan of these footers, and perhaps they could be causing issues.
Hmm sounds to me like libwiisharp makes more problems than it's worth. And I don't particularly like the fact that one can't check md5 hashes, since I like to do that at the end of my batch files...
 

WB3000

Well-Known Member
Member
Joined
Apr 5, 2007
Messages
674
Trophies
1
Website
wb3000.co.nr
XP
471
Country
United States
QUOTE said:
And I don't particularly like the fact that one can't check md5 hashes, since I like to do that at the end of my batch files...
Agreed. Footer removed in r105, so this issue will be gone in release.
wink.gif
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,803
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,788
Country
Cyprus
re those timestamps, I got Leathl to remove those from LibWiiSharp because they were giving me problems (inconsistent hash) when I would use patchIOS on a wad. Leathl has committed this to r5, but the precompiled binary on his google code page is still r4 (aka libwiisharp v0.21). If u want, I'm fairly certain you can continue using libwiisharp as u were before (with a footer) using r5 of libwiisharp. To save yourself hiving to compile r5 of libwiisharp, you can grab a precompiled r5 libwiisharp (built by Leathl) from the most recent release of NUS Auto Downloader. Just download it, then run "NUS Auto Downloader.exe", as it is starting up, it will automatically unpack many files in the background (including the libwiisharp r5), and u can find the files saved in the same folder as "NUS Auto Downloader.exe", just copy and paste it elsewhere (because when you exit NUSAD, it will delete the 'temp' files, including libwiisharp)

and thats great re the common-key! I can't wait to try out your next release!!
 

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
Really cool that the official version will support cmd. I guess I'll use the old one until then even if it errors out now and again.

@WB3000
Will the cmd version be able to parse the database while it's already downloading and then name the downloaded wad acordingly? That would be nice, since it would cut out lot of renaming in batch scripts.

Oh and I hope that "save as" will also work in the command line version.
 

WB3000

Well-Known Member
Member
Joined
Apr 5, 2007
Messages
674
Trophies
1
Website
wb3000.co.nr
XP
471
Country
United States
Right now I have a build on SVN which basically integrates wiiNinja's code, with the same functionality. However, it seems there's no way to have both a GUI and CLI program without the command line window popping up (irregardless of whether it is needed or not). I may end up having to build a separate executable that supports command args to solve this issue.

Database parsing and user naming are all possibilities I will look into.
 

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
I meant specifically name a folder here the wad gets packed to and then get the name for te wad from the database (which would probably striped down by batch reators for what is needed right now, so it doesn't tak too long to parse).

Thanks for looking into all of this. ^^
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, atleast there was some neat filler there