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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for electron_fuses-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d42ee55c15558f891828bc31c50856e9d2773fa12bc8d14bc75a755f9a36075
MD5 0f4944a8220d91d35b8a5fa75825f058
BLAKE2b-256 66305782dcc1fdbad3514e9c34db90cdfb7d4c5995901a1cb5b75f01328e8a01

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