An electron application wrapper that utilizes the remote debug console to inject code into electron applications to enable developer tools
Project description
💉 electron-inject
You find yourself locked out of closed source electron applications with no easy way to enable developer tools? ↷ electron-inject is here to help 👲
electron-inject is an application wrapper that utilizes the remote debug console to inject javascript code into electron based applications. For example, this can be pretty handy to enable otherwise unavailable features like the built-in developer console.
install
$ pip install electron-inject
or
$ python setup.py install
usage
$ python -m electron_inject --help
Usage:
usage:
electron_inject [options] - <electron application>
example:
electron_inject --enable-devtools-hotkeys - /path/to/electron/powered/application [--app-params app-args]
Options:
-h, --help show this help message and exit
-d, --enable-devtools-hotkeys
Enable Hotkeys F12 (Toggle Developer Tools) and F5
(Refresh) [default: False]
-b, --browser Launch Devtools in default browser. [default: False]
-t TIMEOUT, --timeout=TIMEOUT
Try hard to inject for the time specified [default:
none]
Showcase
Inject hotkeys F12:toggle devconsole and F5:reload into closed source apps with devconsole disabled.
--enable-devtools-hotkeys
.. enable developer hotkeys
--timeout=xx
.. patch all known remote webContent/windows in a timeframe of xx
seconds. set this to an arbitrary high value to make sure we're patching all future windows.
$ python -m electron_inject -d -t 60 - \\PATH\TO\Local\WhatsApp\app-0.2.2244\WhatsApp.exe
If this gives you an error try launching it with the alternative browser method:
$ python -m electron_inject --browser - \PATH\TO\Local\WhatsApp\app-0.2.2244\WhatsApp.exe
slack
$ python -m electron_inject -d -t 60 - \\PATH\TO\Local\slack\app-2.5.2\slack.exe
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for electron_inject-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021ed90bd8f8301f98b40c6c6cad12be47e099aca40d1fdd4130f702654e84f1 |
|
MD5 | 8a1ec18471c08649d19898af8453f758 |
|
BLAKE2b-256 | b85b8374b4824bbdc0d894759dffebd26d9e0f6ea772cdaf31b757b4c5123eba |
Hashes for electron_inject-0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7844942f1961ef37abff2327e3c47b26fb49997ab6633883ac1bf076f83f885c |
|
MD5 | 55cd5ca134ff734bd2190a2b49f08f24 |
|
BLAKE2b-256 | bb56f796975913520f08987fdf839223871cd55fef962e10a7d74d68bf165077 |