Exemplo n.º 1
0
        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("注入已分离.");
        }
Exemplo n.º 2
0
        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);
        }