Giter Site home page Giter Site logo

juspky / electron-inject-phyton-3.x Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tintinweb/electron-inject

2.0 0.0 0.0 8 KB

Inject javascript into closed source electron applications e.g. to enable developer tools for debugging.

Python 100.00%

electron-inject-phyton-3.x's Introduction

๐Ÿ’‰ 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.

slack

install

$ pip install electron-inject

or

$ python setup.py install

if something related to websockets does not work you also need to run

$ pip install websocket-client

usage

$ python -m electron_inject --help
Usage:
    usage:
           electron_inject [options] - <electron application>

    example:
           electron_inject --enable-dev-tool-hotkey - /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]
  -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.

whatsapp

$ python -m electron_inject -d -t 60 - \\PATH\TO\Local\WhatsApp\app-0.2.2244\WhatsApp.exe

whatsapp gif

slack

$ python -m electron_inject -d -t 60 - \\PATH\TO\Local\slack\app-2.5.2\slack.exe

slack

electron-inject-phyton-3.x's People

Contributors

tintinweb avatar juspky avatar

Stargazers

Leonardo Amaro avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.