/Exception-Ret-Spoofing

A simple way to spoof return addresses using an exception handler

Primary LanguageC++

Exception Ret Spoofing

A simple and minimalistic way to spoof return addresses using an exception handler

Pros & Cons

Pros:

  • Very easy to implement
  • Very easy to use
  • Can easily be used with other exceptions/gadgets

Cons:

  • Very slight but noticeable performance decrease when used in loops or frequently called hooks
  • Relies on the preservation of the nonvolatile GPRs of the x64 calling convention

Results

Successful_Call Successful Return