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)
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。