How to use the frida.MessageType function in frida

To help you get started, we’ve selected a few frida examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oleavr / frida-tool-example / lib / application.ts View on Github external
private onMessage = (message: frida.Message, data: Buffer | null): void => {
        switch (message.type) {
            case frida.MessageType.Send:
                console.error(`[PID=${this.pid}]:`, message.payload);
                break;
            case frida.MessageType.Error:
                console.error(`[PID=${this.pid}]:`, message.stack);
                break;
            default:
        }
    };
}
github nowsecure / airspy / lib / application.ts View on Github external
private onMessage = (message: frida.Message, data: Buffer | null): void => {
        switch (message.type) {
            case frida.MessageType.Send:
                this.delegate.onEvent(message.payload, data);
                break;
            case frida.MessageType.Error:
                const e = new Error(message.description);
                e.stack = message.stack;
                this.delegate.onError(e);
                break;
            default:
        }
    };
}

frida

Inject JavaScript to explore native apps on Windows, Mac, Linux, iOS and Android

LGPL-2.0 WITH WxWindows-excep…
Latest version published 14 days ago

Package Health Score

73 / 100
Full package analysis