forked from CrackerCat/frida_app_hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wechat.js
98 lines (94 loc) · 4.26 KB
/
wechat.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// js hook wechat 7.0.19
// account.bind.ui.MobileFriendUI b -》 app.ak.c -> br.d.b ->br.d$9.onDone -> MMFragmentActivity.startActivity
// frida -U -l wechat.js -f com.tencent.mm --no-pause
Java.perform(function () {
var RecentAppBrandView=Java.use("com.tencent.mm.plugin.appbrand.widget.desktop.RecentAppBrandView$a$1");
RecentAppBrandView.onClick.overload('android.view.View').implementation=function(arg1){
send("WebView.loadUrl...");
console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
var result = this.onClick(arg1)
return result
}
// 好友匹配
// var MobileFriendUI=Java.use("com.tencent.mm.plugin.account.bind.ui.MobileFriendUI");
//
// MobileFriendUI.b.overload('com.tencent.mm.plugin.account.friend.a.a').implementation=function(arg1){
// send("MobileFriendUI Hook Start...");
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// send(arg1.getUsername())
// return this.b(arg1)
// }
//
// var a=Java.use("com.tencent.mm.plugin.account.friend.a.a");
//
// // a.convertFrom.overload('android.database.Cursor').implementation=function(arg1){
// // send("convertFrom Hook Start...");
// // console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// // return this.convertFrom(arg1)
// // }
//
// // a.ap.overload('[B').implementation=function(arg1){
// // send("convertFrom Hook Start...");
// // console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// // var result = this.ap(arg1)
// // send(this.iJS.value)
// // send(this.iJT.value)
// // return result
// // }
//
// var a=Java.use("com.tencent.mm.plugin.finder.api.b$a");
// a.crX.overload().implementation=function(){
// send("crX Hook Start...");
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// var result = this.crX()
// return result
// }
//
// var db=Java.use("com.tencent.mm.aj.d$b");
// db.aBj.overload().implementation=function(){
// send("aBj Hook Start...");
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// var result = this.aBj()
// return result
// }
// var db=Java.use("com.tencent.mm.aj.d$b");
// db.aBj.overload().implementation=function(){
// send("aBj Hook Start...");
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// var result = this.aBj()
// return result
// }
// var fb=Java.use("com.tencent.mm.aj.f$b");
// fb.aBj.overload().implementation=function(){
// send("fb aBj Hook Start...");
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// var result = this.aBj()
// return result
// }
//
// var fb=Java.use("com.tencent.mm.aj.f$b");
// fb.aBj.overload().implementation=function(){
// send("fb aBj Hook Start...");
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// var result = this.aBj()
// return result
// }
//
// var i=Java.use("com.tencent.mm.aj.i");
// i.convertFrom.overload('android.database.Cursor').implementation=function(arg1){
// send("convertFrom aBj Hook Start...");
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));
// var result = this.convertFrom(arg1)
// return result
// }
});
//img_flag reserved1
// intent.putExtra("Contact_User", aVar.getUsername());
// intent.putExtra("Contact_Nick", aVar.getNickName());
// intent.putExtra("Contact_Mobile_MD5", aVar.mo33365JC());
// intent.putExtra("Contact_Alias", aVar.iJY);
// intent.putExtra("Contact_Sex", aVar.iJT);
// intent.putExtra("Contact_Signature", aVar.iJW);
// intent.putExtra("Contact_RegionCode", RegionCodeDecoder.m13147aW(aVar.iKc, aVar.iJU, aVar.iJV));
// intent.putExtra("Contact_Scene", 13);
// intent.putExtra("Contact_ShowUserName", false);