Agent: Modify HadoopExploiter tags to be properties

This commit is contained in:
Ilija Lazoroski 2022-10-06 12:58:19 +02:00
parent 76a3cb0ba0
commit 8f6df12d9c
1 changed files with 2 additions and 5 deletions

View File

@ -10,7 +10,6 @@ import posixpath
import random
import string
from time import time
from typing import Tuple
import requests
@ -44,11 +43,9 @@ class HadoopExploiter(WebRCE):
# Random string's length that's used for creating unique app name
RAN_STR_LEN = 6
def _exploiter_tags(self) -> Tuple[str, ...]:
return (HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG, T1210_ATTACK_TECHNIQUE_TAG)
_exploiter_tags = (HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG, T1210_ATTACK_TECHNIQUE_TAG)
def _propagation_tags(self) -> Tuple[str, ...]:
return (HADOOP_EXPLOITER_TAG, T1105_ATTACK_TECHNIQUE_TAG)
_propagation_tags = (HADOOP_EXPLOITER_TAG, T1105_ATTACK_TECHNIQUE_TAG)
def __init__(self):
super(HadoopExploiter, self).__init__()