Add tests for port and protocol validation and update changelog

This commit is contained in:
Marek Wolan
2024-09-26 16:00:59 +01:00
parent f2b6d68b14
commit 203ec5ec85
7 changed files with 56 additions and 7 deletions

View File

@@ -366,7 +366,7 @@ class AbstractC2(Application, identifier="AbstractC2"):
:return: True on successful configuration, false otherwise.
:rtype: bool
"""
# Validating that they are valid Enums.
# Validating that they are valid Ports and Protocols.
if not is_valid_port(payload.masquerade_port) or not is_valid_protocol(payload.masquerade_protocol):
self.sys_log.warning(
f"{self.name}: Received invalid Masquerade Values within Keep Alive."