I am using Ubuntu 12.04 32-bits now for some experiment I need to disable ASLR how can I do this? and after that what should I do to enable ASLR again?
According to an article How Effective is ASLR on Linux Systems?, you can configure ASLR in Linux using the
So, to disable it, run
and to enable it again, run
This won't survive a reboot, so you'll have to configure this in
should permanently disable this.
I would do this in a VM if I were you for obvious reasons. Also, to do this I'm pretty sure you're going to compile your own kernel with the ASLR disabled. I do not believe there is any way to do this that doesn't involve re-compiling your kernel.
This feature is called
This will open a new bash shell for you.
And of course you can