Skip to content

Commit

Permalink
Device Name puede ser vacio, lo completamos con DeviceID enese caso, …
Browse files Browse the repository at this point in the history
…pero si no esta ninguno de los dos lo dejamos en unknown
  • Loading branch information
Esteban Rodriguez committed Sep 5, 2023
1 parent 9b3eaa0 commit aeb2c60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faraday_plugins/plugins/repo/windows_defender/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def parseOutputString(self, output):
data = json.loads(json_str)

device_name = data.pop('DeviceName', 'Unknown')
if device_name == "Unknown":
device_name = data.pop('DeviceId', 'Unknown')
os_platform = data.pop('OSPlatform', 'Unknown')
cve_id = data.pop('CveId', 'Unknown')
severity = data.pop('VulnerabilitySeverityLevel', 'Unknown')
Expand Down

0 comments on commit aeb2c60

Please sign in to comment.