Skip to main content

Python-implementation of Electron's fuses module.

Project description

Electron Fuses

Python-implementation of Electron's fuses module, intended for querying fuse states of an Electron binary.

Installation

python3 -m pip install electron-fuses

Usage

>>> from electron_fuses import Fuses
>>> fuses = Fuses("path/to/electron")

>>> print(fuses)

   RUN_AS_NODE: DISABLE
   ENABLE_COOKIE_ENCRYPTION: DISABLE
   ENABLE_NODE_OPTIONS_ENVIRONMENT_VARIABLE: DISABLE
   ENABLE_NODE_CLI_INSPECT_ARGUMENTS: DISABLE
   ENABLE_EMBEDDED_ASAR_INTEGRITY_VALIDATION: ENABLE
   ONLY_LOAD_APP_FROM_ASAR: ENABLE
   LOAD_BROWSER_PROCESS_SPECIFIC_V8_SNAPSHOT: DISABLE

>>> from electron_fuses import FuseConfig
>>> print(fuses.config[FuseV1Options.RUN_AS_NODE])

   FuseState.DISABLE

If searching a macOS executable, the .app or entry point (under Contents/MacOS) can be provided to electron_fuses.ResolveFramework() to determine the path to the Electron Framework for fuse parsing:

>>> from electron_fuses import ResolveFramework
>>> framework_path = ResolveFramework("1Password.app").framework_path()
>>> print(framework_path)
"1Password.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework"

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

electron_fuses-1.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file electron_fuses-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for electron_fuses-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3762b3aba168355788ce36361c704cda09528e577baa1448a053b722a36919ee
MD5 1646e704e8f8c8d7bb18b53bc62d2c46
BLAKE2b-256 71f5eef4eaf6e56350683727bb0a4fa08b9f7da10e4fde1424e7fde3d6e8d61a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page