frida-panic
v3.0.0
Published
Easy crash-reporting for Frida-based applications
Downloads
14
Readme
frida-panic
Easy crash-reporting for Frida-based applications.
Example
In your agent.js:
const panic = require('frida-panic');
panic.handler.install({
onPanic(error) {
send({ name: '+panic', payload: error });
recv('+panic-ack', _ => true).wait();
}
});
In your application:
const panic = require('frida-panic');
...
script.events.listen('message', onMessage);
function onMessage(message, data) {
if (message.type === 'send') {
const stanza = message.payload;
switch (stanza.name) {
case '+panic':
console.error(panic.format(stanza.payload));
device.kill(pid);
break;
}
}
}