Reflection in C#
- by matt
var victim = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Victim.dll");
var assy = AppDomain.CurrentDomain.Load(System.IO.File.ReadAllBytes(victim));
var types = from x in assy.GetTypes()
where x.Name.StartsWith("AwesomePage")
select x;
var pageType = types.First();
page = Activator.CreateInstance(pageType);
this.Content = page;
Could someone tell me why a dll file would be targeted?