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

Discussion in 'Wii U - Hacking & Backup Loaders' started by EyeKey, Jul 23, 2017.

  1. aplumafreak500

    aplumafreak500 Member

    Newcomer
    31
    17
    Dec 20, 2014
    United States
    Meyersdale, PA
    Any work on proper WiiVC extraction?
     
  2. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,622
    Sep 5, 2013
    Brazil
    this has nothing to do with the thread
     
  3. aplumafreak500

    aplumafreak500 Member

    Newcomer
    31
    17
    Dec 20, 2014
    United States
    Meyersdale, PA
    I meant WiiVC extraction from WFS images. The situation is: I have a WFS dump containing Xenoblade Chronicles which won't properly dump. I was wondering if any work has been done to achieve proper extraction.
     
  4. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,622
    Sep 5, 2013
    Brazil
    what are you tyring to extract? save files?
     
  5. aplumafreak500

    aplumafreak500 Member

    Newcomer
    31
    17
    Dec 20, 2014
    United States
    Meyersdale, PA
    The NFS files, which contain the game files.
     
  6. jammybudga777

    jammybudga777 GBAtemp Advanced Maniac

    Member
    1,673
    561
    Aug 23, 2013
    so does this mean i could copy one usb hd to another? (using with rednand)
     
  7. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,622
    Sep 5, 2013
    Brazil
    why don't you just download if from nitendo's server and decrypt it?

    nope, for now we can only replace files
     
  8. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,481
    6,052
    Apr 20, 2015
    United States
    Tigard, OR
    redownloading a large game is probably not an option for some people. dumping an existing installed title is faster. but Wii VC files are special (nfs files are stored in some weird way).
     
    aplumafreak500 likes this.
  9. EyeKey
    OP

    EyeKey GBAtemp Regular

    Member
    199
    431
    Feb 10, 2017
    Israel
    What do you mean? It fails to extract the file?
     
  10. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,481
    6,052
    Apr 20, 2015
    United States
    Tigard, OR
    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.
    Warning: Spoilers inside!
    expected content from an extracted download (EGGS/SGGE header):
    Warning: Spoilers inside!
    also in the FST format they're stored using type 0x02, instead of 0x00 for normal files.
     
    Last edited by ihaveamac, Aug 28, 2017
  11. Pachee

    Pachee GBAtemp Fan

    Member
    319
    178
    Nov 3, 2015
    United States
    Maybe these nfs files we see are actually links to raw data somewhere else?
     
  12. 528491

    528491 Member

    Newcomer
    15
    0
    Apr 2, 2014
    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

     
  13. nexusmtz

    nexusmtz GBAtemp Maniac

    Member
    1,269
    439
    Feb 17, 2016
    United States
    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.
     
    528491 likes this.
  14. 528491

    528491 Member

    Newcomer
    15
    0
    Apr 2, 2014
    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?
     
  15. EyeKey
    OP

    EyeKey GBAtemp Regular

    Member
    199
    431
    Feb 10, 2017
    Israel
    Hmm, the crash is a bug. Can you run it with --verbos and send me the output privately?
     
  16. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,622
    Sep 5, 2013
    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, Sep 18, 2017
    Pachee likes this.
  17. EyeKey
    OP

    EyeKey GBAtemp Regular

    Member
    199
    431
    Feb 10, 2017
    Israel
    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.
     
    Pachee likes this.
  18. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,622
    Sep 5, 2013
    Brazil
    yup, "failed to read"

    [​IMG]
     
    Last edited by piratesephiroth, Sep 19, 2017
  19. EyeKey
    OP

    EyeKey GBAtemp Regular

    Member
    199
    431
    Feb 10, 2017
    Israel
    lol yea, that was the part that wasn't reported.
    Anyway, I added support, I haven't tested it because I don't have any wii vc game.
    https://github.com/koolkdev/wfslib/releases
     
  20. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,622
    Sep 5, 2013
    Brazil
    works perfectly