The Windows OS memory has a number of sections that can be considered as the high-level components. To write exploits and take advantage of vulnerable programs, we have to understand the memory structure and its sections.
Windows memory layout
Getting ready
Before starting the exploit script writing, we have to get an idea about the structure of the Windows memory layout.
Let's have a look at the memory structure for an executable:
As we use a stack and heap in most cases of exploits, we can start with these.
The stack
The stack is used for short-term local storage...