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

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
280
Trophies
0
XP
1,098
Country
Israel
And no way to just grab the tickets from it using your dump method?
I have commented on this subject before. The encryption key is unique per console installation. This is why disks from other consoles or from before format aren't even recognized. So you need to reencrypt the whole disk, which requires to parse properly the whole filesystem, which isn't done yet.
 

Extremewaffles

Member
Newcomer
Joined
Aug 21, 2018
Messages
13
Trophies
0
Age
38
XP
88
Country
United States
I have commented on this subject before. The encryption key is unique per console installation. This is why disks from other consoles or from before format aren't even recognized. So you need to reencrypt the whole disk, which requires to parse properly the whole filesystem, which isn't done yet.
Thanks for the info. Will just have to start over I reckon
 

Well

New Member
Newbie
Joined
Jan 25, 2018
Messages
3
Trophies
0
Age
31
XP
166
Country
Brazil
Hey there, I'd just like to know if this is still on the plate?

Thank you so much for your help, really sincerely.

I have the same problem you have, Drak. I did the exact same thing you did. I`m waiting for a solution too.
Thanks everyone here for trying to help.
 

Drak

Active Member
Newcomer
Joined
Oct 29, 2007
Messages
41
Trophies
0
Website
Visit site
XP
296
Country
Canada
I have the same problem you have, Drak. I did the exact same thing you did. I`m waiting for a solution too.
Thanks everyone here for trying to help.

It's been a couple of months now... I'm not sure that a solution will be coming.... :/ my wiiu is pretty much eating dust right now...
 

Chuardo

Well-Known Member
Member
Joined
Oct 4, 2015
Messages
418
Trophies
0
Age
23
XP
1,020
Country
Uruguay
My external HDD on my Wii U is suddenly not working properly for some reason, when I try to make a 1:1 Backup on my PC it unpluggs itself, just like it does randomly on my Wii U.
Can I make a backup of it with this? Is there any way to fix it? Maybe formatting it again and restoring its data?

I feel like the only solution would be to buy a new HDD, extract the data of my current HDD, and restoring it on the newer one.
 
Last edited by Chuardo,

Chuardo

Well-Known Member
Member
Joined
Oct 4, 2015
Messages
418
Trophies
0
Age
23
XP
1,020
Country
Uruguay
I put my HDD on my Windows PC, and chose to Initialize Disk with MBR because if did not even located it, and now my Wii U says that is not formatted properly, what can I do? I did not even formatted it on my PC, I just selected an option on how it should read it
 

Chuardo

Well-Known Member
Member
Joined
Oct 4, 2015
Messages
418
Trophies
0
Age
23
XP
1,020
Country
Uruguay
Thank you for taking a look at it EyeKey.
it's not the first user who has this problem, so it might help other users too.

But I don't know if it's possible, like you said some important data could be located in the first page/sectors of the disk, and it might be unrecoverable if the first sector is corrupted.

edit:
Oh, I missed the message with the screenshot of your first sector.
I see your first sector has been entirely replaced with a standard boot sector for computer (MBR protected?), even the second sector has been replaced with a GPT data (your drive is 512 bytes/sector).
You might have all your first 34 sectors of the drive deleted, and the 34 last sectors of the drive too as your sector 1 contains the address of the GPT backup (0x74706D8F-0x74706DAF)

It would be hard to recover anything, unless WFSDump can open & decrypt any page independently and doesn't require data located in the header.
I guess this is what happened to me, is there anything that I can do?
@EyeKey what do you think?

Maybe I should just delete the MBR partition with some program on my PC?

Sorry for making a lot of comments, I havent used my Wii U in months because the HDD strated to stop working at random, I am now pretty sure that there is a Hardware problem, everything inside the Drive was working, it just stopped at random. I ended up now somewhat desesperated and tired, I just want yo have things working again. I now trying to make a Backup of the HDD ended up with a MBR partition and it's an even worse situación.
I now that I lost everything, but I would like to at least try to extract my Xenoblade X and BOTW savefiles, I have hundreds of hours in them that I can't get back and I want to continue them, if that it's possivpo, everything else does not matter as much.
 
Last edited by Chuardo,

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
by choosing MBR, you formated the first sector (sector 0 and possibly even more).
the MBR is the sector where the partitions are defined, MBR can hold up to 4 partition information (size, location, format, etc.)

