Skip to content

Injects an arbitrary JavaScript file into any Electrion-based application by modifying the asar archive.

License

Notifications You must be signed in to change notification settings

sinjs/electron-injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron Injector

Injects an arbitrary JavaScript file into any Electrion-based application by modifying the asar archive. This file will be ran at startup in an Electron context using preload.

Usage

Usage: electron-injector.exe [OPTIONS] --asar <ASAR> --script <SCRIPT>

Options:
  -a, --asar <ASAR>      The path to the asar file to read
  -s, --script <SCRIPT>  The JavaScript script to inject into the electron preload
  -o, --output <OUTPUT>  [default: injected.asar]
  -h, --help             Print help

Example

Inject a simple script into app.asar

echo "alert('Hello, world!')" > script.js
electron-injector -a app.asar -s script.js -o output-app.asar

License

See LICENSE

About

Injects an arbitrary JavaScript file into any Electrion-based application by modifying the asar archive.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published