Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2004, 01:06
tr1stan
 
Posts: n/a
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
Reply With Quote
  #2  
Old 08-23-2004, 02:31
dyn!o's Avatar
dyn!o dyn!o is offline
Friend
 
Join Date: Nov 2003
Location: Own mind
Posts: 214
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 8
Thanks Rcvd at 0 Times in 0 Posts
dyn!o Reputation: 1
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.
Reply With Quote
  #3  
Old 08-23-2004, 05:26
tr1stan
 
Posts: n/a
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.
Reply With Quote
  #4  
Old 08-24-2004, 07:05
tAz
 
Posts: n/a
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.
Reply With Quote
  #5  
Old 08-24-2004, 07:07
drocon
 
Posts: n/a
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?
Reply With Quote
  #6  
Old 08-24-2004, 13:30
LordVader
 
Posts: n/a
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/
Reply With Quote
  #7  
Old 08-24-2004, 14:37
tr1stan
 
Posts: n/a
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +8. The time now is 06:45.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )