Agent: Add TODO comment regarding OS checks in credential collectors

This commit is contained in:
Mike Salvatore 2022-02-17 06:18:44 -05:00
parent 704236a16f
commit f526933d84
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ PypykatzCredential = NewType("PypykatzCredential", Dict)
def get_windows_creds() -> List[WindowsCredentials]:
# TODO: Remove this check when this is turned into a plugin.
if not is_windows_os():
logger.debug("Skipping pypykatz because the operating system is not Windows")
return []

View File

@ -16,6 +16,7 @@ DEFAULT_DIRS = ["/.ssh/", "/"]
def get_ssh_info(telemetry_messenger: ITelemetryMessenger) -> Iterable[Dict]:
# TODO: Remove this check when this is turned into a plugin.
if is_windows_os():
logger.debug(
"Skipping SSH credentials collection because the operating system is not Linux"