@@ -374,7 +374,7 @@ static Dictionary<string, string[]> ParseArgs(string[] args)
374374 {
375375 Dictionary < string , string [ ] > result = new Dictionary < string , string [ ] > ( ) ;
376376 //these boolean variables aren't passed w/ values. If passed, they are "true"
377- string [ ] booleans = new string [ ] { "/verbose" } ;
377+ string [ ] booleans = new string [ ] { "/verbose" , "/stealth" } ;
378378 var argList = new List < string > ( ) ;
379379 foreach ( string arg in args )
380380 {
@@ -430,7 +430,7 @@ static void PrintOptions(int threads, string ldapFilter, string ou, List<string>
430430 Console . WriteLine ( "\t ldap: {0}" , ldapFilter ) ;
431431 if ( String . IsNullOrEmpty ( ou ) ) { ou = "none" ; }
432432 Console . WriteLine ( "\t ou: {0}" , ou ) ;
433- Console . WriteLine ( "\t filter: {0}" , filter . ToString ( ) ) ;
433+ Console . WriteLine ( "\t filter: {0}" , String . Join ( "," , filter ) ) ;
434434 Console . WriteLine ( "\t stealth: {0}" , stealth . ToString ( ) ) ;
435435 Console . WriteLine ( "\t verbose: {0}" , verbose . ToString ( ) ) ;
436436 if ( String . IsNullOrEmpty ( outfile ) ) { ldapFilter = "none" ; }
@@ -508,9 +508,9 @@ static void Main(string[] args)
508508 }
509509 }
510510 //Console.WriteLine("[*] Collected {0} enabled computer objects.", hosts.Count);
511- if ( filter . Count > 0 ) { Console . WriteLine ( "[*] Excluding SYSVOL, NETLOGON, IPC$, and print$ shares" ) ; }
512- if ( verbose ) { Console . WriteLine ( "[*] Including unreadable shares" ) ; }
513511 PrintOptions ( threads , ldapFilter , ou , filter , stealth , verbose , outfile ) ;
512+ if ( filter . Count > 0 ) { Console . WriteLine ( "[*] Excluding {0} shares" , String . Join ( "," , filter ) ) ; }
513+ if ( verbose ) { Console . WriteLine ( "[*] Including unreadable shares" ) ; }
514514 Console . WriteLine ( "[*] Starting share enumeration with thread limit of {0}" , threads . ToString ( ) ) ;
515515 Console . WriteLine ( "[r] = Readable Share\n [w] = Writeable Share\n [-] = Unauthorized Share (requires /verbose flag)\n [?] = Unchecked Share (requires /stealth flag)\n " ) ;
516516 GetAllShares ( hosts , threads , verbose , filter , stealth , outfile ) ;
0 commit comments