Hacking wfsdump - PC util for dumping WFS devices (WiiU File System)

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,835
Country
United States
What do you mean? It fails to extract the file?
nfs files are stored in some weird way. can't read them using ftpiiu-everywhere or other tools. when trying to read using wfs-fuse the files are all zero.
NPPWpEA.png
expected content from an extracted download (EGGS/SGGE header):
EPkcu0i.png
also in the FST format they're stored using type 0x02, instead of 0x00 for normal files.
 
Last edited by ihaveahax,

528491

Member
Newcomer
Joined
Apr 2, 2014
Messages
15
Trophies
0
Age
44
XP
149
Country
Croatia
Hello,
I tried dumping from my backup .img file and get the error in cmd:

wfsdump' is not recognized as an internal or external command, operable program or batch file

Please see screenshot here: https://photos.app.goo.gl/wAizPRTzWZGYN6f72

yeah, you need to launch a command prompt with admin privileges. You can do that from Windows Explorer. Just enter the folder where you put the executable, otp.bin and seeprom. bin then open the"File" menu in Windows explorer to do that.
View attachment 95249

Then you determine evertyhing and type in the command.

I used powershell and discovered that my USB drive is \\.\PHYSICALDRIVE2.
My OTP dump is called otp.bin.
My SEEPROM dump is called seeprom.bin.
I want to dump the files in a folder called "dump"

So this is what I typed in:
wfsdump --input \\.\PHYSICALDRIVE2 --otp otp.bin --seeprom seeprom.bin --output dump
 

nexusmtz

Well-Known Member
Member
Joined
Feb 17, 2016
Messages
1,386
Trophies
0
XP
1,425
Country
United States
Hello,
I tried dumping from my backup .img file and get the error in cmd:

wfsdump' is not recognized as an internal or external command, operable program or batch file

Please see screenshot here: https://photos.app.goo.gl/wAizPRTzWZGYN6f72
As noted on the github release page, the program was renamed to wfs-extract.exe. That's why you see wfs-extract.exe in your directory list. Enter wfs-extract instead of wfsdump.
 
  • Like
Reactions: 528491

528491

Member
Newcomer
Joined
Apr 2, 2014
Messages
15
Trophies
0
Age
44
XP
149
Country
Croatia
Thank you @nexusmtz . I tried dumping from image files previously created in Win32DiskImager, UBIT and imageusb. I got following results:
My question. Did I get a useable dump folder, even though the .exe stopped working?
 

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
280
Trophies
0
XP
1,099
Country
Israel
Thank you @nexusmtz . I tried dumping from image files previously created in Win32DiskImager, UBIT and imageusb. I got following results:
My question. Did I get a useable dump folder, even though the .exe stopped working?
Hmm, the crash is a bug. Can you run it with --verbos and send me the output privately?
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
@EyeKey
Ah, I had this dumb suspicion when the nfs files couldn't be read but didn't really think Nintendo would do it.

So today I remembered it and took a look at the dump of the encrypted disk and found out I my dumb theory was actually correct...
The nfs files can't be decrypted by your tool because they're stored raw, without any encryption at all.
That makes sense because they're loaded by the Virtual Console's IOS in vWii and Nintendo wouldn't bother to add WFS support to that as well.
 
Last edited by piratesephiroth,
  • Like
Reactions: Pachee

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
280
Trophies
0
XP
1,099
Country
Israel
@EyeKey
Ah, I had this dumb suspicion when the nfs files couldn't be read but didn't really think Nintendo would do it.

So today I remembered it and took a look at the dump of the encrypted disk and found out I my dumb theory was actually correct...
The nfs files can't be decrypted by your tool because they're stored raw, without any encryption at all.
That makes sense because they're loaded by the Virtual Console's IOS in vWii and Nintendo wouldn't bother to add WFS support to that as well.
Nice find. Few weeks ago I figured out that one of the flags in the attributes of a file is whether it is encrypted or not. I can add support for that flag.
Does my program print "Error: Failed to.." when trying to dump those files? because it should have if the decryption has failed.
 
  • Like
Reactions: Pachee

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
Nice find. Few weeks ago I figured out that one of the flags in the attributes of a file is whether it is encrypted or not. I can add support for that flag.
Does my program print "Error: Failed to.." when trying to dump those files? because it should have if the decryption has failed.

yup, "failed to read"

KYtalVS.png
 
Last edited by piratesephiroth,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub:
  • Sheeba- @ Sheeba-:
    I can't wait to hack my 11.00 PS4 pro
    Sheeba- @ Sheeba-: I can't wait to hack my 11.00 PS4 pro