能力值:
( LV2,RANK:10 )
|
-
-
2 楼
 大佬别吝啬啊,帮我解决一下大佬~~~
我起个头,大佬你填空~
var strcpyPtr = Module.findExportByName("****.so", "strcpy");
send("strcpyPtr pointers:"+strcpyPtr);
var result_pointer;
Interceptor.attach(strcpyPtr, {
onEnter: function(args) {
send("---------------------strcpy start---------------------------");
result_pointer=args[0]
send("strcpy arg0: " + Memory.readCString(args[0]));
send("strcpy arg1: " + Memory.readCString(args[1]));
},
onLeave:function(retval) {
//此处怎么处理result_pointer 才可以把赋值一个全新的char* 字符串 给它返回?
}
});
最后于 2019-11-23 18:10
被都市放猪q编辑
,原因:
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
在onEnter里this.ptr = args[0] 在onLeave里this.ptr.writeAnsiString()或者别的什么类似的writeString函数。
当然,其实我觉得你可以直接用Interceptor.replace
|
|
|