'ASLR'에 해당하는 글 1건

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

 


WRITTEN BY
RootFriend
개인적으로... 나쁜 기억력에 도움되라고 만들게되었습니다.

,