samedi 2 novembre 2019

Redirect Console.WriteLine for code loaded in new AppDomain

I'm trying to load .NET code from internet and execute it, e.g

AppDomain domain  = AppDomain.CreateDomain("Test");
Assembly assembly = Assembly.Load(data);

It works perfectly, but is it possible to redirect Console.WriteLine from that assembly (not the current domain) to somewhere, so that I can collect it and send it via HTTP requests?





Aucun commentaire:

Enregistrer un commentaire