Monster-in-the-middle native messaging and spy on your favorite browser extensions.
-
Clone this repository:
git clone https://github.com/KarimPwnz/nativemessaging-mitm
-
Open
configs.json
and add the target app manifest path, the name of the target extension, and the app manifest's original app path:
{
"/Users/example/Library/Application Support/Mozilla/NativeMessagingHosts/example.json": {
"name": "example",
"originalApp": "/Applications/example.app/example"
}
}
- Change the app path in your target's app manfiest to the repository's
mitm.js
script:
{
"name": "com.example",
"description": "Example",
"path": "/path/to/nativemessaging-mitm/mitm.js",
"type": "stdio",
"allowed_extensions": ["example@example.com"]
}
- Done! Run the target browser extension and
logs/${extension_name}.log
will start logging:
$ tail -f /path/to/nativemessaging-mitm/logs/example.log
[1] ← (APP): {"hello":"extension"}
[2] → (EXTENSION): {"hello":"app"}
[3] ← (APP): {"okay":"bye"}