Closed learncyber-co-il closed 1 year ago
Hey @learncyber-co-il, Thanks for the feedback :) Can you send me the Lua bytecode file?
Hi @bananabr , thanks for your reply! Is it possible to send the file over email?
Can you dm me on Twitter? @bananabr I don't want to disclose my email here.
Patching file crypto.lua ...
Traceback (most recent call last):
File "ulua.py", line 454, in <module>
chunk = lc.parse(bytecode, opcode_map=opcode_map)
File "ulua.py", line 260, in parse
chunk, main=True, opcode_map=opcode_map)
File "ulua.py", line 225, in decode_chunk
chunk, main=False, opcode_map=opcode_map))
File "ulua.py", line 178, in decode_chunk
opcode = opcode_map[opcode]
KeyError: 22
i have same error. also am using tp-link firmware bin files.
@b4sh5i,
You are getting a key error probably cause the built dictionary does not contain a map for byte 22. You either need more distinct files in your ref folder or to manually set a value for byte 22. Could you send me the samples you are working with?
@bananabr can i send msg your twitter ? i can not send msg your account xD
Hey @b4sh5i,
You should be able to msg me on Twitter now.
@bananabr can i check my DM ?
I can't see any message on my Twitter inbox. Are the Lua files you are using confidential? Can't you just upload it in Google Drive or something on share it here?
When analyzing the TP-Link router firmware, it is difficult to find the corresponding Lua file, and the results in the map are not completely correct. Is there any other way to solve this problem?
@rssample any news?
I never got the files to analyze the original case.
Here are some common problems you might face:
I am closing this issue as the original complaints were addressed privately. If any other user has similar problems, feel free to post another issue providing me with the files required for testing.
Hi! First of all allow me to thank you for this magnificant piece of software! Unfortunately, I stumbled upon an error while running it on lua bytecodes extracted from tp-link TL-R480T+v9 bin file. I followed your great guide at https://vovohelo.medium.com/unscrambling-lua-7bccb3d5660, but after the script finished building the opcode_map, it raised an error:
Debug Printing opcode_map assured there is no '8' key:
By the way, it seems like all opcodes were mapped to themselves. Am I wrong to assume that atleast some of them were supposed to be mapped to different ones?
I'd appericiate if you could have a look and advice. Many thanks in advance!