zhkl0228 / unidbg

Allows you to emulate an Android native library, and an experimental iOS emulation
Apache License 2.0
3.88k stars 966 forks source link

unidbg ida server调试问题 #243

Closed sepyeight closed 3 years ago

sepyeight commented 3 years ago

大佬你好,我用的是ida7.5 我修改了如下com.github.unidbg.debugger.DebugServer

    byte IDA_PROTOCOL_VERSION_V7 = 0x1A; // IDA Pro v7.x

com.github.unidbg.debugger.ida.AndroidServer

case 0xa: {
                long value = Utils.unpack_dd(buffer);
                long b = Utils.unpack_dd(buffer);
                if (log.isDebugEnabled()) {
                    log.debug("processCommand value=0x" + Long.toHexString(value) + ", b=" + b);
                }
                sendAck(new byte[]{0x1, 0x5});
                break;
            }

可以正常连上了, 设置断点

emulator.attach(DebuggerType.ANDROID_SERVER_V7).addBreakPoint(module.base + 0xAC8);

我配置了ida中的为arm,但是ida识别汇编代码有问题,大佬这个问题怎么解决啊,我太蠢了 image

zhkl0228 commented 3 years ago

ida的debug server属于实验性质,非常的不稳定,建议使用gdb server或者unidbg默认的console debugger

sepyeight commented 3 years ago

收到,谢谢大佬