forked from p15670423/monkey
Agent: Set constant monkey dir name
This commit is contained in:
parent
c3c1b27049
commit
76709e385e
|
@ -129,9 +129,6 @@ class Configuration(object):
|
|||
|
||||
keep_tunnel_open_time = 60
|
||||
|
||||
# Monkey files directory name
|
||||
monkey_dir_name = "monkey_dir"
|
||||
|
||||
###########################
|
||||
# scanners config
|
||||
###########################
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue