Agent: Set constant monkey dir name

This commit is contained in:
Ilija Lazoroski 2021-11-15 16:39:12 +01:00
parent c3c1b27049
commit 76709e385e
3 changed files with 2 additions and 7 deletions

View File

@ -129,9 +129,6 @@ class Configuration(object):
keep_tunnel_open_time = 60
# Monkey files directory name
monkey_dir_name = "monkey_dir"
###########################
# scanners config
###########################

View File

@ -23,8 +23,6 @@
"dropper_target_path_win_64": "C:\\Windows\\temp\\monkey64.exe",
"dropper_target_path_linux": "/tmp/monkey",
"monkey_dir_name": "monkey_dir",
"exploiter_classes": [
"SSHExploiter",
"SmbExploiter",

View File

@ -2,7 +2,7 @@ import os
import shutil
import tempfile
from infection_monkey.config import WormConfiguration
MONKEY_DIR_NAME = "monkey_dir"
def create_monkey_dir():
@ -26,4 +26,4 @@ def remove_monkey_dir():
def get_monkey_dir_path():
return os.path.join(tempfile.gettempdir(), WormConfiguration.monkey_dir_name)
return os.path.join(tempfile.gettempdir(), MONKEY_DIR_NAME)