WeAreDevelopers LIVE • Mar 3, 2021

Hacking C# from the inside - how to do anything in NET

Adam Furmanek

Bypass C# memory safety to execute raw machine code directly within your app. Neutralize fatal stack overflow exceptions and reshape the .NET framework from the inside.

Pause
Mute Enter Fullscreen
#1 about 6 min

Overriding dynamic dispatch statically in object-oriented programming

Using intermediate language instructions to statically invoke methods and bypass polymorphic dynamic dispatch.

#2 about 5 min

Awaiting async void methods with custom task schedulers

Implementing custom synchronization contexts and task schedulers to aggregate and safely handle unwieldy async void methods.

#3 about 15 min

Executing raw native machine code directly from byte arrays

Bypassing standard compilers to allocate, unprotect memory, and execute dynamically generated assembly functions via delegate marshalling.

#4 about 5 min

Hijacking method execution paths with machine code replacement

Overriding runtime metadata and using generated intermediate offset jumps to dynamically redirect native execution behavior.

#5 about 6 min

Manipulating private platform constructs for target application placement

Overriding standard platform constructors to securely expose private underlying logic and assign initialized processes onto arbitrary virtual desktops.

#6 about 2 min

Preventing application crashes from unhandled thread exceptions

Intercepting core background object instantiation to automatically inject safety try-catch wrappers around unstable logic threads.

#7 about 4 min

Recovering recursive stack overflows with vectored exception handlers

Preventing hard crashes by registering lower level hardware exception interrupts to actively save and cleanly restore cpu execution context registers.

Matching moments

2:18 min

Demonstrating code hot swapping in a running application

Marco Sussitz Marco Sussitz · World Congress 2026 Europe

4:35 min

Modifying execution flow using native debugger functions

Johannes Bechberger · LIVE

2:53 min

Introduction to live debugging and code hot swapping

Marco Sussitz Marco Sussitz · World Congress 2026 Europe

1:22 min

Injecting runtime flexibility with aspect and microkernel architectures

Sommer Sommer · World Congress 2024

2:04 min

Discovering application crashes caused by excessive code hot swapping

Marco Sussitz Marco Sussitz · World Congress 2026 Europe

3:39 min

Bypassing system constraints by extracting hidden instructions and rules

Georg Georg · World Congress 2024