我最近一直在尝试解密.luac加密的 android 应用程序中的文件。我试图在这里遵循之前的一些线程,但以下 frida 脚本没有给出任何输出。
Interceptor.attach(Module.findExportByName("libcocos2dlua.so", "xxtea[i]decrypt"), {
onEnter: function(args) {
send(Memory.readUtf8String(args[1]));
},
onLeave:function(retval){}
});
当我尝试挂钩 lua[/i] 加载缓冲区时,我得到了解密的 lua 文件内容作为响应。
Interceptor.attach(Module.findExportByName("libcocos2dlua.so" , "luaL_loadbuffer"), {
onEnter: function(args) {
send(Memory.readUtf8String(args[1]));
},
onLeave:function(retval){}
});
因为关于 frida android hooking 的文档非常少,这里有人可以帮我写一个 frida 脚本来转储所有解密的 luac 文件