Skip to content

Instantly share code, notes, and snippets.

View zefklop's full-sized avatar

Jérôme Gardou zefklop

View GitHub Profile
@zefklop
zefklop / build_rosbe_ci.sh
Last active May 16, 2024 10:31
Script to build ROSBE for github actions
#!/usr/bin/bash
ROSBE_BUILD_DIR=$1
ROSBE_GIT_DIR=./RosBE-git
THIS_SCRIPT=`basename "$0"`
git clone --depth=1 --branch=unix_amd64 https://github.com/zefklop/RosBE.git $ROSBE_GIT_DIR
# Check if we have our toolchain ready
if [ -d $ROSBE_BUILD_DIR ]; then
@zefklop
zefklop / kdbg_amd64.diff
Created April 27, 2021 07:42
KDBG amd64 - NOT WORKING for X86
commit 311a10d134b90e5e15b43c3aa06e95b1a5cde71d
Author: Jérôme Gardou <jerome.gardou@reactos.org>
Date: Mon Apr 12 15:51:55 2021 +0200
[NTOS:KDBG] Begin port on amd64
Non-functional for now, but it prints.
diff --git a/ntoskrnl/include/internal/i386/intrin_i.h b/ntoskrnl/include/internal/i386/intrin_i.h
index 76e391e10ba..c4d3a5a30fd 100644
@zefklop
zefklop / pseh2_gcc_x64.c
Last active April 16, 2021 15:42
GCC x64 _SEH2_EXCEPT implementation
#include <windows.h>
#include <stdio.h>
#include <intrin.h>
#include <stdint.h>
#define TOKENIZE(x) #x
#define TOKTOKENIZE(x) TOKENIZE(x)
#define LINE_TOKEN TOKTOKENIZE(__LINE__)
/* Declare our global trampoline function for filter and unwinder */