Skip to content

Instantly share code, notes, and snippets.

View manurautela's full-sized avatar

manu manurautela

View GitHub Profile
@manurautela
manurautela / pagefault.cpp
Created October 12, 2021 04:35
pagefault.cpp
// A short program to demonstrate dynamic memory allocation
// using a structured exception handler.
// compile with x86 vc2019 dev prompt:
// cl /nologo /W3 /D "_DEBUG" /EHsc /guard:cf /GS /MTd /Zi pagefault.cpp
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h> // For exit
@manurautela
manurautela / kernel_and_user_trace_001.cpp
Created October 5, 2021 15:09
krabs etw parse sysmon events
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// This example shows how to use a user_trace and a kernel_trace in the same program.
#include <iostream>
#include <thread>
#include <condition_variable>
#include "..\..\krabs\krabs.hpp"
#include "examples.h"