From 651e33d9166209a47a3fb88b9f21deef244cb668 Mon Sep 17 00:00:00 2001 From: James Hemmings <8309414+JamesIT@users.noreply.github.com> Date: Thu, 23 Jan 2020 13:38:02 +0000 Subject: [PATCH] Update Program.cs Added disableHistory. --- SharpClipHistory/Program.cs | 201 ++++++++++++++++++++---------------- 1 file changed, 113 insertions(+), 88 deletions(-) diff --git a/SharpClipHistory/Program.cs b/SharpClipHistory/Program.cs index 4118c8c..9c956de 100644 --- a/SharpClipHistory/Program.cs +++ b/SharpClipHistory/Program.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Threading; using Microsoft.Win32; using System.Runtime.InteropServices.WindowsRuntime; @@ -16,16 +16,19 @@ class Program public class Options { [Option("checkOnly", Required = false, HelpText = "Check if the Clipboard history feature is available and enabled on the target host.")] - public bool checkOnly { get; set; } + public bool CheckOnly { get; set; } [Option("enableHistory", Required = false, HelpText = "Edit the registry to enable clipboard history for the victim user and get contents.")] - public bool enableHistory { get; set; } + public bool EnableHistory { get; set; } + + [Option("disableHistory", Required = false, HelpText = "Edit the registry to disable clipboard history for the victim user and get contents.")] + public bool DisableHistory { get; set; } [Option("saveImages", Required = false, HelpText = "Save any images in clipboard to a file in APPDATA.")] - public bool saveImages { get; set; } + public bool SaveImages { get; set; } [Option("keepassBypass", Required = false, HelpText = "Stops KeePass if it is running and modifies the config file. Next time KeePass is launched passwords will be saved in clipboard history.")] - public bool keepassBypass { get; set; } + public bool KeepassBypass { get; set; } [ParserState] public IParserState LastParserState { get; set; } @@ -33,13 +36,15 @@ public class Options [HelpOption] public string GetUsage() { - var text = @"SharpClipHistory v1.0 + var text = @"SharpClipHistory v1.1 Usage: SharpClipHistory.exe