linux程序运行地址变化,linux – 为什么变量的地址在运行之间不断变化

我就是我 2023-01-20 13:56 23阅读 0赞

Address space layout randomization (ASLR) is a computer security method 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.

Benefits

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 related memory addresses are obscured from the attackers. These values have to be guessed, and a mistaken guess is not usually recoverable due to the application crashing.

发表评论

表情:
评论列表 (有 0 条评论,23人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Linux程序地址空间

    程序地址空间的理解 程序的地址空间并不是真的物理内存,只是进程的一个地址空间 程序的地址空间本质就是一个描述地址分配的结构体 程序的地址空间只是一个虚拟