[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.
Re: [RESOLVED] ASLR & Heap Address
Quote:
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.
Quote:
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?
1 Attachment(s)
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.
Attachment 169033
Quote:
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
Re: [RESOLVED] ASLR & Heap Address
I just saw here:
Quote:
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?
Re: [RESOLVED] ASLR & Heap Address
VB6 applications by default have no ASLR/DEP.
Re: [RESOLVED] ASLR & Heap Address
Quote:
VB6 applications by default have no ASLR/DEP.
Thank You The Trick.