本帖最后由 还在学习呢 于 2024-8-1 11:13 编辑
[Java] 纯文本查看 复制代码 emulator.attach().addBreakPoint(module.base + 0x9AA8B4, new BreakPointCallback() {//0x954014+hex34
@Override
public boolean onHit(Emulator<?> emulator, long address) {
UnidbgPointer pointer = UnidbgPointer.register(emulator, Unicorn.UC_ARM64_REG_X0);
System.out.println("pointer:" + pointer);
String X0 = Long.toHexString(pointer.peer);
System.out.println("X0:"+X0);
if (X0.length() >= 9 && X0.startsWith("1f"))
{
emulator.getBackend().reg_write(Unicorn.UC_ARM64_REG_X0, pointer.toUIntPeer());
}
return true;
}
});
unidbg模拟安卓环境调用so文件方法时,以上代码在本地win10调式都正常,部署到linux服务器后就不起作用,根本不进入断点。折磨我一天了有懂得大佬吗 |