33 ms·
Out of curiosity, is it possible to disable ASLR easily on Windows? It's trivial to change on Linux and that (plus Valgrind) has occasionally made obscure debug
by azalemeth 5y ago
Out of curiosity, is it possible to disable ASLR easily on Windows? It's trivial to change on Linux and that (plus Valgrind) has occasionally made obscure debugging life easier.
- kevingadd 5y agoThe executable has to have ASLR enabled as a flag, so you just compile without the flag
- kuroguro 5y agoAlso can disable globally, for ex. if source isn't available. https://stackoverflow.com/a/9561263/1895684 https://stackoverflow.com/a/9561263/1895684
- _piif 5y agoAlternatively it's also possible to disable ASLR in the executable itself by removing the flag 0x40 (opt-in flag for ASLR) in the DllCharacteristics field of the header. There's a neat little tool called SetDllCharacteristics[0] which can do that. [0] https://blog.didierstevens.com/2010/10/17/setdllcharacteristics/ https://blog.didierstevens.com/2010/10/17/setdllcharacterist...