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