Frida挂钩特定地址0040101D失败报错的原因排查求助
Frida挂钩0040101D地址失败问题排查求助
- 操作场景:使用Frida对示例程序01.exe(密码codeengn)进行挂钩
- 异常情况:目标程序的0040101D地址无法正常挂钩,报错信息:
Error: unable to intercept function at 0040101D; please file a bug at value (frida/runtime/core.js:408) at <eval> (C:\Users\lapla\Documents\codeengn\01.js:21) - 其他验证:程序其他位置均可正常挂钩,即使是相同的
inc esi、dec eax指令在其他地址也能成功挂钩;已尝试切换32位Python环境,问题依旧
求助需求:
- 排查该地址挂钩失败的原因
- 提供相关搜索关键词
使用的挂钩代码:
var Base = Module.findBaseAddress('01.exe'); var interloc = Base.add(0x101D); console.log(Base); console.log(Instruction.parse(ptr(interloc)).toString()); Interceptor.attach(interloc, { onEnter(args) { console.log('onEnter'); var reg = this.context; console.log(JSON.stringify(reg, 0, 2)); console.log(reg.eax); reg.eax = ptr('0x3') },onLeave(retval) { console.log('onLeave'); var reg = this.context; console.log(JSON.stringify(reg, 0, 2)); } });
内容的提问来源于stack exchange,提问作者astro3141
相关产品推荐
相关产品推荐

