Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nowsecure/frida-panic
Easy crash-reporting for Frida-based applications.
https://github.com/nowsecure/frida-panic
frida
Last synced: 3 months ago
JSON representation
Easy crash-reporting for Frida-based applications.
- Host: GitHub
- URL: https://github.com/nowsecure/frida-panic
- Owner: nowsecure
- License: mit
- Created: 2016-03-13T20:00:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T11:55:26.000Z (about 5 years ago)
- Last Synced: 2024-07-09T23:02:38.814Z (4 months ago)
- Topics: frida
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 16
- Watchers: 9
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-frida - frida-panic - Easy crash-reporting for Frida-based applications (Libraries)
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;
}
}
}
```