diff options
Diffstat (limited to 'cron-sh')
-rwxr-xr-x | cron-sh/promisc_check.sh | 9 | ||||
-rwxr-xr-x | cron-sh/security.sh | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/cron-sh/promisc_check.sh b/cron-sh/promisc_check.sh index cabf0a8..ec0526d 100755 --- a/cron-sh/promisc_check.sh +++ b/cron-sh/promisc_check.sh @@ -6,7 +6,7 @@ if [[ -f /etc/security/msec/security.conf ]]; then . /etc/security/msec/security.conf else - echo "/etc/security/msec/security.conf don't exist." + echo "/etc/security/msec/security.conf doesn't exist." exit 1 fi @@ -29,11 +29,8 @@ Ttylog() { fi } +# Check if a network interface is in promiscuous mode... PROMISC="/usr/bin/promisc_check -q" -# -# Check if a network interface is in promisc check... -# Written by Vandoorselaere Yoann, <yoann@mandrakesoft.com> -# LogPromisc() { date=`date` @@ -57,7 +54,7 @@ if [[ ${CHECK_PROMISC} == no ]]; then fi for INTERFACE in `${PROMISC}`; do - LogPromisc $INTERFACE + LogPromisc ${INTERFACE} done diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 43ad9d6..ee94863 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -72,6 +72,8 @@ fi netstat -pvlA inet 2> /dev/null > ${OPEN_PORT_TODAY}; + +# Hard disk related file check; the less priority the better... nice --adjustment=+19 find ${DIR} -xdev -type f -perm +04000 -user root -printf "${PRINT}" 2> /dev/null | sort > ${SUID_ROOT_TODAY} nice --adjustment=+19 find ${DIR} -xdev -type f -perm +02000 -printf "${PRINT}" 2> /dev/null | sort > ${SUID_GROUP_TODAY} nice --adjustment=+19 find ${DIR} -xdev -type f -perm -2 -printf "${PRINT}" 2> /dev/null | sort > ${WRITEABLE_TODAY} @@ -115,8 +117,8 @@ Maillog() { ################## -. /etc/security/msec/cron-sh/diff_check.sh -. /etc/security/msec/cron-sh/security_check.sh +. /usr/share/msec/diff_check.sh +. /usr/share/msec/security_check.sh |