We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d70578 commit 437d4dfCopy full SHA for 437d4df
frida-agent-example/agent/ios/cc_md5.ts
@@ -0,0 +1,11 @@
1
+export function hook_CC_MD5(callback:(buf:NativePointer,len:number)=>void,callback1:(hash:NativePointer)=>void){
2
+ var CC_MD5=Module.getExportByName(null,"CC_MD5")
3
+ Interceptor.attach(CC_MD5,{
4
+ onEnter:function(args){
5
+ callback(args[0],args[1].toInt32())
6
+ },
7
+ onLeave:function (r){
8
+ callback1(r)
9
+ }
10
+ })
11
+}
frida-agent-example/agent/ios/hex.ts
@@ -0,0 +1,7 @@
+
+export function PointerHexString(p:NativePointer,n:number) {
+ var hex = []
+ for(var i=0;i<n;i++){
+ hex.push((p.add(i).readU8() & 0xF).toString(16).toUpperCase());
0 commit comments