Skip to content

Instantly share code, notes, and snippets.

@rwincey
rwincey / AccessViolationHandlerPayloadExecution.cpp
Created February 16, 2024 16:03 — forked from WKL-Sec/AccessViolationHandlerPayloadExecution.cpp
White Knight Labs - Offensive Development Course - Demo of using Exception Filter Function in C++ to catch Access Violations for payload execution and anti-debugging.
// White Knight Labs - Offensive Development Course
// Guardrails - Control Flow & Anti-Debugging
#include <windows.h>
#include <iostream>
// Test function to be called when an access violation occurs
void TestFunction() {
std::cout << "Test function executed after catching access violation." << std::endl;
}