diff options
| author | Michael <[email protected]> | 2017-06-29 09:14:39 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-29 09:14:39 -0400 |
| commit | e65e99578d8f434d83412d4d5130f18c474ab40d (patch) | |
| tree | 89f49d25576598479bb23d0ce355f021f0d96514 /ShiftOS.WinForms/VirusTestCommands.cs | |
| parent | 027788fa853aab3f41b1115ac68c6635f9975252 (diff) | |
| download | shiftos_thereturn-e65e99578d8f434d83412d4d5130f18c474ab40d.tar.gz shiftos_thereturn-e65e99578d8f434d83412d4d5130f18c474ab40d.tar.bz2 shiftos_thereturn-e65e99578d8f434d83412d4d5130f18c474ab40d.zip | |
Implement the Virus Scanner.
Diffstat (limited to 'ShiftOS.WinForms/VirusTestCommands.cs')
| -rw-r--r-- | ShiftOS.WinForms/VirusTestCommands.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/VirusTestCommands.cs b/ShiftOS.WinForms/VirusTestCommands.cs index 09f1a36..f0fec96 100644 --- a/ShiftOS.WinForms/VirusTestCommands.cs +++ b/ShiftOS.WinForms/VirusTestCommands.cs @@ -20,6 +20,14 @@ namespace ShiftOS.WinForms VirusManager.Infect(id, threatlevel); } + [Command("disinfect", description = "DEBUG: Disinfect the system, removing the specified virus.")] + [RequiresArgument("id")] + public static void Disinfect(Dictionary<string, object> args) + { + var id = args["id"].ToString(); + + VirusManager.Disinfect(id); + } } #endif }
\ No newline at end of file |
