Agent: Modify tags methods to be properties in SSHExploiter

This commit is contained in:
Ilija Lazoroski 2022-10-06 12:48:15 +02:00
parent dcb08b2881
commit 95f1e3cb7b
1 changed files with 3 additions and 6 deletions

View File

@ -3,7 +3,7 @@ import logging
from ipaddress import IPv4Address
from pathlib import PurePath
from time import time
from typing import Optional, Tuple
from typing import Optional
import paramiko
@ -49,11 +49,8 @@ SSH_EXPLOITER_TAG = "ssh-exploiter"
class SSHExploiter(HostExploiter):
_EXPLOITED_SERVICE = "SSH"
def _exploiter_tags(self) -> Tuple[str, ...]:
return (SSH_EXPLOITER_TAG, T1110_ATTACK_TECHNIQUE_TAG, T1021_ATTACK_TECHNIQUE_TAG)
def _propagation_tags(self) -> Tuple[str, ...]:
return (SSH_EXPLOITER_TAG, T1105_ATTACK_TECHNIQUE_TAG, T1222_ATTACK_TECHNIQUE_TAG)
_EXPLOITER_TAGS = (SSH_EXPLOITER_TAG, T1110_ATTACK_TECHNIQUE_TAG, T1021_ATTACK_TECHNIQUE_TAG)
_PROPAGATION_TAGS = (SSH_EXPLOITER_TAG, T1105_ATTACK_TECHNIQUE_TAG, T1222_ATTACK_TECHNIQUE_TAG)
def __init__(self):
super(SSHExploiter, self).__init__()