Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 906 Bytes

ios.md

File metadata and controls

45 lines (36 loc) · 906 Bytes

iOS 文档

获取函数地址

const addr = FCiOS.getFuncAddr('*[NVEnvironment deviceId]');

模糊查找函数地址

const targets = FCiOS.findAllByPattern('*[* base64EncodedDataWithOptions*]');
targets.forEach(function (target: any) {
    DMLog.i('base64EncodedDataWithOptions', 'target.name: ' + target.name + ', target.address: ' + target.address);
    Interceptor.attach(target.address, {
        onEnter: function (args) {
            FCiOS.showStacks(this);
        },
        onLeave: function (retval) {
            DMLog.i('base64EncodedDataWithOptions', 'retval: ' + FCiOS.nsdataToString(retval));
        }
    })
});

打印堆栈

FCiOS.showStacks(this);

dump ui

console.log(FCiOS.dump_ui());

trace openURL

FCiOS.trace_url();

trace NSLog

FCiOS.trace_NSLog();