Agent: move mimikatz collector to credential collectors

This commit is contained in:
vakarisz 2022-02-14 15:55:11 +02:00 committed by Ilija Lazoroski
parent 6aa2160f31
commit 2ba793e0cf
6 changed files with 7 additions and 9 deletions

View File

@ -1,5 +1,7 @@
from typing import List
import pypykatz_handler
from infection_monkey.credential_collectors import (
Credentials,
ICredentialCollector,
@ -7,10 +9,8 @@ from infection_monkey.credential_collectors import (
Password,
Username,
)
from infection_monkey.system_info.windows_cred_collector import pypykatz_handler
from infection_monkey.system_info.windows_cred_collector.windows_credentials import (
WindowsCredentials,
)
from .windows_credentials import WindowsCredentials
class MimikatzCredentialCollector(ICredentialCollector):

View File

@ -3,9 +3,7 @@ from typing import Any, Dict, List, NewType
from pypykatz.pypykatz import pypykatz
from infection_monkey.system_info.windows_cred_collector.windows_credentials import (
WindowsCredentials,
)
from .windows_credentials import WindowsCredentials
CREDENTIAL_TYPES = [
"msv_creds",

View File

@ -2,7 +2,7 @@ import logging
import sys
from common.common_consts.system_info_collectors_names import MIMIKATZ_COLLECTOR
from infection_monkey.system_info.windows_cred_collector.mimikatz_cred_collector import (
from infection_monkey.credential_collectors.windows_cred_collector.mimikatz_cred_collector import (
MimikatzCredentialCollector,
)

View File

@ -1,6 +1,6 @@
from unittest import TestCase
from infection_monkey.system_info.windows_cred_collector.pypykatz_handler import (
from infection_monkey.credential_collectors.mimikatz_collector.pypykatz_handler import (
_get_creds_from_pypykatz_session,
)