Dot NET Reflection
using System;
namespace Agent
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("[+] Code execution !");
}
}
}csc.exe program.cs$path = "/path/to/file.exe"
[System.Reflection.Assembly]::Load([System.IO.File]::ReadAllBytes($path))
[Agent.Program]::Main("")
> [+] Code execution !Last updated