Agent: Remove disused {try,}get_target_monkey()

This commit is contained in:
Mike Salvatore 2022-03-18 10:55:25 -04:00
parent f3d4f972a0
commit d56a6e23db
1 changed files with 0 additions and 11 deletions

View File

@ -8,17 +8,6 @@ from infection_monkey.model import VictimHost
logger = logging.getLogger(__name__)
def try_get_target_monkey(host):
src_path = get_target_monkey(host)
if not src_path:
raise Exception("Can't find suitable monkey executable for host %r", host)
return src_path
def get_target_monkey(host):
raise NotImplementedError("get_target_monkey() has been retired. Use IAgentRepository instead.")
def get_random_file_suffix() -> str:
character_set = list(string.ascii_letters + string.digits + "_" + "-")
# random.SystemRandom can block indefinitely in Linux