From fdba9f54ca8ca53d07cf018ad382d5f4c19dce53 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Mon, 2 Aug 2021 20:05:03 +0530 Subject: [PATCH] UI: Fix ATT&CK report bug which wasn't showing IP addresses in PBAs Fixes #1370 PR #1393 --- .../cc/ui/src/components/attack/techniques/Helpers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/attack/techniques/Helpers.js b/monkey/monkey_island/cc/ui/src/components/attack/techniques/Helpers.js index 95820b82f..7d6b3b10b 100644 --- a/monkey/monkey_island/cc/ui/src/components/attack/techniques/Helpers.js +++ b/monkey/monkey_island/cc/ui/src/components/attack/techniques/Helpers.js @@ -14,7 +14,9 @@ export function renderMachineFromSystemData(data) { machineStr = data['hostname'] + ' ( '; } data['ips'].forEach(function (ipInfo) { - if (typeof ipInfo === 'object') { + if (ipInfo instanceof Array) { + machineStr += ipInfo.join(', ') + ', '; + } else if (typeof ipInfo === 'object') { machineStr += ipInfo['addr'] + ', '; } else { machineStr += ipInfo + ', ';