GithubHelp home page GithubHelp logo

测试dy遇到的情况 about unidbg HOT 4 CLOSED

zhkl0228 avatar zhkl0228 commented on May 14, 2024
测试dy遇到的情况

from unidbg.

Comments (4)

zhkl0228 avatar zhkl0228 commented on May 14, 2024

加一个child_stack判断null再试下

from unidbg.

JiangJianCong avatar JiangJianCong commented on May 14, 2024

加一个child_stack判断null再试下

试了下 就到这里报错了 还是child_stack为null

修改代码:

case 120:
                    Pointer child_stack = UnicornPointer.register(emulator, ArmConst.UC_ARM_REG_R1);
                    int fn = ((Number) u.reg_read(ArmConst.UC_ARM_REG_R5)).intValue();
                    int arg = ((Number) u.reg_read(ArmConst.UC_ARM_REG_R6)).intValue();
                    if (child_stack!=null && child_stack.getInt(-4) == fn && child_stack.getInt(-8) == arg) {
                        u.reg_write(ArmConst.UC_ARM_REG_R0, bionic_clone(u, emulator));
                    } else {
                        u.reg_write(ArmConst.UC_ARM_REG_R0, pthread_clone(u, emulator));
                    }
                    return;

[12:46:44 312]  WARN [cn.banny.unidbg.linux.ARMSyscallHandler] (ARMSyscallHandler:377) - handleInterrupt intno=2, NR=120, svcNumber=0x0, PC=unicorn@0x401075ec[libc.so]0x175ec, syscall=null
java.lang.NullPointerException
	at cn.banny.unidbg.linux.ARMSyscallHandler.pthread_clone(ARMSyscallHandler.java:624)
	at cn.banny.unidbg.linux.ARMSyscallHandler.hook(ARMSyscallHandler.java:204)
	at unicorn.Unicorn.invokeInterruptCallbacks(Unicorn.java:123)
	at unicorn.Unicorn.emu_start(Native Method)
	at cn.banny.unidbg.AbstractEmulator.emulate(AbstractEmulator.java:267)
	at cn.banny.unidbg.AbstractEmulator.eFunc(AbstractEmulator.java:360)
	at cn.banny.unidbg.arm.AbstractARMEmulator.eFunc(AbstractARMEmulator.java:201)
	at cn.banny.unidbg.linux.LinuxModule.emulateFunction(LinuxModule.java:154)
	at cn.banny.unidbg.linux.android.dvm.DvmClass.callStaticJniMethod(DvmClass.java:140)

image

from unidbg.

zhkl0228 avatar zhkl0228 commented on May 14, 2024

这个系统调用注释掉没关系

from unidbg.

JiangJianCong avatar JiangJianCong commented on May 14, 2024

这个系统调用注释掉没关系

哦哦 好,注释掉好像可以继续运行。谢谢了

from unidbg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.