Interceptor

all functions from frida Interceptor are available.

Table of contents

  1. attach

attach

Interceptor.attach(targetPtr, function() {
    // execute logic here
    // dwarf will break the thread and output the content in the ui unless an integer < 0 is returned
    // the same can be applied to onLoads hooks

    api.setData('hit ' + n_hits, 'content');
    n_hits += 1;

    // don't break or sleep
    return -1;
});