function hook_so_func2() {
Java.perform(function () {
var module_addr
=
Module.findBaseAddress(
"libmyjni.so"
);
var func_addr
=
module_addr.add(
0x11F9
);
console.log(func_addr)
Interceptor.attach(func_addr,{
onEnter:function(args){
console.log(
"args"
,hexdump(args[
0
]))
},onLeave:function (retval) {
/
/
console.log(hexdump(retval))
}
})
})
}
args
0
1
2
3
4
5
6
7
8
9
A B C D E F
0123456789ABCDEF
f2793480
78
57
67
f2
00
80
7c
f2 e0 c3
72
f2
07
00
00
00
xWg...|...r.....
f2793490
07
00
00
00
00
2a
7f
f2
00
10
16
f6
01
00
00
00
.....
*
..........
f27934a0
00
02
00
00
00
00
00
00
07
00
00
00
01
00
00
00
................
f27934b0
10
20
a7 d6
10
20
a7 d6
18
20
a7 d6
10
6d
6f
6e
. ... ... ...mon
f27934c0
69
74
6f
72
73
00
00
00
00
35
79
f2
00
35
79
f2 itors....
5y
..
5y
.
f27934d0
80
35
79
f2
00
10
00
00
28
61
67
f2
20
07
f9 eb .
5y
.....(ag. ...
f27934e0
20
07
f9 eb
28
07
f9 eb
0a
ac
24
00
00
00
00
00
...(.....$.....
f27934f0
00
00
00
00
01
00
7b
f2 e8 f2
7b
f2
38
f3
7b
f2 ......{...{.
8.
{.
f2793500
80
f9
66
13
00
00
00
00
00
00
00
00
00
00
00
00
..f.............
f2793510
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
................