Skip to main content

Modern Python memory reading/writing library

Project description

Hooker

Hooker is a modern Python library for reading and writing memory of running processes on Windows.

Features

  • Attach to a process by name or PID
  • Read/write bytes, integers, floats
  • Safe error handling
  • Convenience utilities

Example

from hooker import Hooker, Memory

h = Hooker("notepad.exe")
mem = Memory(h.handle)

# Read 4 bytes
data = mem.read(0x12345678, 4)
print(data)

# Write integer
mem.write_int(0x12345678, 1337)

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

memhook-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

memhook-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file memhook-0.1.0.tar.gz.

File metadata

  • Download URL: memhook-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for memhook-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1876c12d46c81e26cb8eb0919fa24bdd57a38953193149332eaf962852b859df
MD5 81f7da500405c4e4d9d202de0d9c294d
BLAKE2b-256 40572dd491c13cd0c29cd57081f71ef97a90921f3d4d884f24f450de51215e76

See more details on using hashes here.

File details

Details for the file memhook-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: memhook-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for memhook-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6100d17f46d33bff5fb393dbae0d64a3f6e412eccef5a20853bbcb6d8a186dcb
MD5 26382bef802624f26c3f90b691f549c8
BLAKE2b-256 9db305a7dc778f09be98c928a9d91042f1ed74cfc27e225290d1a0f8cc956225

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