Comments (10)
传的java类型不对,一般是Context有很多子类,要传特定的子类
from unidbg.
传的java类型不对,一般是Context有很多子类,要传特定的子类
我翻源码的时候看到的是com.content.Context,那应该要传入什么子类?
from unidbg.
根据运行时传入的具体类型
from unidbg.
据运行时传入的具体类
我hook到传入的子类是
// com/ss/android/ugc/aweme/app/host/HostApplication
Object custom = null;
DvmObject context = vm.resolveClass("com/ss/android/ugc/aweme/app/host/HostApplication").newObject(custom);
你看看这样有问题吗,这样调用还是出现那个异常了
from unidbg.
这个HostApplication到Context之间的类都试下
from unidbg.
这个HostApplication到Context之间的类都试下
// com/ss/android/ugc/aweme/app/host/HostApplication
// --com/ss/android/ugc/aweme/app/l
// -- com/ss/android/ugc/aweme/app/q
// -- android/app/Application
// -- android/content/ContextWrapper
// --android/content/Context
这些我都试过但是还是不行
from unidbg.
打开cn.banny.unidbg.linux.android.dvm的DEBUG,分析下对应的方法注册在哪个类?
from unidbg.
打开cn.banny.unidbg.linux.android.dvm的DEBUG,分析下对应的方法注册在哪个类?
[12:13:21 474] DEBUG [cn.banny.unidbg.linux.android.dvm.DalvikVM] (DalvikVM$75:1337) - RegisterNatives dvmClass=com/ss/sys/ces/a, name=rb, signature=(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)[B, fnPtr=unicorn@0x40031085[libcms.so]0x31085
我把注册的时候的内容都打印出来了 context签名就是android/content/Context,但是还是报那个错
from unidbg.
打开log后,把DEBUG内容发出来分析下
from unidbg.
log.txt
日志
from unidbg.
Related Issues (20)
- 多线程支持
- unidbg调用so层函数Refmd5sec报错BackendException,(Refmd5sec是反射调用了java层的一个生成md5的方法)
- 多线程pthread_attr_setstacksize执行异常
- 如何补一个返回 HashMap 的环境?
- 黑盒调用so文件种函数的问题请教,数组参数该如何传入
- Map<String, List<String>>参数如何构造啊啊啊啊,求解 HOT 2
- 如何补 KeyStore 的环境? HOT 1
- 非标准文件该怎样补
- AndroidModule VirtualModule执行上的一些小问题 HOT 3
- 没有对 SocketIO.SOCK_RAW 进行模拟
- 大佬,clock_gettime clk_id=2 报错问题,能否解决下 HOT 1
- 求大佬指点,这种环境怎么补,全网也没找到相似的例子。 HOT 3
- 这哪个app
- 怎么用vscode调试?
- 调用方法时报错 --- svc number :243184,求教各位大佬如何解决
- 本地正常,部署到服务器后报错。Read memory failed: address= HOT 1
- AttachCurrentThread 不执行
- pthread_join Pointer 对象为空
- NR=222 munmap 在unidbg中mmap已经被模拟,但是后续的java.lang.IllegalStateException是什么问题
- Static and dynamic analysis
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.