yoyoyip Cheater
Reputation: 0
Joined: 09 Apr 2006 Posts: 29
|
Posted: Tue Apr 11, 2006 4:08 am Post subject: ZwAllocateVirtualMemory and WriteProcessMemory failed |
|
|
I encountered error for autoassembler, it failed at WriteProcessMemory at autoassembler, then a messagebox popup said "Not all instructions could be injected". Below are the OutputDebugString captured,
Switched Process
Calling ZwAllocateVirtualMemory
ntStatus=82106958
BaseAddress=0FC00000
RegionSize=1000
WriteProcessMemory:Getting PEPROCESS
Retrieved peprocess
Checking safety of memory
Memory addr:0FC00000 not safe to write!
Memory addr:0FC00006 not safe to write!.......
I got 2 questions to ask,
1:
At the IO dispatched routine for IOCTL_CE_ALLOCATEMEM, I saw the line
ZwAllocateVirtualMemory((HANDLE)-1,&BaseAddress,0, &RegionSize, inp->AllocationType, inp->Protect);
is it right to put in the handle -1, instead of the openprocess handle?
2:
Why it failed on WriteProcessMemory.
Appreciate that if anybody can help me on the above problems.
|
|