aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcron-sh/promisc_check.sh (renamed from cron-sh/scripts/06_promisc.sh)1
-rwxr-xr-xcron-sh/scripts/02_network.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/cron-sh/scripts/06_promisc.sh b/cron-sh/promisc_check.sh
index af248f0..53cc168 100755
--- a/cron-sh/scripts/06_promisc.sh
+++ b/cron-sh/promisc_check.sh
@@ -9,6 +9,7 @@ LogPromisc() {
Syslog " A sniffer is probably running on your system."
Ttylog "\\033[1;31mSecurity warning : $1 is in promiscuous mode.\\033[0;39m"
Ttylog "\\033[1;31mA sniffer is probably running on your system.\\033[0;39m"
+
# are we being run from security.sh script?
if [ ! -z "$SECURITY" ]; then
printf "\nSecurity Warning: $1 is in promiscuous mode!" >> ${SECURITY}
diff --git a/cron-sh/scripts/02_network.sh b/cron-sh/scripts/02_network.sh
index 621c7af..cdb477d 100755
--- a/cron-sh/scripts/02_network.sh
+++ b/cron-sh/scripts/02_network.sh
@@ -77,3 +77,8 @@ if [[ ${CHECK_OPEN_PORT} == yes ]]; then
fi
fi
+### Check if network is in promisc mode
+if [[ ${CHECK_PROMISC} == yes ]]; then
+ # check_promisc handles this
+ . /usr/share/msec/promisc_check.sh
+fi