forked from p15670423/monkey
Agent: add options to ICredentialCollector interface
This commit is contained in:
parent
0fae933477
commit
01612c402a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue