Skip to content

Commit 437d4df

Browse files
author
@
committed
add md5 hex
1 parent 2d70578 commit 437d4df

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
export function PointerHexString(p:NativePointer,n:number) {
3+
var hex = []
4+
for(var i=0;i<n;i++){
5+
hex.push((p.add(i).readU8() & 0xF).toString(16).toUpperCase());
6+
}
7+
}

0 commit comments

Comments
 (0)