Frida 中如何使用 class_copyPropertyList ?

我的目标是要获取类的属性。
在frida 的ObjC 中我看到了protocol_copyPropertyList ,但是没有class_copyPropertyList? 我依葫芦画瓢新加了一个模块
module: “JavaScriptCore”,
functions: {
“class_copyPropertyList”: [‘pointer’, [ ‘pointer’, ‘pointer’]]
}
但是用不了。
求教育:disappointed_relieved:
frida的ObjC源码地址 https://github.com/frida/frida-objc/blob/master/index.js

class_copyPropertyList = new NativeFunction(Module.findExportByName(null, ‘class_copyPropertyList’), ‘pointer’, [‘pointer’, ‘pointer’]);

OC 运行时方法,可以通过 ObjC.api 获取,比如:ObjC.api.class_copyProtocolList(,,)

1 个赞

但是么有 class_copyPropertyList