forked from p15670423/monkey
Agent: Modify HadoopExploiter tags to be properties
This commit is contained in:
parent
76a3cb0ba0
commit
8f6df12d9c
|
@ -10,7 +10,6 @@ import posixpath
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
from time import time
|
from time import time
|
||||||
from typing import Tuple
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
@ -44,11 +43,9 @@ class HadoopExploiter(WebRCE):
|
||||||
# Random string's length that's used for creating unique app name
|
# Random string's length that's used for creating unique app name
|
||||||
RAN_STR_LEN = 6
|
RAN_STR_LEN = 6
|
||||||
|
|
||||||
def _exploiter_tags(self) -> Tuple[str, ...]:
|
_exploiter_tags = (HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG, T1210_ATTACK_TECHNIQUE_TAG)
|
||||||
return (HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG, T1210_ATTACK_TECHNIQUE_TAG)
|
|
||||||
|
|
||||||
def _propagation_tags(self) -> Tuple[str, ...]:
|
_propagation_tags = (HADOOP_EXPLOITER_TAG, T1105_ATTACK_TECHNIQUE_TAG)
|
||||||
return (HADOOP_EXPLOITER_TAG, T1105_ATTACK_TECHNIQUE_TAG)
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(HadoopExploiter, self).__init__()
|
super(HadoopExploiter, self).__init__()
|
||||||
|
|
Loading…
Reference in New Issue