Exemplo n.º 1
0
        private IEnumerable<IRunningProcess> FilterProcessesToApplyHookingSettingsOn(IEnumerable<IRunningProcess> processes)
        {
            var clasifier = new ProcessClasifier();
            clasifier.Categorize(processes.Cast<IProcess>());

            return _view.SelectProcessesToApplyHookingRules(
                clasifier.ToHookOnStart.ToArray(),
                clasifier.UnHooked.ToArray(),
                clasifier.HookedInactive.ToArray(),
                clasifier.HookedActive.ToArray());
        }
Exemplo n.º 2
0
        private void DisplayRunningProcesses()
        {
            var processes = _spyManager.RunningProcesses();

            processes = ProcessFilter.ForInvalidProcesses(_platformBits).Filter(processes);

            var clasifier = new ProcessClasifier();
            clasifier.Categorize(processes.Cast<IProcess>());

            _view.DisplayRunningProcesses(
                clasifier.ToHookOnStart.ToArray(),
                clasifier.UnHooked.ToArray(),
                 clasifier.HookedInactive.ToArray(),
                clasifier.HookedActive.ToArray());
        }