Skip to main content

A library for writing to process memory

Project description

Process Memory Writer

process_memory_writer is a Python extension written in Rust using PyO3. It allows reading and writing memory of another process on Windows systems.

Overview

The MemoryWriter class enables users to:

  • Open a process by its executable name or PID.
  • Read memory from the target process.
  • Write memory to the target process.
  • Continuously write data to a specific memory address in the process.

Safety and Security Considerations

  • Modifying another process's memory can be dangerous and may cause system instability.
  • Ensure that you have the necessary permissions to manipulate the target process.
  • Be aware of legal implications and software licenses when using this functionality.

Installation

  1. Ensure you have Rust and Python installed on your system.
  2. Clone the repository.
  3. Navigate to the project directory.
  4. Create a virtual environment and activate it:
    python -m venv pyo3
    source pyo3/Scripts/activate  # On Windows
    
  5. Install the required dependencies:
    pip install -r requirements.txt
    
  6. Build the project using Maturin:
    maturin develop
    

Usage

Here is an example of how to use the MemoryWriter class:

from process_memory_writer import MemoryWriter

# Create a new MemoryWriter instance
writer = MemoryWriter()

# Open a process by name
success = writer.open_process("notepad.exe")
if success:
    print("Process opened successfully")
else:
    print("Failed to open process")

# Open a process by PID
success = writer.open_process(1234)
if success:
    print("Process opened successfully")
else:
    print("Failed to open process")

# Set memory data to write
writer.set_memory_data(0x12345678, b"data")

# Start continuous memory writing
writer.start()

# Stop continuous memory writing
writer.stop()

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

process_memory_writer-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distributions

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

process_memory_writer-0.1.0-cp311-abi3-win_amd64.whl (144.1 kB view details)

Uploaded CPython 3.11+Windows x86-64

process_memory_writer-0.1.0-cp311-abi3-win32.whl (136.6 kB view details)

Uploaded CPython 3.11+Windows x86

process_memory_writer-0.1.0-cp39-abi3-win_amd64.whl (150.5 kB view details)

Uploaded CPython 3.9+Windows x86-64

process_memory_writer-0.1.0-cp39-abi3-win32.whl (143.0 kB view details)

Uploaded CPython 3.9+Windows x86

File details

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

File metadata

File hashes

Hashes for process_memory_writer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2de655170cfa4fb9251264c87a42897158e8d878492f3009de59ad59b5423bf8
MD5 d6d56f18dcd08e4540b910a8ad0b4e8c
BLAKE2b-256 d47e1ada38b52eaf50c5fb895989cc51d9537ff90b20e166feba46fc17005274

See more details on using hashes here.

File details

Details for the file process_memory_writer-0.1.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for process_memory_writer-0.1.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d38a5ade9e2abc8db6a699f61376aafb649a1404b3ff7e949c66637692a47bd1
MD5 41fdaefa548445c156cb0df86366f18a
BLAKE2b-256 ef69154e09af965904ed1f82f9fd3c96faa58168c5d762b7959d5f4d9d206bf7

See more details on using hashes here.

File details

Details for the file process_memory_writer-0.1.0-cp311-abi3-win32.whl.

File metadata

File hashes

Hashes for process_memory_writer-0.1.0-cp311-abi3-win32.whl
Algorithm Hash digest
SHA256 ebd0b639111e5db35d117a2eafc3ecf661fb939c2649d638c91dadb0477c7337
MD5 f0f611eb55e78c90e42769db33ebe23f
BLAKE2b-256 b4ae0439e1e5ac934f961ce563473e9d409d2fe1d43751cc8c6edc404049fb6f

See more details on using hashes here.

File details

Details for the file process_memory_writer-0.1.0-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for process_memory_writer-0.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eafd42a291b38c4b470533a016456c597e33d46870eb64e6540ef520b26ede0c
MD5 e6a697cb3c5e61a731394f5ba765654d
BLAKE2b-256 980e7b48aa9ce9d0fab79eff1ec97fa2791ea6a314f660afe4092aa7461dc7f0

See more details on using hashes here.

File details

Details for the file process_memory_writer-0.1.0-cp39-abi3-win32.whl.

File metadata

File hashes

Hashes for process_memory_writer-0.1.0-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 b6f0893f16c0d95f7c739aae17d39f508d535a76b07ef763753ae18cce9c4f6c
MD5 63f79c86ba6d43d0bbf6b21883584fc3
BLAKE2b-256 7f33edd6729f0d3dbff966670782b507db291b6742c8271211d3aa2b45f357c7

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