wfs-tools icon indicating copy to clipboard operation
wfs-tools copied to clipboard

Support WFS partition with no encryption

Open purplebar0 opened this issue 1 year ago • 4 comments

wafel_sd_usb formats and mounts a partition of the SD card in a way that encryption is disabled. Currently, all of the utilities require an OTP and SEEPROM dump, which isn't applicable here as aforementioned partition isn't even encrypted.

Being able to mount/dump contents of an unencrypted WFS partition would be great for general use and essential for recovering data from the medium.

purplebar0 avatar Dec 07 '24 18:12 purplebar0

Hey, it should already be supported with --type plain

koolkdev avatar Dec 07 '24 21:12 koolkdev

Oddly enough, it seems that I missed the correct syntax the first time.

However, now I am having a different issue. This is what happens when I run it and try browsing as root:

$ sudo ~/Applications/wfs-tools/wfs-fuse /dev/sdb2 /mnt/ext01 --type plain -d
FUSE library version: 2.9.9
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 2, opcode: INIT (26), nodeid: 0, insize: 104, pid: 0
INIT: 7.40
flags=0x73fffffb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000011
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 2, success, outsize: 40
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 2440
getattr /
terminate called after throwing an instance of 'std::runtime_error'
  what():  FileDevice: Read out of file.
zsh: IOT instruction  sudo ~/Applications/wfs-tools/wfs-fuse /dev/sdb2 /mnt/ext01 --type plain -d

This is on v1.2.3.

purplebar0 avatar Dec 08 '24 11:12 purplebar0

Can you give the output of wfs-info on this one?

koolkdev avatar Dec 09 '24 06:12 koolkdev

Not much to see, unfortunately:

$ sudo wfs-info --input /dev/sdc2 --type plain
Allocator state:
Error: FileDevice: Read out of file.

purplebar0 avatar Dec 22 '24 18:12 purplebar0