forked from p15670423/monkey
Agent: Extract const USERNAME_PREFIX to a common file
This commit is contained in:
parent
e91087f9fe
commit
2bcdb72555
|
@ -0,0 +1 @@
|
|||
USERNAME_PREFIX = "somenewuser"
|
|
@ -6,6 +6,7 @@ import subprocess
|
|||
from typing import Dict
|
||||
|
||||
from common.common_consts.post_breach_consts import POST_BREACH_COMMUNICATE_AS_BACKDOOR_USER
|
||||
from infection_monkey.consts import USERNAME_PREFIX
|
||||
from infection_monkey.i_puppet.i_puppet import PostBreachData
|
||||
from infection_monkey.post_breach.pba import PBA
|
||||
from infection_monkey.telemetry.messengers.i_telemetry_messenger import ITelemetryMessenger
|
||||
|
@ -23,8 +24,6 @@ CREATED_PROCESS_AS_USER_FAILED_FORMAT = (
|
|||
"Created process '{}' as user '{}', but the process failed (exit status {}:{})."
|
||||
)
|
||||
|
||||
USERNAME_PREFIX = "somenewuser"
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue