Agent: Remove kill file config option

This commit is contained in:
Shreya Malviya 2021-11-10 18:40:35 +05:30
parent cb613393e2
commit 4966c74214
3 changed files with 0 additions and 18 deletions

View File

@ -96,12 +96,6 @@ class Configuration(object):
dropper_target_path_win_64 = r"C:\Windows\temp\monkey64.exe"
dropper_target_path_linux = "/tmp/monkey"
###########################
# Kill file
###########################
kill_file_path_windows = "%windir%\\monkey.not"
kill_file_path_linux = "/var/run/monkey.not"
###########################
# monkey config
###########################

View File

@ -26,8 +26,6 @@
"monkey_dir_name": "monkey_dir",
"kill_file_path_linux": "/var/run/monkey.not",
"kill_file_path_windows": "%windir%\\monkey.not",
"dropper_try_move_first": true,
"exploiter_classes": [
"SSHExploiter",

View File

@ -78,16 +78,6 @@ def main():
formatted_config = pformat(WormConfiguration.hide_sensitive_info(WormConfiguration.as_dict()))
print(f"Loaded Configuration:\n{formatted_config}")
# Make sure we're not in a machine that has the kill file
kill_path = (
os.path.expandvars(WormConfiguration.kill_file_path_windows)
if sys.platform == "win32"
else WormConfiguration.kill_file_path_linux
)
if os.path.exists(kill_path):
print("Kill path found, finished run")
return True
try:
if MONKEY_ARG == monkey_mode:
log_path = get_monkey_log_path()