카테고리 없음

Disable ASLR on ubuntu

RootFriend 2020. 11. 17. 22:34

0. check if ASLR is enabled or not

cat /proc/sys/kernel/randomize_va_space

0 - no randomization. everything is static

1- conservative randomization. shared libraries, stack, mmap(), VDSO and heap are randomized

2 - full randomization. In addition to elements listed in the previous point, memory managed through brk() is also randomized

 

1. temporal way

enable

# echo 0 | sudo tee /proc/sys/kernel/randomize_va_space

 

disable

# echo 2 | sudo tee /proc/sys/kernel/randomize_va_space

 

2. permanent one.

# echo "kernel.randomize_va_space = 0" >> /etc/sysctl.d/01-disable-aslr.conf