From b36636d28e5429966ac69c4a174071b2b482897f Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 20 Sep 2024 18:22:27 +0200 Subject: [PATCH] print macs --- evidence/parse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evidence/parse.py b/evidence/parse.py index eccb910..8eb5e2a 100644 --- a/evidence/parse.py +++ b/evidence/parse.py @@ -29,6 +29,7 @@ def get_mac(hwinfo): if "HW Address:" in n: if low_ix <= ix: mac = c.split(" ")[-1] + print(f"MAC: {mac}") return mac @@ -105,5 +106,8 @@ class Build: sku = self.get_sku() hwinfo_raw = snapshot["data"]["hwinfo"] mac = get_mac(hwinfo_raw) or "" + if not mac: + print("WARNING!! No there are MAC address") + print(f"{manufacturer}{model}{chassis}{serial_number}{sku}{mac}") return f"{manufacturer}{model}{chassis}{serial_number}{sku}{mac}"