Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nowsecure/frida-panic

Easy crash-reporting for Frida-based applications.
https://github.com/nowsecure/frida-panic

frida

Last synced: about 2 months ago
JSON representation

Easy crash-reporting for Frida-based applications.

Awesome Lists containing this project

README

        

# frida-panic

Easy crash-reporting for [Frida](http://frida.re)-based applications.

## Example

In your agent.js:

```js
const panic = require('frida-panic');

panic.handler.install({
onPanic(error) {
send({ name: '+panic', payload: error });
recv('+panic-ack', _ => true).wait();
}
});
```

In your application:

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