![]() |
|
#1
|
|||
|
|||
|
Dumping protected memory?
Hi folks,
i have done a small loader which loads a process and changed the access flags via VirtualProtectEx() but if i try to read memory of the loaded process i got an error (can't remember which one). I know that some protections set the NO_ACCESS or PAGE_GUARD flags on creation of memory so is there a way to circumvent this? maybe with a kernel driver? or is there another way under ring3? thx for help tr1stan |
|
#2
|
||||
|
||||
|
Better describe the error, since PAGE_NOACCESS is the only method in Ring3 I know. Probably you are modyfying the page in a wrong way... what about the error? You encountered exception?
Regards. |
|
#3
|
|||
|
|||
|
Ok have to check that later...
btw found this on woodmann hxxp://www.microsoft.com/technet/prodtechnol/winxppro/maintain/sp2mempr.mspx which describes some new memory protection for winxp sp2, which could be the reason that new armadillo and asprotect report problems on sp2 systems... t. |
|
#4
|
|||
|
|||
|
before reading any memory locations... try these steps first:
1. open your process' token 2. check your privilege value 3. enable the SeDebugPrivilege by adjusting your process' token don't remember the exact api names for these (too lazy to search) but that should be enough to find the api's im referring to. |
|
#5
|
|||
|
|||
|
DEP, as far as i've seen/heard, just prohibits code from being executed in the stack/heap, and requires VirtualAlloc() with the right flags, or VirtualProtect() to alter the page. am i missing something here? is it not possible to alter the page for the stack/heap?
|
|
#6
|
|||
|
|||
|
Use LordPE...
Use Lord PE or WinHex to scan the memory (before your proggy) to see what is set originally... Maybe you're setting the memory range incorrectly.
/LordVader/ |
|
#7
|
|||
|
|||
|
Thx for the help...I think i have found my problem...the programm
starts itself again via CreateProcessA so i always use a false PID for reading memory have to fix that asap. tAz: nice info thx...will give it a try
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question regarding .NET dumping | 0x22 | General Discussion | 3 | 08-23-2014 16:37 |
| Dumping protected DLL 'perplex' data section | grimm | General Discussion | 4 | 02-28-2005 08:19 |
| Dumping Armadillo protected DLL? | FEARHQ | General Discussion | 10 | 02-09-2005 11:08 |
| Dumping | sfld | General Discussion | 2 | 03-20-2004 23:56 |
| Dumping a dll with ollydump | ceK52z | General Discussion | 6 | 02-08-2004 19:39 |