Code Monkey home page Code Monkey logo

exceptionsupervisor's Introduction

Exception Supervisor

This library hooks the Windows exception handler and redirects thrown exceptions to user-defined functions. It was originally designed to intercept exceptions and modify their data before passing it to the original exception handlers, but it can also be used for debugging or hooking purposes.

Usage

Call AddSupervisorExceptionHandler, passing your exception handler as its sole argument. Your exception handler should function the same way as a normal exception handler, returning status codes such as EXCEPTION_CONTINUE_EXECUTION and EXCEPTION_CONTINUE_SEARCH (their behaviors rest unmodified). Take note that if the instruction perpetually errors, you will enter an exception loop until you adjust the EIP register to skip over the instruction. Once all handlers have been registered, you can call EnableExceptionSupervisor, which will activate exception supervising. I don't personally recommend adding handlers after the supervisor has been enabled.

Compatibility

This library will only work on Windows 10 until someone modifies it to work with other Windows versions. Enabling support for Windows 7/Windows Vista should theoretically be easy since it should only be a matter of adjusting offsets. If I have time, I'll look into it.

exceptionsupervisor's People

Contributors

ccrpr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.