Skip to content

Commit

Permalink
Check for module selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander authored and Alexander committed Jul 26, 2019
1 parent 9f7f685 commit a82d478
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DAFT/Program.cs
Expand Up @@ -366,6 +366,12 @@ internal void Run(string[] args)
domainController = Environment.GetEnvironmentVariable("LogonServer").Replace("\\\\", "");
}

if (string.IsNullOrEmpty(module))
{
Console.WriteLine("[-] No module selected (-m || --module)");
return;
}

Console.WriteLine("{0,-40}{1}", "Module", module);
if (!string.IsNullOrEmpty(domainController)) { Console.WriteLine("{0,-40}{1}", "Domain Controller" + new string('.', 40-17), domainController); }
if (csv) { Console.WriteLine("{0,-40}{1}", "CSV Output" + new string('.', 40-10), csv); }
Expand Down

0 comments on commit a82d478

Please sign in to comment.