Results 1 to 8 of 8

Thread: [RESOLVED] ASLR & Heap Address

  1. #1

    Thread Starter
    Member
    Join Date
    May 2019
    Posts
    50

    Resolved [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.

  2. #2

  3. #3

    Thread Starter
    Member
    Join Date
    May 2019
    Posts
    50

    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

  4. #4
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,797

    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?

  5. #5

    Thread Starter
    Member
    Join Date
    May 2019
    Posts
    50

    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.
    Name:  Aslr1.JPG
Views: 351
Size:  35.2 KB

    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

  6. #6

    Thread Starter
    Member
    Join Date
    May 2019
    Posts
    50

    Re: [RESOLVED] ASLR & Heap Address

    I just saw here:
    Quote Originally Posted by The trick View Post
    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?

  7. #7

  8. #8

    Thread Starter
    Member
    Join Date
    May 2019
    Posts
    50

    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
  •  



Click Here to Expand Forum to Full Width