The fundamentals of a structured exception handler

An exception is an event that occurs during the execution of a program. In operating systems, we have two different types of exceptions that are hardware and software. The CPU, while executing some instructions and accessing invalid memory addresses, makes hardware exceptions. The software-based exceptions are initiated by the programs and applications currently running on the operating system.

Structured Exception Handling (SEH) is a mechanism to figure and handle both types of exceptions that occur in an operating system. When we send data to an application in an exploitable environment, it will raise an exception and the exception handler will handle it. This will prevent the target software ...

Get Mastering Metasploit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.