How to do it...

Here are the steps to create an exploit script for SEH attack:

  1. Start the Immunity Debugger in the Windows machine and attach the vulnerable application to it:
  1. Create a Python file called dvd_exploit.py to exploit or the DVD player and open it in your editor.
  2. As we are creating an exploit based on a file format, we will be creating a playlist file (.plf) with a long buffer in it and allow the DVD player to read it. Due to the long buffer, the DVD player will crash with the buffer overflow. So, the victim needs to open the ...

Get Python Penetration Testing Cookbook 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.