Shell script to launch a Bash instance, from which all child processes will have ASLR disabled.
This script is useful for testing CTF problems in an environment without ASLR. Can also be useful for exploit development.
Runs on Linux.
user@computer:~$ ./launch-bash-without-aslr.sh
==== ASLR disabled for this session ====
no-aslr $ echo "Look ma, no ASLR!"
Look ma, no ASLR!
no-aslr $ exit
exit
==== ASLR re-enabled ====
user@computer:~$
- https://en.wikipedia.org/wiki/Address_space_layout_randomization
- https://linux-audit.com/linux-aslr-and-kernelrandomize_va_space-setting/
- https://stackoverflow.com/questions/11238457/disable-and-re-enable-address-space-layout-randomization-only-for-myself
- https://askubuntu.com/questions/318315/how-can-i-temporarily-disable-aslr-address-space-layout-randomization