From 4f5711b2ba142ecdebd5536018a23030b0b56c0c Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 20 Apr 2022 11:46:50 -0400 Subject: [PATCH] Agent: Fix USERNAME_PREFIX imports --- .../mimikatz_collector/mimikatz_credential_collector.py | 3 +-- .../post_breach/actions/communicate_as_backdoor_user.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/monkey/infection_monkey/credential_collectors/mimikatz_collector/mimikatz_credential_collector.py b/monkey/infection_monkey/credential_collectors/mimikatz_collector/mimikatz_credential_collector.py index 57161c47f..27fb26498 100644 --- a/monkey/infection_monkey/credential_collectors/mimikatz_collector/mimikatz_credential_collector.py +++ b/monkey/infection_monkey/credential_collectors/mimikatz_collector/mimikatz_credential_collector.py @@ -1,10 +1,9 @@ import logging from typing import Sequence -from model import USERNAME_PREFIX - from infection_monkey.credential_collectors import LMHash, NTHash, Password, Username from infection_monkey.i_puppet.credential_collection import Credentials, ICredentialCollector +from infection_monkey.model import USERNAME_PREFIX from . import pypykatz_handler from .windows_credentials import WindowsCredentials diff --git a/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py b/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py index 3e9c0d9ee..627e67e5b 100644 --- a/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py +++ b/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py @@ -5,10 +5,9 @@ import string import subprocess from typing import Dict -from model import USERNAME_PREFIX - from common.common_consts.post_breach_consts import POST_BREACH_COMMUNICATE_AS_BACKDOOR_USER from infection_monkey.i_puppet.i_puppet import PostBreachData +from infection_monkey.model import USERNAME_PREFIX from infection_monkey.post_breach.pba import PBA from infection_monkey.telemetry.messengers.i_telemetry_messenger import ITelemetryMessenger from infection_monkey.utils.auto_new_user_factory import create_auto_new_user