I am creating an application that will load unbelievable assemblies for inspection (i.e. the full name of the assembly recovered. ). For security reasons, I am trying to think about the ways in which these assemblies can be written which will allow them to execute the code upon loading. I have not code with a method yet, but wanted to throw it out to see if anyone can do it.
I know that I can load these assemblies in an incredible app domain, so that they have to stop doing just about anything, but I want to avoid its complexity if it is not necessary.
> In particular, I use Assembly.Load and
assembly class?
Thank you, Matt
First of all, AssemblyName The square is it allows you to find the name of the assembly without loading it. Second, you can load assemblies using the Assembly.ReflectionOnlyLoad , which reflection only uses context - no code can be executed from this kind of assembly.
Comments
Post a Comment