From a4371cd187fe5077018edbfeee77eb17c6a90ad3 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 19 May 2020 17:36:16 -0700 Subject: [PATCH] support netstat -A --- jc/parsers/netstat_osx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jc/parsers/netstat_osx.py b/jc/parsers/netstat_osx.py index d274ea22..72f91db1 100644 --- a/jc/parsers/netstat_osx.py +++ b/jc/parsers/netstat_osx.py @@ -191,17 +191,17 @@ def parse(cleandata): headers = header_text.split() continue - if reg_kernel_control and line.startswith('id '): + if reg_kernel_control and (line.startswith('id ') or line.startswith('kctlref ')): header_text = normalize_headers(line) headers = header_text.split() continue - if active_kernel_event and line.startswith('id '): + if active_kernel_event and (line.startswith('Proto ') or line.startswith(' pcb ')): header_text = normalize_headers(line) headers = header_text.split() continue - if active_kernel_control and line.startswith('Proto '): + if active_kernel_control and (line.startswith('Proto ') or line.startswith(' pcb ')): header_text = normalize_headers(line) headers = header_text.split() continue