Skip to content

Commit

Permalink
fixed parsed arguments output
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchmoser authored Dec 9, 2020
1 parent ce1a943 commit 8aa746b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SharpShares/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static Dictionary<string, string[]> ParseArgs(string[] args)
{
Dictionary<string, string[]> result = new Dictionary<string, string[]>();
//these boolean variables aren't passed w/ values. If passed, they are "true"
string[] booleans = new string[] { "/verbose" };
string[] booleans = new string[] { "/verbose", "/stealth" };
var argList = new List<string>();
foreach (string arg in args)
{
Expand Down Expand Up @@ -430,7 +430,7 @@ static void PrintOptions(int threads, string ldapFilter, string ou, List<string>
Console.WriteLine("\tldap: {0}", ldapFilter);
if (String.IsNullOrEmpty(ou)) { ou = "none"; }
Console.WriteLine("\tou: {0}", ou);
Console.WriteLine("\tfilter: {0}", filter.ToString());
Console.WriteLine("\tfilter: {0}", String.Join(",",filter));
Console.WriteLine("\tstealth: {0}", stealth.ToString());
Console.WriteLine("\tverbose: {0}", verbose.ToString());
if (String.IsNullOrEmpty(outfile)) { ldapFilter = "none"; }
Expand Down Expand Up @@ -508,9 +508,9 @@ static void Main(string[] args)
}
}
//Console.WriteLine("[*] Collected {0} enabled computer objects.", hosts.Count);
if (filter.Count > 0) { Console.WriteLine("[*] Excluding SYSVOL, NETLOGON, IPC$, and print$ shares"); }
if (verbose) { Console.WriteLine("[*] Including unreadable shares"); }
PrintOptions(threads, ldapFilter, ou, filter, stealth, verbose, outfile);
if (filter.Count > 0) { Console.WriteLine("[*] Excluding {0} shares", String.Join(",", filter)); }
if (verbose) { Console.WriteLine("[*] Including unreadable shares"); }
Console.WriteLine("[*] Starting share enumeration with thread limit of {0}", threads.ToString());
Console.WriteLine("[r] = Readable Share\n[w] = Writeable Share\n[-] = Unauthorized Share (requires /verbose flag)\n[?] = Unchecked Share (requires /stealth flag)\n");
GetAllShares(hosts, threads, verbose, filter, stealth, outfile);
Expand Down

0 comments on commit 8aa746b

Please sign in to comment.