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.
Metadata
Release files for memflow 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| memflow-0.2.0-cp37-abi3-win_amd64.whl | CPython 3.7 | abi3 | Windows x86-64 | Details |
| memflow-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.7 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| memflow-0.2.0-cp37-abi3-macosx_10_12_x86_64.whl | CPython 3.7 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 2.7 MB
Release files / memflow-0.2.0-cp37-abi3-win_amd64.whl
| Download URL | memflow-0.2.0-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 623.6 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9e25cff9447d283b05f9fb60f324c7ea7ea1162d0f84c98394d207f3de628146
|
|
BLAKE2b-256 checksum How to use checksums |
de7bbe7f240da303528cc6967729524696f41f9c7ad72a013aac63af7785880f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Release files / memflow-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | memflow-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
205cd62b72945c126eb52337d06f7912db2cbd7b86a12f15ca9538ea64303c6c
|
|
BLAKE2b-256 checksum How to use checksums |
f29ab108868d45c27eb655ebe8b0045edb008afa9c906c5ae6a23caa850e0dd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Release files / memflow-0.2.0-cp37-abi3-macosx_10_12_x86_64.whl
| Download URL | memflow-0.2.0-cp37-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 837.4 kB |
| Tags | CPython 3.7 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
8e96d60aa8fea6fb1812b9bb3f1578718790ac1a4cdee94aa229ded839575bb7
|
|
BLAKE2b-256 checksum How to use checksums |
cebf1a939212ad9916a8e99dfcfedf5e5a4170bf07e16a8a898fba9ad57067b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|