diff --git a/SharpHose/Program.cs b/SharpHose/Program.cs index c5786e9..d24650f 100644 --- a/SharpHose/Program.cs +++ b/SharpHose/Program.cs @@ -66,12 +66,12 @@ static void DisplayHelp(ParserResult result, IEnumerable errs) static void Run(CLIOptions opts) { - if ((string.IsNullOrEmpty(opts.SprayPassword)) && (opts.Action == LDAPAction.SPRAY_USERS)) + if (opts.SprayPassword == null && opts.Action == LDAPAction.SPRAY_USERS) { Console.WriteLine("Please supply a password to spray: "); var response = Console.ReadLine(); - if (!string.IsNullOrEmpty(response)) + if (opts.SprayPassword != null) { opts.SprayPassword = response; } @@ -153,4 +153,4 @@ static void Run(CLIOptions opts) } } } -} +} \ No newline at end of file diff --git a/SharpHose/SharpHose.csproj b/SharpHose/SharpHose.csproj index fccd79e..1138253 100644 --- a/SharpHose/SharpHose.csproj +++ b/SharpHose/SharpHose.csproj @@ -1,107 +1,107 @@ - - - - - - Debug - AnyCPU - {51C6E016-1428-441D-82E9-BB0EB599BBC8} - Exe - SharpHose - SharpHose - v4.5 - 512 - true - true - - - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - SharpHose.Program - - - - ..\packages\CommandLineParser.2.8.0\lib\net45\CommandLine.dll - - - ..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - + + + + + + Debug + AnyCPU + {51C6E016-1428-441D-82E9-BB0EB599BBC8} + Exe + SharpHose + SharpHose + v4.5 + 512 + true + true + + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + SharpHose.Program + + + + ..\packages\CommandLineParser.2.8.0\lib\net45\CommandLine.dll + + + ..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file