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
- Ensure you have Rust and Python installed on your system.
- Clone the repository.
- Navigate to the project directory.
- Create a virtual environment and activate it:
python -m venv pyo3 source pyo3/Scripts/activate # On Windows
- Install the required dependencies:
pip install -r requirements.txt
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file process_memory_writer-0.1.0.tar.gz.
File metadata
- Download URL: process_memory_writer-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2de655170cfa4fb9251264c87a42897158e8d878492f3009de59ad59b5423bf8
|
|
| MD5 |
d6d56f18dcd08e4540b910a8ad0b4e8c
|
|
| BLAKE2b-256 |
d47e1ada38b52eaf50c5fb895989cc51d9537ff90b20e166feba46fc17005274
|
File details
Details for the file process_memory_writer-0.1.0-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: process_memory_writer-0.1.0-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 144.1 kB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d38a5ade9e2abc8db6a699f61376aafb649a1404b3ff7e949c66637692a47bd1
|
|
| MD5 |
41fdaefa548445c156cb0df86366f18a
|
|
| BLAKE2b-256 |
ef69154e09af965904ed1f82f9fd3c96faa58168c5d762b7959d5f4d9d206bf7
|
File details
Details for the file process_memory_writer-0.1.0-cp311-abi3-win32.whl.
File metadata
- Download URL: process_memory_writer-0.1.0-cp311-abi3-win32.whl
- Upload date:
- Size: 136.6 kB
- Tags: CPython 3.11+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebd0b639111e5db35d117a2eafc3ecf661fb939c2649d638c91dadb0477c7337
|
|
| MD5 |
f0f611eb55e78c90e42769db33ebe23f
|
|
| BLAKE2b-256 |
b4ae0439e1e5ac934f961ce563473e9d409d2fe1d43751cc8c6edc404049fb6f
|
File details
Details for the file process_memory_writer-0.1.0-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: process_memory_writer-0.1.0-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 150.5 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eafd42a291b38c4b470533a016456c597e33d46870eb64e6540ef520b26ede0c
|
|
| MD5 |
e6a697cb3c5e61a731394f5ba765654d
|
|
| BLAKE2b-256 |
980e7b48aa9ce9d0fab79eff1ec97fa2791ea6a314f660afe4092aa7461dc7f0
|
File details
Details for the file process_memory_writer-0.1.0-cp39-abi3-win32.whl.
File metadata
- Download URL: process_memory_writer-0.1.0-cp39-abi3-win32.whl
- Upload date:
- Size: 143.0 kB
- Tags: CPython 3.9+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6f0893f16c0d95f7c739aae17d39f508d535a76b07ef763753ae18cce9c4f6c
|
|
| MD5 |
63f79c86ba6d43d0bbf6b21883584fc3
|
|
| BLAKE2b-256 |
7f33edd6729f0d3dbff966670782b507db291b6742c8271211d3aa2b45f357c7
|