Comments (3)
VirtualAlloc inside a process is not possible right now.
Also, I really doubt that I'll be able to add this feature in a stable manner; the memory manager structures may change much faster than I'm able to tamper with them via DMA; making the whole thing very unstable.
The way to go around this is most likely to temporarily insert some kind of shellcode snippet inside the process doing the actual VirtualAlloc,; but thats not really what MemProcFS is about right now.
I might add more offensive features like that in the future to MemProcFS; or if you prefer to use the API for it you could probably code a small program doing exactly that already. But now MemProcFS is a memory analysis library (i.e. no functionality for active exploitation built-in by default).
from memprocfs.
I see, would something like this work for MemProcFS?
void* AllocateProcessMemory(unsigned __int32 ProcessId, unsigned __int64 Size)
{
PEPROCESS TargetProcess = nullptr;
if (!NT_SUCCESS(PsLookupProcessByProcessId((HANDLE)ProcessId, &TargetProcess)))
return (void*)-1;
KeAttachProcess((PKPROCESS)TargetProcess);
void* NewAllocation = 0;
unsigned __int64 NewAllocationSize = Size;
ZwAllocateVirtualMemory(NtCurrentProcess(), &NewAllocation, 0, &NewAllocationSize, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
KeDetachProcess();
ObDereferenceObject(TargetProcess);
return (void*)NewAllocation;
}
from memprocfs.
Problem is that MemProcFS analyzes the memory of a target system; pretty much in real time yes; but it does not run on the target system. It does not have code execution on the target system. I therefore cannot execute in the target systems kernel context.
Now, I have kernel modules and such for PCILeech which is more focusing on the offensive side that executes in the target system kernel. But PCILeech is a different product from MemProcFS.
Right now I'm not very likely to add it to MemProcFS in the short run, maybe in the future, but that would require substantial changes from my side to accommodate this.
from memprocfs.
Related Issues (20)
- VMMDLL_Map_GetHeapAlloc() VMMDLL_MAP_HEAPALLOCENTRY.cb off by 8 low HOT 3
- Python process.maps.heapalloc() size and memory read issues. HOT 1
- Rust API: VmmYaraResult.result is empty even if VmmYaraResult.total_results>0. HOT 9
- How do you set the interval in the configset vmmdll_opt_refresh HOT 2
- Question: Best way to get findevil results from Rust API HOT 3
- VMMDLL_Initialize init problems on AMD + LINUX HOT 1
- Some Windows 7 memory images cannot analyze dst ip and dst port. HOT 1
- An issue with mounting image files HOT 2
- How can I achieve threading with this? (rust) HOT 1
- Can we further optimize it HOT 3
- need kernl call Example HOT 1
- Java Vabase return minus value HOT 4
- C++ Scatter abnormal HOT 2
- rust: yara SIGSEGV HOT 12
- Rust API: Yara Match Rules are truncated HOT 7
- C++ freezing the Read Requests HOT 1
- [FYI] A quick experiment with ReactOS as a qemu guest HOT 1
- The PID can be found, but its base address cannot be found. HOT 5
- MemProcFS.exe加载报错,DTB HOT 2
- DOKANY file system library is not installed. HOT 2
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.