From bf1d360e50e9a9c9a3f0dbc3afa3a4bf4f402945 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 27 Jun 2022 06:55:39 -0400 Subject: [PATCH] UT: Remove disused DEFAULT_CONFIG --- .../monkey_configs/default_config.py | 119 ------------------ 1 file changed, 119 deletions(-) delete mode 100644 monkey/tests/data_for_tests/monkey_configs/default_config.py diff --git a/monkey/tests/data_for_tests/monkey_configs/default_config.py b/monkey/tests/data_for_tests/monkey_configs/default_config.py deleted file mode 100644 index c0eca7c43..000000000 --- a/monkey/tests/data_for_tests/monkey_configs/default_config.py +++ /dev/null @@ -1,119 +0,0 @@ -from common.configuration import AgentConfiguration - -flat_config = { - "keep_tunnel_open_time": 30, - "post_breach_actions": [ - {"name": "CommunicateAsBackdoorUser", "options": {}}, - {"name": "ModifyShellStartupFiles", "options": {}}, - {"name": "HiddenFiles", "options": {}}, - {"name": "TrapCommand", "options": {}}, - {"name": "ChangeSetuidSetgid", "options": {}}, - {"name": "ScheduleJobs", "options": {}}, - {"name": "Timestomping", "options": {}}, - {"name": "AccountDiscovery", "options": {}}, - {"name": "ProcessListCollection", "options": {}}, - ], - "credential_collectors": [ - {"name": "MimikatzCollector", "options": {}}, - {"name": "SSHCollector", "options": {}}, - ], - "payloads": [ - { - "name": "ransomware", - "options": { - "encryption": { - "enabled": True, - "directories": {"linux_target_dir": "", "windows_target_dir": ""}, - }, - "other_behaviors": {"readme": True}, - }, - } - ], - "custom_pbas": { - "linux_command": "", - "linux_filename": "", - "windows_command": "", - "windows_filename": "", - }, - "propagation": { - "network_scan": { - "tcp": { - "timeout": 3000, - "ports": [ - 22, - 80, - 135, - 443, - 445, - 2222, - 3306, - 3389, - 5985, - 5986, - 7001, - 8008, - 8080, - 8088, - 8983, - 9200, - 9600, - ], - }, - "icmp": {"timeout": 1000}, - "fingerprinters": [ - {"name": "elastic", "options": {}}, - { - "name": "http", - "options": {"http_ports": [80, 443, 7001, 8008, 8080, 8983, 9200, 9600]}, - }, - {"name": "mssql", "options": {}}, - {"name": "smb", "options": {}}, - {"name": "ssh", "options": {}}, - ], - "targets": { - "blocked_ips": [], - "inaccessible_subnets": [], - "local_network_scan": True, - "subnets": [], - }, - }, - "maximum_depth": 2, - "exploitation": { - "options": {"http_ports": [80, 443, 7001, 8008, 8080, 8983, 9200, 9600]}, - "brute_force": [ - { - "name": "MSSQLExploiter", - "options": {}, - }, - { - "name": "PowerShellExploiter", - "options": {}, - }, - { - "name": "SSHExploiter", - "options": {}, - }, - { - "name": "SmbExploiter", - "options": {"smb_download_timeout": 30}, - }, - { - "name": "WmiExploiter", - "options": {"smb_download_timeout": 30}, - }, - ], - "vulnerability": [ - { - "name": "HadoopExploiter", - "options": {}, - }, - { - "name": "Log4ShellExploiter", - "options": {}, - }, - ], - }, - }, -} - -DEFAULT_CONFIG = AgentConfiguration.from_mapping(flat_config)