1
2
3
4
5
6
7
8
|
function showStacks() {
console.log(
Java.use("android.util.Log")
.getStackTraceString(
Java.use("java.lang.Throwable").$new()
)
);
}
|
1
2
3
4
|
var e=Java.enumerateLoadedClassesSync();
for (var i = 0; i < e.length; i++) {
console.log(e[i]);
}
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
var Intent = Java.use("android.content.Intent");
Intent.$init.overload('android.content.Context', 'java.lang.Class').implementation = function (context, cls) {
console.log("Intent(context, cls) called with context: " + context + " and class: " + cls);
return this.$init(context, cls);
};
Intent.$init.overload('java.lang.String').implementation = function (action) {
console.log("Intent(action) called with action: " + action);
return this.$init(action);
};
Intent.$init.overload('java.lang.String', 'android.net.Uri').implementation = function (action, uri) {
console.log("Intent(action, uri) called with action: " + action + " and uri: " + uri);
return this.$init(action, uri);
};
|
搜索包含包名的类:
1
|
android hooking search classes com.cosmos.tools
|
打印出的类粘贴到文本文件中,每条类名前加上android hooking watch class