mirror of https://github.com/CISOfy/lynis.git
Mac OS improvement for test NETW-3012
This commit is contained in:
parent
116b1eab97
commit
911a5e88f6
|
@ -292,10 +292,12 @@
|
|||
|
||||
MacOS)
|
||||
if [ ! "${LSOFBINARY}" = "" ]; then
|
||||
# UDP and TCP combined
|
||||
FIND=`${LSOFBINARY} -i -P | awk '{ print $9"|"$8"|"$1"|" }' | sed 's/\(.*\)\-\>.*\(\|.*\)/\1\2/' | sed 's/\*/'$IP'/' | sort -u | grep -v "NAME"`
|
||||
else
|
||||
FIND=""
|
||||
fi
|
||||
# Not needed as we have a combined test
|
||||
FIND2=""
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue