Physical memory introspection framework
Project description
memflow-py
Python support for Memflow, a physical memory introspection framework written in Rust.
Installation
- Install python package:
pip install memflow
- Install appropriate memflow components (see memflowup).
Example
from memflow import *
class COFFHeader(Structure):
_fields_ = [
("_pad0x0", c_byte * 6),
("sections", c_short),
("timestamp", c_uint32),
]
inventory = Inventory()
os = inventory.create_os("native")
process = os.process_from_name("CalculatorApp.exe")
module = process.module_by_name("CalculatorApp.dll")
header = process.read(module.base + 0x40, COFFHeader)
print(header)
Building from source
Prerequisites
- Rust (Compilation support)
- Python (3.7 and up)
- python virtual environment
Steps
- Fetch repository:
git clone https://github.com/memflow/memflow-py
- Install maturin package:
pip install maturin
- Install dev packages:
pip install '.[dev]'
- Create virtualenv
virtualenv .
- Active virtualenv
source ./bin/activate
- Build wheels and install package:
maturin develop
- Repeat step 4 when you make changes to source.
- Install pytest
pip install pytest
- Test your changes:
python -m pytest
For more information on building please see Maturin.
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 Distributions
memflow-0.1.5-cp37-abi3-win_amd64.whl
(645.4 kB
view hashes)
Close
Hashes for memflow-0.1.5-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3224aee52e73099bc9c6b62252b09e8f4a28c0cfccaf16f5ff6e410cc0fc0cc |
|
MD5 | 62b4ed6fd8aeb236497bb76b11cc5fbb |
|
BLAKE2b-256 | 17a9d528ec7f2f2a0703d6ff7fb54413e09f419908bc788562a8eee8d5c36463 |
Close
Hashes for memflow-0.1.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ae4d8dd18fcd62e319bf59f74a4a29c66c504ebb961817d5e1e0c1f8ae0dad |
|
MD5 | 45bc9e8847a06edf7d6d9bd3c3e9073a |
|
BLAKE2b-256 | 066d70263a72729e14e6d3a3cc1d4d0afbbc675eaf9d6beb39e38f9f17b33d74 |
Close
Hashes for memflow-0.1.5-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cf1fa59c8558f6194cc27c785989f8e09612e614f006389bb9b6de29665da0d |
|
MD5 | 2185d7c3304ffec9e9c59f279dabf47c |
|
BLAKE2b-256 | f3aae5b92c73306ef0019f40a39c8f75cf6c1f411a6c68291e58cf3c3736b154 |