forked from p34709852/monkey
small fixes
This commit is contained in:
parent
cc09aeefa1
commit
2fa45ef5bc
|
@ -50,7 +50,7 @@ class AttackTechnique(object):
|
||||||
def technique_status(cls):
|
def technique_status(cls):
|
||||||
"""
|
"""
|
||||||
Gets the status of a certain attack technique.
|
Gets the status of a certain attack technique.
|
||||||
:return: ScanStatus Enum object
|
:return: ScanStatus numeric value
|
||||||
"""
|
"""
|
||||||
if mongo.db.telemetry.find_one({'telem_category': 'attack',
|
if mongo.db.telemetry.find_one({'telem_category': 'attack',
|
||||||
'data.status': ScanStatus.USED.value,
|
'data.status': ScanStatus.USED.value,
|
||||||
|
@ -97,7 +97,7 @@ class AttackTechnique(object):
|
||||||
def get_tech_base_data(cls):
|
def get_tech_base_data(cls):
|
||||||
"""
|
"""
|
||||||
Gathers basic attack technique data into a dict.
|
Gathers basic attack technique data into a dict.
|
||||||
:return: dict E.g. {'message': 'Brute force used', 'status': 'Used', 'title': 'T1110 Brute force'}
|
:return: dict E.g. {'message': 'Brute force used', 'status': 2, 'title': 'T1110 Brute force'}
|
||||||
"""
|
"""
|
||||||
data = {}
|
data = {}
|
||||||
status = cls.technique_status()
|
status = cls.technique_status()
|
||||||
|
|
|
@ -11,7 +11,7 @@ class T1107 extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
static renderDelete(status){
|
static renderDelete(status){
|
||||||
if(status === 2){
|
if(status === scanStatus.USED){
|
||||||
return <span>Yes</span>
|
return <span>Yes</span>
|
||||||
} else {
|
} else {
|
||||||
return <span>No</span>
|
return <span>No</span>
|
||||||
|
|
Loading…
Reference in New Issue