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
>>> print(ResolveFramework("1Password.app").framework)
"1Password.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework"

Additionally can detect Electron and Chromium versions:

  • Partially supports nwjs-based applications for Chromium version detection
>>> from electron_fuses import ElectronVersion
>>> print(ElectronVersion("path/to/electron").chromium_version)
"118.0.5993.144"
>>> print(ElectronVersion("path/to/electron").electron_version)
"27.1.0"
>>> print(ElectronVersion("path/to/electron").electron_release_date)
"2023-11-15T19:00:32Z"

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.4.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for electron_fuses-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 005ef48013dd52acbbf5d035d9f4cac4fb1ebe17a54ccccd7352c76dfc1699af
MD5 4ed0e3851bc02bd24f59a3b7f1415cc4
BLAKE2b-256 121566e98b710d56f0a2beb0c8edd26117267899d41428b7cbf105b7406dccd7

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