The WiiU not being compatible with multiple partition just deletes the sector 0 completely and use it for its own data.
You replaced a sector used by the WiiU with something used by Windows.
You can't delete the MBR and get your WiiU data back.

That's normal you can't "mount" or detect any partition letter when plugging it into windows, because there's no partition, thus no partion letter attached to the drive.
if you want to work with a non recognized HDD in windows you need to work with device ID and not partition letters.
 

Nepeta

:33
Member
Joined
May 23, 2009
Messages
657
Trophies
1
Age
27
Location
Twoson
Website
twitch.tv
XP
445
Country
United States
Hi, sorry to necropost this thread (hopefully it's okay as I'm asking for help) but I just can't get this program to extract my mlc.bin. Immediately after inputting the command, I'm getting 'Error: Failed to dump folder ""' Here's a screenshot of my PowerShell (I tried in CMD too and got the same error, I just still have PowerShell up as I tried it more recently)
ib5KPWQ.jpg
 

HarveyHouston

Christian Modder
Member
Joined
Mar 24, 2019
Messages
1,538
Trophies
2
Location
The Point of Know Return
XP
2,032
Country
United States
Any details?
Which version? What have you done so far? What's the error?
Latest version I believe. Followed the instructions exact. Output:
Code:
$ make
make -C wfslib
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfslib'
Makefile:21: .depend: No such file or directory
rm -f .depend
g++ -c -Wall -Werror -std=c++14 -MM Area.cpp Block.cpp DataBlock.cpp DeviceEncryption.cpp Directory.cpp File.cpp FileDevice.cpp KeyFile.cpp MetadataBlock.cpp Structs.cpp SubBlockAllocator.cpp Wfs.cpp WfsItem.cpp > .depend
g++ -c -Wall -Werror -std=c++14 Area.cpp -o Area.o
g++ -c -Wall -Werror -std=c++14 Block.cpp -o Block.o
g++ -c -Wall -Werror -std=c++14 DataBlock.cpp -o DataBlock.o
g++ -c -Wall -Werror -std=c++14 DeviceEncryption.cpp -o DeviceEncryption.o
g++ -c -Wall -Werror -std=c++14 Directory.cpp -o Directory.o
g++ -c -Wall -Werror -std=c++14 File.cpp -o File.o
g++ -c -Wall -Werror -std=c++14 FileDevice.cpp -o FileDevice.o
g++ -c -Wall -Werror -std=c++14 KeyFile.cpp -o KeyFile.o
g++ -c -Wall -Werror -std=c++14 MetadataBlock.cpp -o MetadataBlock.o
g++ -c -Wall -Werror -std=c++14 Structs.cpp -o Structs.o
g++ -c -Wall -Werror -std=c++14 SubBlockAllocator.cpp -o SubBlockAllocator.o
g++ -c -Wall -Werror -std=c++14 Wfs.cpp -o Wfs.o
g++ -c -Wall -Werror -std=c++14 WfsItem.cpp -o WfsItem.o
ar rcs ../libwfs.a Area.o Block.o DataBlock.o DeviceEncryption.o Directory.o File.o FileDevice.o KeyFile.o MetadataBlock.o Structs.o SubBlockAllocator.o Wfs.o WfsItem.o
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfslib'
make -C wfs-extract
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfs-extract'
Makefile:23: .depend: No such file or directory
rm -f .depend
g++ -I../ -c -Wall -Werror -std=c++14 -MM main.cpp > .depend
g++ -I../ -c -Wall -Werror -std=c++14 main.cpp -o main.o
g++ main.o -L../ -lwfs -lboost_system -lboost_filesystem -lboost_program_options -lcryptopp -lstdc++ -o wfs-extract
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfs-extract'
make -C wfs-fuse
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfs-fuse'
Makefile:23: .depend: No such file or directory
rm -f .depend
g++ -I../ -c -Wall -Werror -std=c++14 -D_FILE_OFFSET_BITS=64 -MM wfs-fuse.cpp > .depend
g++ -I../ -c -Wall -Werror -std=c++14 -D_FILE_OFFSET_BITS=64 wfs-fuse.cpp -o wfs-fuse.o
g++ wfs-fuse.o -L../ -lfuse -lwfs -lboost_system -lboost_filesystem -lboost_program_options -lcryptopp -lstdc++ -o wfs-fuse
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfs-fuse'
make -C wfs-file-injector
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfs-file-injector'
Makefile:23: .depend: No such file or directory
rm -f .depend
g++ -I../ -c -Wall -Werror -std=c++14 -MM main.cpp > .depend
g++ -I../ -c -Wall -Werror -std=c++14 main.cpp -o main.o
g++ main.o -L../ -lwfs -lboost_system -lboost_filesystem -lboost_program_options -lcryptopp -lstdc++ -o wfs-file-injector
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfs-file-injector'
 

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
Latest version I believe. Followed the instructions exact. Output:
Code:
$ make
make -C wfslib
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfslib'
Makefile:21: .depend: No such file or directory
rm -f .depend
g++ -c -Wall -Werror -std=c++14 -MM Area.cpp Block.cpp DataBlock.cpp DeviceEncryption.cpp Directory.cpp File.cpp FileDevice.cpp KeyFile.cpp MetadataBlock.cpp Structs.cpp SubBlockAllocator.cpp Wfs.cpp WfsItem.cpp > .depend
g++ -c -Wall -Werror -std=c++14 Area.cpp -o Area.o
g++ -c -Wall -Werror -std=c++14 Block.cpp -o Block.o
g++ -c -Wall -Werror -std=c++14 DataBlock.cpp -o DataBlock.o
g++ -c -Wall -Werror -std=c++14 DeviceEncryption.cpp -o DeviceEncryption.o
g++ -c -Wall -Werror -std=c++14 Directory.cpp -o Directory.o
g++ -c -Wall -Werror -std=c++14 File.cpp -o File.o
g++ -c -Wall -Werror -std=c++14 FileDevice.cpp -o FileDevice.o
g++ -c -Wall -Werror -std=c++14 KeyFile.cpp -o KeyFile.o
g++ -c -Wall -Werror -std=c++14 MetadataBlock.cpp -o MetadataBlock.o
g++ -c -Wall -Werror -std=c++14 Structs.cpp -o Structs.o
g++ -c -Wall -Werror -std=c++14 SubBlockAllocator.cpp -o SubBlockAllocator.o
g++ -c -Wall -Werror -std=c++14 Wfs.cpp -o Wfs.o
g++ -c -Wall -Werror -std=c++14 WfsItem.cpp -o WfsItem.o
ar rcs ../libwfs.a Area.o Block.o DataBlock.o DeviceEncryption.o Directory.o File.o FileDevice.o KeyFile.o MetadataBlock.o Structs.o SubBlockAllocator.o Wfs.o WfsItem.o
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfslib'
make -C wfs-extract
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfs-extract'
Makefile:23: .depend: No such file or directory
rm -f .depend
g++ -I../ -c -Wall -Werror -std=c++14 -MM main.cpp > .depend
g++ -I../ -c -Wall -Werror -std=c++14 main.cpp -o main.o
g++ main.o -L../ -lwfs -lboost_system -lboost_filesystem -lboost_program_options -lcryptopp -lstdc++ -o wfs-extract
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfs-extract'
make -C wfs-fuse
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfs-fuse'
Makefile:23: .depend: No such file or directory
rm -f .depend
g++ -I../ -c -Wall -Werror -std=c++14 -D_FILE_OFFSET_BITS=64 -MM wfs-fuse.cpp > .depend
g++ -I../ -c -Wall -Werror -std=c++14 -D_FILE_OFFSET_BITS=64 wfs-fuse.cpp -o wfs-fuse.o
g++ wfs-fuse.o -L../ -lfuse -lwfs -lboost_system -lboost_filesystem -lboost_program_options -lcryptopp -lstdc++ -o wfs-fuse
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfs-fuse'
make -C wfs-file-injector
make[1]: Entering directory '$PROJECTDIR$/wfslib/wfs-file-injector'
Makefile:23: .depend: No such file or directory
rm -f .depend
g++ -I../ -c -Wall -Werror -std=c++14 -MM main.cpp > .depend
g++ -I../ -c -Wall -Werror -std=c++14 main.cpp -o main.o
g++ main.o -L../ -lwfs -lboost_system -lboost_filesystem -lboost_program_options -lcryptopp -lstdc++ -o wfs-file-injector
make[1]: Leaving directory '$PROJECTDIR$/wfslib/wfs-file-injector'
I don't see any errors. In fact, it looks like it compiled successfully.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: good night