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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for electron_fuses-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ded344d853bca4b7947173b0440eb275df1808bbef1d0f40559fa1e074d651f
MD5 0514303f3c618cb26091f3b5979555d4
BLAKE2b-256 e38d88915417983ce72b9b9805603c5e5399238fb1378b29828335b70fbde436

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