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).
Building from source
Prerequisites
- Rust (Compilation support)
- Python (3.7 and up)
Advisory warning
It is advised to build in a python virtual environment, so that you do not accidentally break anything that depends on this package.
Steps
- Fetch repository:
git clone https://github.com/memflow/memflow-py
- Install maturin package:
pip install maturin
- Install dev packages:
pip install '.[dev]'
- Build wheels and install package:
maturin develop
- Repeat step 4 when you make changes to source.
- Test your changes:
python -m pytest
For more information on building please see Maturin.
Example
from memflow import *
from ctypes import *
class COFFHeader(Structure):
_fields_ = [
("_pad0x0", c_byte * 6),
("sections", c_short),
("timestamp", c_uint32),
]
def __str__(self):
return f"{self.sections}, {self.timestamp}"
inventory = Inventory()
os = inventory.os("native")
process = os.process_from_name("CalculatorApp.exe")
module = process.module_from_name("CalculatorApp.dll")
header = process.read(module.base + 0x40, COFFHeader)
print(header)
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.3-cp37-abi3-win_amd64.whl
(575.2 kB
view hashes)
Close
Hashes for memflow-0.1.3-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c31cd95a01979cb784518ca3caf0bf66f93f16a9a6953190b96ff6ba793d7e0e |
|
MD5 | 74d50a2515c1a339f34fd4991e0838d1 |
|
BLAKE2b-256 | 9aee0dd54c17a924ee1a414e66f6dd8a70b5fb81effb219992ad642f5b8bd8ba |
Close
Hashes for memflow-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec42ec12979493675c83a01554afaad392f781f1484abbe49fa5acaa489640e |
|
MD5 | 22bbee04a63f6e05e5a0c88c6a6620ff |
|
BLAKE2b-256 | 3fca78b5b7c93f2c5da0190a6b78f49e31aa325aa12667d9fa93f9d91ac245dc |
Close
Hashes for memflow-0.1.3-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f64901b3b84c677556aaa35c91c263d0a98053b527f92c371924d0e5383cecd2 |
|
MD5 | f8bff3d47ba8d31934a75358215f688a |
|
BLAKE2b-256 | f4f8e479e7a88eb66730003e42d521caabc85117dd6f8318f4a01fa3045a66b4 |