Agent: Define exploiter and propagation tags correctly

This commit is contained in:
Shreya Malviya 2022-10-07 12:00:04 +05:30 committed by GitHub
parent f917654f41
commit ce6ca64b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 16 deletions

View File

@ -49,22 +49,18 @@ class SMBExploiter(HostExploiter):
}
USE_KERBEROS = False
SMB_SERVICE_NAME = "InfectionMonkey"
def _EXPLOITER_TAGS(self) -> Tuple[str, ...]:
return (
SMBEXEC_EXPLOITER_TAG,
T1021_ATTACK_TECHNIQUE_TAG,
T1110_ATTACK_TECHNIQUE_TAG,
T1210_ATTACK_TECHNIQUE_TAG,
)
def _PROPAGATION_TAGS(self) -> Tuple[str, ...]:
return (
SMBEXEC_EXPLOITER_TAG,
T1021_ATTACK_TECHNIQUE_TAG,
T1105_ATTACK_TECHNIQUE_TAG,
T1210_ATTACK_TECHNIQUE_TAG,
)
_EXPLOITER_TAGS = (
SMBEXEC_EXPLOITER_TAG,
T1021_ATTACK_TECHNIQUE_TAG,
T1110_ATTACK_TECHNIQUE_TAG,
T1210_ATTACK_TECHNIQUE_TAG,
)
_PROPAGATION_TAGS = (
SMBEXEC_EXPLOITER_TAG,
T1021_ATTACK_TECHNIQUE_TAG,
T1105_ATTACK_TECHNIQUE_TAG,
T1210_ATTACK_TECHNIQUE_TAG,
)
def _exploit_host(self):