Comments (4)
加一个child_stack判断null再试下
from unidbg.
加一个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)
from unidbg.
这个系统调用注释掉没关系
from unidbg.
这个系统调用注释掉没关系
哦哦 好,注释掉好像可以继续运行。谢谢了
from unidbg.
Related Issues (20)
- MemoryRead8[dynarmic.cpp->MemoryRead8:298]: vaddr=0000000040014000
- Exception in thread "main" java.lang.ArithmeticException: / by zero HOT 2
- DnsProxyDaemon handle command => gethostbyname 0 localhost 2 怎么实现 HOT 1
- [UIDevice userInterfaceIdiom]: unrecognized selector sent to instance xxx 这种的怎么hook 补 HOT 5
- 请教各位大佬,JNI调用如何传入String[]的参数
- 模拟执行libjiagu.so com.github.unidbg.arm.backend.BackendException: dvmObject=android.os.IServiceManager@2df32bf7, dvmClass=class android/os/IServiceManager, jmethodID=unidbg@0xffffffffd4984bb9
- 求助 Find symbol "bep_load" failed: handle=0x40050000, LR=RX@0x4001f1f4[librand.so]0x1f1f4
- hook_add_new bug
- 请求支持套嵌调用 HOT 8
- 加载JNI_OnLoad后找不指定方法
- 尴尬了 android/webkit/CookieManager->getCookie(Ljava/lang/String;)Ljava/lang/String; 这个环境怎么补 HOT 1
- 大神 怎么补反射啊 HOT 1
- ARM64SyscallHandler -- handleInterrupt intno=2, NR=29, svcNumber=0x0, PC=RX@0x401dab0c[libc.so]0x6ab0c, LR=RX@0x401e424c[libc.so]0x7424c, syscall=null HOT 1
- How to analyze this error, can you achieve this for error
- 使用unidbg搞的第一个app就如此艰难,大佬能看下这个问题,快崩溃了, app是加固的 HOT 6
- getIFaceFlags: tun0 这个应该怎么搞 HOT 1
- so 加壳了 unidbg 能跑起来吗
- 关于unidbg模拟执行mtguard.so之mt3.0问题
- unidbg 执行SO里面的一个方法空指针异常
- 执行错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unidbg.