.. / DownloadData
Star

Use the DownloadData method of the Net.WebClient class to download the DLL as a byte array, and then use the Load function to load the Byte array into memory instead of disk. After the assembly is loaded, we can interact with it using reflection through the GetType and GetMethod methods, and finally call it through the Invoke method.

Command Reference:

DLL: ClassLibrary1.dll

Byte array with code: $data
Command: Copy Extra code: Copy References:

https://learn.microsoft.com/en-us/dotnet/api/system.net.webclient.downloaddata?view=net-7.0