|
|
@@ -86,13 +86,13 @@ Java.perform(function () {
|
|
|
// console.log('value: ' + valueStr)
|
|
|
// }
|
|
|
// })
|
|
|
-
|
|
|
- Interceptor.attach(Module.findExportByName(null, 'ioctl'), {
|
|
|
+ const SIOCGIFHWADDR = 0x8927;
|
|
|
+ Interceptor.attach(Module.findExportByName(null, 'open'), {
|
|
|
onEnter: function (args) {
|
|
|
- Log.e('nl_socket_alloc', args[0])
|
|
|
+ var path = Memory.readCString(args[0])
|
|
|
+ Log.e('fopen', path)
|
|
|
},
|
|
|
onLeave: function (retval) {
|
|
|
- Log.e('nl_socket_alloc: ' + retval)
|
|
|
}
|
|
|
})
|
|
|
// // var libart = Process.getModuleByName('libart.so')
|
|
|
@@ -130,6 +130,4 @@ Java.perform(function () {
|
|
|
|
|
|
return content
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
})
|