forked from p15670423/monkey
Improved docs of "parse_usages" method
This commit is contained in:
parent
a1bc097164
commit
32e930559d
|
@ -124,8 +124,8 @@ class UsageTechnique(AttackTechnique):
|
||||||
def parse_usages(usage):
|
def parse_usages(usage):
|
||||||
"""
|
"""
|
||||||
Parses data from database and translates usage enums into strings
|
Parses data from database and translates usage enums into strings
|
||||||
:param usage:
|
:param usage: Usage telemetry that contains fields: {'usage': 'SMB', 'status': 1}
|
||||||
:return:
|
:return: usage string
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
usage['usage'] = UsageEnum[usage['usage']].value[usage['status']]
|
usage['usage'] = UsageEnum[usage['usage']].value[usage['status']]
|
||||||
|
|
Loading…
Reference in New Issue