flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Windows > Enabling DEP & ASLR | 
  
| Author | 
  | 
              
| 
                  
                   yuhg 14 Apr 2014, 06:18 
                  What can I add to my program so that I can utilize DEP and ASLR? 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   yuhg 14 Apr 2014, 06:51 
                  revolution wrote: Add a relocation (fixups) section. I followed the instructions in your post and DEP/ASLR are still not being enabled. ![]()  | 
              |||
                  
  | 
              
| 
                  
                   yuhg 14 Apr 2014, 07:20 
                  Even when I have FileHeader.OptionalHeader.DllCharacteristics set, ASLR is not being enabled.
 
                  
                 
Is there something I'm missing?  | 
              |||
                  
  | 
              
| 
                  
                   nmaps 16 Apr 2014, 03:17 
                  revolution wrote: Don't mark your code sections as readable or writeable. !code sections should most definitely be readable in case data is stored there. I've yet to see a .text section that isn't read | execute. You'd have to be assured by the compiler that nothing is stored there (ie import directory).  | 
              |||
                  
  | 
              
| 
                  
                   revolution 16 Apr 2014, 04:28 
                  nmaps wrote: !code sections should most definitely be readable in case data is stored there. I've yet to see a .text section that isn't read | execute. You'd have to be assured by the compiler that nothing is stored there (ie import directory).  | 
              |||
                  
  | 
              
| 
                  
                   revolution 22 Apr 2014, 04:05 
                  This also might help:     
                  
                Code: format pe nx
;...     | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.