Agent: add options to ICredentialCollector interface

This commit is contained in:
vakarisz 2022-02-15 14:58:03 +02:00
parent 0fae933477
commit 01612c402a
2 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
from abc import ABC, abstractmethod
from typing import List
from typing import List, Mapping, Union
from .credentials import Credentials
class ICredentialCollector(ABC):
@abstractmethod
def collect_credentials(self) -> List[Credentials]:
def collect_credentials(self, options: Union[Mapping, None]) -> List[Credentials]:
pass

View File

@ -14,7 +14,7 @@ from .windows_credentials import WindowsCredentials
class MimikatzCredentialCollector(ICredentialCollector):
def collect_credentials(self) -> List[Credentials]:
def collect_credentials(self, options=None) -> List[Credentials]:
creds = pypykatz_handler.get_windows_creds()
return MimikatzCredentialCollector._to_credentials(creds)