PWN challenges
| Sigle |
Meaning |
| ASLR |
adress space layout randomization |
| GCC |
GNU C compiler |
| sysctl |
system control |
| sudo |
super user do... |
| etc |
et caetera |
GCC unsecure compilation
gcc -no-pie -fno-stack-protector "$1" -o "$2"
Localy and temporary ASLR
setarch --verbose --addr-no-randomize /path/to/exe
Globaly and temporary Disable ASLR
sysctl kernel.randomize_va_space=0
Globaly and permanently Disable ASLR
echo kernel.randomize_va_space=0 | sudo tee /etc/sysctl.d/01-disable-aslr.conf
sudo sysctl -p /etc/sysctl.d/01-disable-aslr.conf