Hacking command to inject a file back with wupclient ?

Arck

Well-Known Member
OP
Member
Joined
Mar 13, 2016
Messages
955
Trophies
0
XP
878
Country
Hello,

I try to inject a file with wupclient but I don't know the command and I want to be sure before the injection.

Thanks !
 

dedChar

(ノಠ益ಠ)ノ彡┻━┻
Member
Joined
May 5, 2015
Messages
260
Trophies
0
XP
178
Country
Gambia, The
I don't know for sure, but looking at the python code it should be
Code:
w.up(filename_on_pc, optional_filename_on_wiiu)

Code:
# [...]

def up(self, local_filename, filename = None):
        fsa_handle = self.get_fsa_handle()
        if filename == None:
            if "/" in local_filename:
                filename = local_filename[[i for i, x in enumerate(local_filename) if x == "/"][-1]+1:]
            else:
                filename = local_filename
        if filename[0] != "/":
            filename = self.cwd + "/" + filename
        f = open(local_filename, "rb")
        ret, file_handle = self.FSA_OpenFile(fsa_handle, filename, "w")
        if ret != 0x0:
            print("up error : could not open " + filename)
            return
        progress = 0
        block_size = 0x400
        while True:
            data = f.read(block_size)
            ret = self.FSA_WriteFile(fsa_handle, file_handle, data)
            progress += len(data)
            sys.stdout.write(hex(progress) + "\r"); sys.stdout.flush();
            if len(data) < block_size:
                break
        ret = self.FSA_CloseFile(fsa_handle, file_handle)

# [...]

Though if this is indeed the function to upload stuff back to the wiiu, and if it actually works, I would be very cautious. You could possibly brick if you modify important files!
 
  • Like
Reactions: KiiWii

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    NinStar @ NinStar: :whip: