|
-
Jun 5th, 2019, 02:08 PM
#1
Thread Starter
Member
[RESOLVED] ASLR & Heap Address
Hi,
When i use GetProcessHeap GetProcessHeaps on win xp sp3 the heap address is same at every time i run the process but on win10 64 the heap address is different at every new run.
Is that because of the ASLR? and if yes, i found hear By default, all VB6 apps has no ASLR / DEP protection.
If that true then why the heap address changes every time i run the exe on win10 64?
If you know please help.
Last edited by BD48; Jun 5th, 2019 at 04:56 PM.
-
Jun 6th, 2019, 03:56 PM
#2
Re: ASLR & Heap Address
 Originally Posted by BD48
Is that because of the ASLR? and if yes, i found hear By default, all VB6 apps has no ASLR / DEP protection.
Yes. All the VB6 apps, by default, has no ASLR protection but this affects only for module. Heaps and some other strucutres are randomized always.
-
Jun 6th, 2019, 04:11 PM
#3
Thread Starter
Member
Re: ASLR & Heap Address
Krivous,Thank You very much for reply.
but this affects only for module.
I didn't understand , do you mean DLL? or the module address in memory?
do you know a way to disable the ASLR for my process without going to the registry and effect all the system?
I appreciate your help
-
Jun 7th, 2019, 12:55 AM
#4
Re: [RESOLVED] ASLR & Heap Address
I didn't understand , do you mean DLL? or the module address in memory?
There is the special flag in the PE header IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE which means ASLR for the module is enabled, i.e. the module is loaded by the random base address. You can have the many modules and some of them have ASLR and other not, i.e. some modules have the random base addresses and others have the priority to load by the fixed address.
do you know a way to disable the ASLR for my process without going to the registry and effect all the system?
Why do you want to disable ALSR? Just the most of situations when it's needed are the exploitation of a vulnerability. What's your goal exactly?
-
Jun 7th, 2019, 01:59 AM
#5
Thread Starter
Member
Re: [RESOLVED] ASLR & Heap Address
I'm working on updating this tool,in Sysinternals Process Explorer you can see if the ASLR is enabled or not, and i want to add this to the project if possible.
as i mentioned before i want to disable the ASLR for my process (Current Process) for testing only i do not want to effect all the system.

There is the special flag in the PE header IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE which means ASLR for the module is enabled, i.e. the module is loaded by the random base address. You can have the many modules and some of them have ASLR and other not, i.e. some modules have the random base addresses and others have the priority to load by the fixed address.
Thank You for the information
-
Jun 7th, 2019, 02:32 AM
#6
Thread Starter
Member
Re: [RESOLVED] ASLR & Heap Address
I just saw here:
 Originally Posted by The trick
When you enable ASLR you also should add the relocation information to the image (/FIXED:NO).
what if i used (/FIXED:YES), is that disable the ASLR?
-
Jun 7th, 2019, 02:45 AM
#7
Re: [RESOLVED] ASLR & Heap Address
VB6 applications by default have no ASLR/DEP.
-
Jun 7th, 2019, 09:34 AM
#8
Thread Starter
Member
Re: [RESOLVED] ASLR & Heap Address
VB6 applications by default have no ASLR/DEP.
Thank You The Trick.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|