Commit Graph

9368 Commits

Author SHA1 Message Date
Mike Salvatore 1b1bc85804 UT: Fix false negative in test_agent_configuration_endpoint() 2022-07-22 17:24:53 +00:00
Mike Salvatore f321d72dc5 UT: Use default config in InMemoryAgentConfigurationRepository 2022-07-22 17:24:53 +00:00
Mike Salvatore c86b637598 Island: Add comment about 204 status code to AgentConfiguration resource 2022-07-22 17:24:53 +00:00
Mike Salvatore efab944e8b Common: Fix inconsistent wording in AgentConfiguration docstring 2022-07-22 17:24:53 +00:00
Mike Salvatore 7a507f12ba UT: Combine test{to,from}_json() 2022-07-22 17:24:53 +00:00
Mike Salvatore e5e68f21df UT: Rename test_from_dict...() -> test_from_mapping...() 2022-07-22 17:24:53 +00:00
Mike Salvatore d62d81a795 Common: Add AgentConfiguration.to_mapping() 2022-07-22 17:24:53 +00:00
Shreya Malviya b6703becbc BB: Get rid of TestConfigurationParser and move its functions outside 2022-07-22 17:24:53 +00:00
Shreya Malviya 35d5592da0 BB, Island: Remove BB performance tests and *everything* related to it 2022-07-22 17:24:53 +00:00
Shreya Malviya 8b43d910b6 BB: Modify MonkeyIslandClient.import_config() to send propagation credentials to relevant endpoint 2022-07-22 17:24:53 +00:00
Shreya Malviya 379ada7a24 BB: Rename IslandConfigParser -> TestConfigurationParser
Even though the names start with "test", they shouldn't cause any issues
since we only run "test_blackbox.py".
2022-07-22 17:24:53 +00:00
Shreya Malviya 2764069aec BB: Correctly pass and import test configuration and agent configuration 2022-07-22 17:24:53 +00:00
Shreya Malviya 1f4167f44c BB: Add more specific type hint to IslandConfigParser.get_target_ips_from_configuration() 2022-07-22 17:24:53 +00:00
Shreya Malviya 42efe1fc56 BB: Remove unused function from IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya b13fb45b04 BB: Get rid of unneeded improts and variables 2022-07-22 17:24:53 +00:00
Shreya Malviya 00626fe579 BB: Use agent configuration object to get target IPs in IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya 549a79ced4 BB: Update type hint to be more specific in CommunicationAnalyzer
Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
2022-07-22 17:24:53 +00:00
Shreya Malviya db5187fc74 BB: Remove config templates 2022-07-22 17:24:53 +00:00
Shreya Malviya 1d45a15ea1 BB: Remove config_generation_script.py 2022-07-22 17:24:53 +00:00
Shreya Malviya c6c38ac008 BB: Add type hints in CommunicationAnalyzer 2022-07-22 17:24:53 +00:00
Shreya Malviya c9b10bfc3f BB: Fix API endpoints in MonkeyIslandClient 2022-07-22 17:24:53 +00:00
Shreya Malviya f0993d94cf BB: Rename raw_config -> serialized_config everywhere 2022-07-22 17:24:53 +00:00
Shreya Malviya 690fb71e10 BB: Rename get_ips_of_targets() -> get_target_ips_from_serialized_config() and pass correct arguments 2022-07-22 17:24:53 +00:00
Shreya Malviya c6ffd16e48 BB: Modify IslandConfigParser.get_ips_of_targets() logic per new configuration 2022-07-22 17:24:53 +00:00
Shreya Malviya 5d9e525ecc BB: Remove unused apply_template_to_config() from IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya 7d98d14d3a BB: Use IslandConfigParser.get_serialized_config() in test_blackbox.py 2022-07-22 17:24:53 +00:00
Shreya Malviya c509b1390a BB: Remove unused parameter in get_serialized_config() in IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya 6bda56f30c BB: Replace config templates with configuration objects in test_blackbox.py 2022-07-22 17:24:53 +00:00
Shreya Malviya d5736df56d BB: Modify IslandConfigParser to return serialized config 2022-07-22 17:24:53 +00:00
Shreya Malviya f99ad90371 BB: Reorder test configuration imports so they're alphabetical 2022-07-22 17:24:53 +00:00
Mike Salvatore 5e19abbe54 Island: Add some comments/TODOs to /api/island-mode 2022-07-22 08:48:17 -04:00
Mike Salvatore 46bcfe7619 Revert "Island: Add note about 401 for invalid credentials"
This reverts commit 5938382627.
2022-07-22 08:31:48 -04:00
Mike Salvatore 5938382627 Island: Add note about 401 for invalid credentials 2022-07-22 08:18:01 -04:00
Mike Salvatore f086637758
Merge pull request #2096 from guardicore/1965-credentials-in-config
1965 credentials in config
2022-07-21 10:52:01 -04:00
Ilija Lazoroski a40d633fe8 UI: Removing logging in ImportConfigModal 2022-07-21 15:59:17 +02:00
Ilija Lazoroski 8f417f52ce UI: Remove unneeded variable data 2022-07-21 15:18:46 +02:00
Ilija Lazoroski 24397ce3ea UI: Add http_ports to properties of exploitation 2022-07-21 15:16:37 +02:00
Ilija Lazoroski 261eb3828e UI: Simplify configuraton exporting 2022-07-21 15:06:25 +02:00
Ilija Lazoroski 89299bac6d Island: Change PATCH to PUT in propagation_credentials resource
* Add support to put stolen credentials
2022-07-21 14:48:20 +02:00
Ilija Lazoroski 45884ff233 Agent: Use response.json() in ControlChannel 2022-07-21 14:46:49 +02:00
Ilija Lazoroski 282b8bbed2 UI: Remove console logging from ReformatHook 2022-07-21 13:51:27 +02:00
Ilija Lazoroski b8c253c3e0 UI: Add state credentials to ExprotConfigModal
* Delete a advanced key from config
2022-07-21 13:49:31 +02:00
Ilija Lazoroski c5c0fe2302 UI: Fix formatting of credentials 2022-07-21 13:49:03 +02:00
Mike Salvatore 998d33a22c Project: Update python to 3.7.9 for Windows travisci job 2022-07-21 07:46:31 -04:00
Ilija Lazoroski 7769ec4aa3 UI: Fix Import Config to use the new configuration 2022-07-21 13:46:25 +02:00
Ilija Lazoroski ba05058ec2 UI: Fix Export Config to use the new configuration 2022-07-21 13:45:45 +02:00
Ilija Lazoroski fec3df937b UI: Add SensitiveTextInput to Passwords, LM and NTLM credentials input 2022-07-21 11:15:15 +02:00
Ilija Lazoroski 9fdbcc441d UI: Check if any of the credentials are not null 2022-07-21 10:53:08 +02:00
Ilija Lazoroski 47f78d1a2d Agent: Use response.text in ControlChannel 2022-07-21 10:52:35 +02:00
Ilija Lazoroski 6d372485fc UI: Reformat advanced.keep_tunnel_open_time 2022-07-21 10:10:57 +02:00