frida常用api

Frida 常用模块API:

Java 模块:Hook Java 层的类 方法 相关

    Java.perfom(function)
    Java.method.implemention = function(){}

Module 模块:处理so相关

   pointer =  Module.findExoportByName(so库名, 方法名), 返回库中方法地址指针
   base_pointer = Module.findBaseAddress(so库名)  , 返回该so库基地址

Memory 模块:内存操作相关

    Momery.readCString(pointer), 把pointer还原成字符串, 注意类型正确。

Process 模块:处理当前线程相关

    Process.findMouduleByAddress(pointer(地址指针)), 返回Module对象(即so库) (https://frida.re/docs/javascript-api/#module)

Interceptor 模块:操作指针相关,多用来Hook Native 相关

  interceptor.attach(pointer, callbacks)
          callbacks: onEnter ,  OnLeave 
  interceptor.replace(pointer, replacement)

你可能感兴趣的:(frida常用api)