diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-06-26 19:20:16 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-06-26 19:20:16 +0000 |
commit | cf3dd6d78e400692f9d34bb3d5692db4d613906b (patch) | |
tree | 6b0fac0ce76cf02993bfc4bcc649540e39633f82 | |
parent | 93d2eb4d210f30f02b7a9ffc10271e7a7ed099e5 (diff) | |
download | msec-cf3dd6d78e400692f9d34bb3d5692db4d613906b.tar msec-cf3dd6d78e400692f9d34bb3d5692db4d613906b.tar.gz msec-cf3dd6d78e400692f9d34bb3d5692db4d613906b.tar.bz2 msec-cf3dd6d78e400692f9d34bb3d5692db4d613906b.tar.xz msec-cf3dd6d78e400692f9d34bb3d5692db4d613906b.zip |
Updated promisc check.
-rwxr-xr-x | cron-sh/promisc_check.sh (renamed from cron-sh/scripts/06_promisc.sh) | 1 | ||||
-rwxr-xr-x | cron-sh/scripts/02_network.sh | 5 |
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 |