Comments (7)
Thanks for reporting. I'll investigate this eavning and get back to you. Python should just work; but obviously it's not in your case.
from memprocfs.
I've looked into this now. It's working perfectly on my test system with clean win10 install with latest python / anaconda and latest MemProcFS. You don't happen to run an older Windows like Windows 7; that may cause these issues since some imported symbols I recently started to use are missing and was introduced only in Windows 8.1. If you're running this on Windows 10 which version and build number are you running?
About python programming; I'm rather clueless unfortunately about good resources around this; but for memory forensics I'd say "The Art of Memory Forensics" is very good; albeit a bit old.
MemProcFS only retrieves memory required for a specific task so it's quite efficient. If you wish to get the memory dump for an individual process only you may do so, provided that you started MemProcFS with a memory dump file (i.e. not live memory from the FPGA, in that case dump to file first and then run MemProcFS on the created dump). The process minidump files are located in /name//minidump/minidump.dmp
From Python you may access this by:
from vmmpy import *
VmmPy_Initialize(['-device', 'C:/temp/memimage.raw'])
VmmPy_Initialize_Plugins()
pid = VmmPy_PidGetFromName('explorer.exe')
print(pid)
-> 4066
dumpinfo = VmmPy_VfsList('/pid/' + str(pid) + '/minidump/')
print(dumpinfo)
-> {'minidump.dmp': {'f_isdir': False, 'size': 466829312}, 'readme.txt': {'f_isdir': False, 'size': 546}}
# READ 16 bytes from the file /pid/4066/minidump/minidump.dmp starting at offset zero
VmmPy_VfsRead('/pid/' + str(pid) + '/minidump/minidump.dmp', 16, 0)
-> b'MDMP\x93\xa7\xb1d\x0b\x00\x00\x00 \x00\x00\x00'
from memprocfs.
i tried your code for getting "lsass.exe" minidump,but fail!
when i use MemProcFS.exe to mount the same memory image file ,i got "lsass.exe" minidump
fail with python code
success_with_memprocFs mount
from memprocfs.
from memprocfs.
@DK1998U I tried this and it's working with same windows version. Is your PC running Python connected to the Internet?
Minidump may download symbols from the microsoft server if this is the first time doing this and will fail if this is not possible.
from memprocfs.
it seems that after VmmPy_Initialize() function executed the initialization is not complete
from memprocfs.
@DK1998U It's completing in the background for faster startup times. If you require it to be complete at startup please add extra parameter -waitinitialize
to VmmPy_Initialize() call.
from memprocfs.
Related Issues (20)
- Disconnecting within seconds HOT 8
- [BUG] vmmsharp Vmm.MemReadArray HOT 2
- VMMDLL_Map_GetThread return failed HOT 3
- Challenges on Ubuntu 23.10 desktop HOT 1
- Rust API does not find libpdbcrust.so HOT 4
- vmmWinInit_TryInitialize: Initialization Failed. Unable to locate valid DTB. #2 VmmProc: Unable to auto-identify operating system for PROC file system mount. Specify PageDirectoryBase (DTB/CR3) in -cr3 option if value if known. MOUNT: INFO: PROC file system not mounted. HOT 2
- add fflush to file logging HOT 4
- Scatter read does not read consistently HOT 9
- dma help? HOT 1
- [question]Can I call an exported function and get the return? HOT 1
- symbols fail on Windows when there are non-ascii characters in the MemProcFS path. HOT 6
- a doubt about a reading with memprocfs and scatter memory HOT 1
- Cant start correctly x86 build HOT 2
- MemProcFS: Failed to connect to memory acquisition device. - vmware HOT 1
- MemProcFS: Error file system plugins in vmm.dll! HOT 2
- Ubuntu/aarch64 - Java API: vmm.VmmException: Native call to vmm failed! HOT 5
- VmmScatterMemory crashes with option FLAG_NOCACHE HOT 12
- Issues loading VMRS file (Hyper-V checkpoint) HOT 5
- DEVICE: FAIL: unable to parse elf header MemProcFS: Failed to connect to memory acquisition device. HOT 4
- MemProcFS: Failed to load initial memory map from: '...' HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memprocfs.