forked from p34709852/monkey
Agent: Remove disused {try,}get_target_monkey()
This commit is contained in:
parent
f3d4f972a0
commit
d56a6e23db
|
@ -8,17 +8,6 @@ from infection_monkey.model import VictimHost
|
||||||
logger = logging.getLogger(__name__)
|
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:
|
def get_random_file_suffix() -> str:
|
||||||
character_set = list(string.ascii_letters + string.digits + "_" + "-")
|
character_set = list(string.ascii_letters + string.digits + "_" + "-")
|
||||||
# random.SystemRandom can block indefinitely in Linux
|
# random.SystemRandom can block indefinitely in Linux
|
||||||
|
|
Loading…
Reference in New Issue