Open NHPT opened 1 year ago
If you could send me the files you are using somehow, I would be glad to help.
Thank you. File in: https://github.com/NHPT/TempFile/tree/main/usr/lib/lua/luci You can also obtain it here https://static.tp-link.com/upload/firmware/2023/202303/20230308/Archer%20AX21 (US) V3 230219.zip
Hello @NHPT any news?
Could you try processing fewer samples at a time? Start with one and see if that works.
Hello, i try do some things, but get error
python3 ulua.py -r ref/ -s sample/ -f locale.lua -o locale.patched.lua
Processing reference files
Processing file: ref/zoneinfo.lua
Processing sample files
Processing file: sample/zoneinfo.lua
13 opcodes mapped
Patching file locale.lua ...
Traceback (most recent call last):
File "/root/tplink/archer_ax21/Archer AX21(US)_V2_230426/ulua/ulua.py", line 454, in <module>
chunk = lc.parse(bytecode, opcode_map=opcode_map)
File "/root/tplink/archer_ax21/Archer AX21(US)_V2_230426/ulua/ulua.py", line 259, in parse
chunk.top_function_block = self.decode_chunk(
File "/root/tplink/archer_ax21/Archer AX21(US)_V2_230426/ulua/ulua.py", line 178, in decode_chunk
opcode = opcode_map[opcode]
KeyError: 0
When i use many samples i get error in opcode 16 and 22. Using bruteforce some values get me normal patched file, but luadec can't correctly decompile file.
This is errors in luadec
-- DECOMPILER ERROR at PC86: Confused about usage of register: R3 in 'UnsetPending'
luad.py no error but ulua.py error
Could you help me?Thanks.If you need more info please reply me.