public void Run(RemoteHooking.IContext context, Parameter parameter) { logger.Info($"已成功注入进程 {RemoteHooking.GetCurrentProcessId()}."); hooker?.Hooking(); server.OnClosed += proxy.Close; proxy.OnClosed += OnClosed; logger.Debug("All hooks installed"); BlockedCheckStatus(); Dispose(); logger.Info("注入已分离."); }
public void Run(RemoteHooking.IContext context, Parameter parameter) { logger.Info($"Injector has injected payload into process {RemoteHooking.GetCurrentProcessId()}."); if (hooker != null) { hooker.Hooking(); server.OnClosed += proxy.Close; proxy.OnClosed += OnClosed; logger.Debug("All hooks installed"); BlockedCheckStatus(); Dispose(); } logger.Info("Injection already detached."); // Waiting the message send to client Thread.Sleep(300); }