You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std_parser.add_argument("target", nargs="+"ifnot (module_parser.parse_known_args()[0].list_modulesormodule_parser.parse_known_args()[0].show_module_options) else"*", type=str, help="the target IP(s), range(s), CIDR(s), hostname(s), FQDN(s), file(s) containing a list of targets, NMap XML or .Nessus file(s)")
84
+
std_parser.add_argument("target", nargs="+"ifnot (module_parser.parse_known_args()[0].list_modulesormodule_parser.parse_known_args()[0].show_module_optionsorgeneric_parser.parse_known_args()[0].version) else"*", type=str, help="the target IP(s), range(s), CIDR(s), hostname(s), FQDN(s), file(s) containing a list of targets, NMap XML or .Nessus file(s)")
86
85
credential_group=std_parser.add_argument_group("Authentication", "Options for authenticating")
If debug or info logging is not enabled, we still want display/success/fail logged to the file specified,
164
165
so we create a custom LogRecord and pass it to all the additional handlers (which will be all the file handlers)
165
166
"""
166
-
ifself.logger.getEffectiveLevel() >=logging.INFOandlen(self.logger.handlers): # will be 0 if it's just the console output, so only do this if we actually have file loggers
0 commit comments