public virtual void Hook(string args) { if (this.Process.Id == System.Diagnostics.Process.GetCurrentProcess().Id) { ApplyHook(args); } else { RemoteProcess p = new RemoteProcess(this.Process); p.Open(); p.LoadDotNetModule(Assembly.GetExecutingAssembly().Location, typeof(ApplicationHook).FullName, "Implant", this.GetType().Assembly.Location + ";" + this.GetType().FullName + ";" + (args ?? "")); } }
public RemoteModule(RemoteProcess process, ProcessModule module) { this.Process = process; this.Module = module; }