TLDR:If you aren’t interested in the details and you have always wanted to run python on top of .Net in 5 lines of powershell or less, skip to the bottom for code snippets. If you want to figure out how that is possible read on…

I have been digging into .Net recently, trying to stretch the bounds of  the .Net Framework and have a very cool discovery to share.  Anyone who is interested in the offensive side of security is always looking to limit the amount of attack surface that is available to various security controls, when trying to get shells on boxes.  This article will hopefully teach you a bit about the .Net framework, as well as about how to pull and load .Net assemblies over the Internet into a C# application or even more interestingly…  PowerShell.  The resulting C# applications are around 6KB.  The resulting PowerShell applications are just a handful of lines of code.  Imagine having all the power, benefits and extensibility of managed .Net code without the footprint.  As an example, we are going to run (Iron)Python on top of .Net, over the internet. Here is how.

Read Full Article