Questions tagged [aslr]

Address space layout randomization (ASLR) is a computer security technique which involves randomly arranging the positions of key data areas, usually including the base of the executable and position of libraries, heap, and stack, in a process's address space.

Address space layout randomization (ASLR) is a computer security technique which involves randomly arranging the positions of key data areas, usually including the base of the executable and position of libraries, heap, and stack, in a process's address space.

Address space randomization hinders some types of security attacks by making it more difficult for an attacker to predict target addresses. For example, attackers trying to execute return-to-libc attacks must locate the code to be executed, while other attackers trying to execute shellcode injected on the stack have to find the stack first. In both cases, the system obscures related memory-addresses from the attackers. These values have to be guessed, and a mistaken guess is not usually recoverable due to the application crashing.

Wikipedia's page about ASLR

197 questions
-2
votes
1 answer

What is the base address of a C program environment from the execle command?

I am reading the book "Hacking: The art of exploitation" and I have some problems with the code of exploit_notesearch_env.c It is attempting to do a buffer overflow exploit by calling the program to be exploited with the execle() function. That way…
ht332932
  • 85
  • 1
  • 5
-3
votes
4 answers

What exactly is %p and why is it different from printing the int value of pointer by using %d?

#include int main() { int *ptr; int a=2; ptr=&a; printf("%p\n",ptr); printf("%d\n",ptr); printf("%p\n",a); return 0; } The output I get is: % ./a.out 0x7ffe12032c40 302197824 0x2 % The value of the first two…
claw107
  • 71
  • 1
  • 9
1 2 3
13
14