At the time of writing, the Havoc C2 Framwork is fairly new and still in a pre-release state. I was interested in testing 5pider's work - so I prepared a lab & exploited a fully patched Windows 11 client. In order to do so, I wanted to use the inline C# compilation capability of PowerShell, as I saw it recently in John Hammond's video.
The setup of Havoc and the payload preparation can be read in my blog post. The payload template code can be found here. Please don't use it for any malicious intent.
A video of this can be seen on YouTube
As always, any feedback is appreciated - thanks guys!