Skip to content

nowsecure/frida-panic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
    }
  }
}

About

Easy crash-reporting for Frida-based applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published