You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java.perform(function() {
var targetClass='com.shandui.common.utils.MD5Util';
var methodName='getMD5';
var gclass = Java.use(targetClass);
gclass[methodName].overload('java.lang.String').implementation = function(arg0) {
console.log('\nGDA[Hook getMD5(java.lang.String)]'+'\n\targ0 = '+arg0);
klog(arg0)
var i=thismethodName;
console.log('\treturn '+i);
klog(i)
console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Throwable").$new()));
return i;
}
})
function klog(data){
var message={};
message["jsname"]="%customName%";
message["data"]=data;
send(message);
}
function klogData(data,key,value){
var message={};
message["jsname"]="%customName%";
message["data"]=data;
message[key]=value;
send(message);
}
自定义脚本那里,我用下面代码在原来的frida能用,但在window你这工具没信息显示?
Java.perform(function() {
var targetClass='com.shandui.common.utils.MD5Util';
var methodName='getMD5';
var gclass = Java.use(targetClass);
gclass[methodName].overload('java.lang.String').implementation = function(arg0) {
console.log('\nGDA[Hook getMD5(java.lang.String)]'+'\n\targ0 = '+arg0);
var i=thismethodName;
console.log('\treturn '+i);
return i;
}
})
日志以下,没显示
2022-12-07 09:44:59 default.js init hook success
2022-12-07 09:45:00 加载appinfo
2022-12-07 09:49:23 default.js init hook success
2022-12-07 09:49:23 加载appinfo
The text was updated successfully, but these errors were encountered: