summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-07-15 20:58:50 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-07-15 20:58:50 +0000
commit7dcf031441718aec5fd9155138230b8c1c53de41 (patch)
tree48d82fba6eb2dabf6577a97342bfee815eb8b441
parentVersion bumped. (diff)
downloadgentoo-2-7dcf031441718aec5fd9155138230b8c1c53de41.tar.gz
gentoo-2-7dcf031441718aec5fd9155138230b8c1c53de41.tar.bz2
gentoo-2-7dcf031441718aec5fd9155138230b8c1c53de41.zip
Version bumped.
-rw-r--r--app-admin/chkrootkit/ChangeLog8
-rw-r--r--app-admin/chkrootkit/Manifest4
-rw-r--r--app-admin/chkrootkit/chkrootkit-0.41.ebuild32
-rw-r--r--app-admin/chkrootkit/files/chkrootkit-0.41-gentoo.diff947
-rw-r--r--app-admin/chkrootkit/files/digest-chkrootkit-0.411
5 files changed, 989 insertions, 3 deletions
diff --git a/app-admin/chkrootkit/ChangeLog b/app-admin/chkrootkit/ChangeLog
index 797c08b674e9..c8adc5d76c8a 100644
--- a/app-admin/chkrootkit/ChangeLog
+++ b/app-admin/chkrootkit/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/chkrootkit
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/chkrootkit/ChangeLog,v 1.10 2003/06/29 15:24:07 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/chkrootkit/ChangeLog,v 1.11 2003/07/15 20:58:40 mholzer Exp $
+
+*chkrootkit-0.41 (16 Jul 2003)
+
+ 16 Jul 2003; Martin Holzer <mholzer@gentoo.org> chkrootkit-0.41.ebuild:
+ Version bumped. Ebuild ssubmitted by Daniel Seyffer <gentoo-bugs@seyffer.de>
+ in #24313.
*chkrootkit-0.39a (27 Feb 2003)
diff --git a/app-admin/chkrootkit/Manifest b/app-admin/chkrootkit/Manifest
index 3dda36549841..616768a9ff76 100644
--- a/app-admin/chkrootkit/Manifest
+++ b/app-admin/chkrootkit/Manifest
@@ -1,7 +1,7 @@
-MD5 6721522d68a8a3e91c7baa58d37f2902 ChangeLog 1322
+MD5 2ee22c3d498ffdca07f7d492c5a1c71e ChangeLog 1524
MD5 24515d38d6a5fc2aa0a74ab5e335e4d9 chkrootkit-0.37.ebuild 746
MD5 28584ac9a09024174e34831c7e42a22d chkrootkit-0.39a.ebuild 751
-MD5 a343d4bf4eb6e5453f07f0a727029756 chkrootkit-0.41.ebuild 777
+MD5 0003afafcf9293d481917f71ebee03e1 chkrootkit-0.41.ebuild 779
MD5 f97957a94793b86fd018b32e44811f89 files/chkrootkit-0.37-gentoo.diff 4531
MD5 e9f2cc0eace779d1cad291deb9d9c7e1 files/chkrootkit-0.39a-gentoo.diff 28218
MD5 7cf45be07aafbbaa3252ce9ece31d5b6 files/digest-chkrootkit-0.37 66
diff --git a/app-admin/chkrootkit/chkrootkit-0.41.ebuild b/app-admin/chkrootkit/chkrootkit-0.41.ebuild
new file mode 100644
index 000000000000..1116caf83a00
--- /dev/null
+++ b/app-admin/chkrootkit/chkrootkit-0.41.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/chkrootkit/chkrootkit-0.41.ebuild,v 1.1 2003/07/15 20:58:40 mholzer Exp $
+
+inherit eutils
+
+DESCRIPTION="a tool to locally check for signs of a rootkit"
+SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz"
+HOMEPAGE="http://www.chkrootkit.org/"
+IUSE=""
+KEYWORDS="x86 ~ppc ~sparc ~alpha"
+LICENSE="AMS"
+SLOT="0"
+
+DEPEND="virtual/glibc"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_compile() {
+ make sense || die
+}
+
+src_install() {
+ dosbin check_wtmpx chklastlog chkproc chkrootkit chkwtmp ifpromisc
+ dodoc COPYRIGHT README README.chklastlog README.chkwtmp
+}
diff --git a/app-admin/chkrootkit/files/chkrootkit-0.41-gentoo.diff b/app-admin/chkrootkit/files/chkrootkit-0.41-gentoo.diff
new file mode 100644
index 000000000000..129fc45af6ba
--- /dev/null
+++ b/app-admin/chkrootkit/files/chkrootkit-0.41-gentoo.diff
@@ -0,0 +1,947 @@
+--- chkrootkit-0.41/chkrootkit 2003-06-21 04:09:09.000000000 +0200
++++ chkrootkit 2003-07-11 23:33:59.763190408 +0200
+@@ -10,6 +10,15 @@
+ # (C)1997-2003 Nelson Murilo, Pangeia Informatica, AMS Foundation and others.
+ # All rights reserved
+
++# Gentoo specific : Could use `type <command> | cut -f 3 -d " "`
++IFPROMISC="/usr/sbin/ifpromisc"
++CHKLASTLOG="/usr/sbin/chklastlog"
++CHKPROC="/usr/sbin/chkproc"
++CHKWTMP="/usr/sbin/chkwtmp"
++CHECK_WTMPX="/usr/sbin/check_wtmpx"
++# ebuild doesn't install chkrootkit's strings; use gnus.
++STRINGS="/usr/bin/strings"
++
+ ### workaround for some Bourne shell implementations
+ unalias login > /dev/null 2>&1
+ unalias ls > /dev/null 2>&1
+@@ -116,7 +125,7 @@
+
+ if [ "${EXPERT}" = "t" ]; then
+ expertmode_output "${egrep} ^asp ${ROOTDIR}etc/inetd.conf"
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+@@ -132,7 +141,7 @@
+ STATUS=${INFECTED}
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${ASP_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${ASP_LABEL}" >/dev/null 2>&1
+ then
+ echo "INFECTED"
+ STATUS=${INFECTED}
+@@ -150,22 +159,22 @@
+ return ${NOT_TESTED}
+ fi
+
+- if [ ! -x ./ifpromisc ]; then
+- echo "not tested: can't exec ./ifpromisc"
++ if [ ! -x ${IFPROMISC} ]; then
++ echo "not tested: can't exec ${IFPROMISC}"
+ return ${NOT_TESTED}
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./ifpromisc"
++ expertmode_output "${IFPROMISC}"
+ return 5
+ fi
+ echo
+- [ "${QUIET}" != "t" ] && ./ifpromisc || ./ifpromisc -q
++ [ "${QUIET}" != "t" ] && ${IFPROMISC} || ${IFPROMISC} -q
+ }
+
+ z2 () {
+- if [ ! -x ./chklastlog ]; then
+- echo "not tested: can't exec ./chklastlog"
++ if [ ! -x ${CHKLASTLOG} ]; then
++ echo "not tested: can't exec ${CHKLASTLOG}"
+ return ${NOT_TESTED}
+ fi
+
+@@ -173,31 +182,31 @@
+ LASTLOG=`loc lastlog lastlog "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
++ expertmode_output "${CHKLASTLOG} -f ${WTMP} -l ${LASTLOG}"
+ return 5
+ fi
+
+- if ./chklastlog -f ${WTMP} -l ${LASTLOG}
++ if ${CHKLASTLOG} -f ${WTMP} -l ${LASTLOG}
+ then
+ if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
+ fi
+ }
+
+ wted () {
+- if [ ! -x ./chkwtmp ]; then
+- echo "not tested: can't exec ./chkwtmp"
++ if [ ! -x ${CHKWTMP} ]; then
++ echo "not tested: can't exec ${CHKWTMP}"
+ return ${NOT_TESTED}
+ fi
+
+ if [ "$SYSTEM" = "SunOS" ]; then
+- if [ ! -x ./check_wtmpx ]; then
+- echo "not tested: can't exec ./check_wtmpx"
++ if [ ! -x ${CHECK_WTMPX} ]; then
++ echo "not tested: can't exec ${CHECK_WTMPX}"
+ else
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./check_wtmpx"
++ expertmode_output "${CHECK_WTMPX}"
+ return 5
+ fi
+- if ./check_wtmpx
++ if ${CHECK_WTMPX}
+ then
+ if [ "${QUIET}" != "t" ]; then \
+ echo "nothing deleted in /var/adm/wtmpx"; fi
+@@ -207,12 +216,12 @@
+ WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "./chkwtmp -f ${WTMP}"
++ expertmode_output "${CHKWTMP} -f ${WTMP}"
+ return 5
+ fi
+ fi
+
+- if ./chkwtmp -f ${WTMP}
++ if ${CHKWTMP} -f ${WTMP}
+ then
+ if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
+ fi
+@@ -251,7 +260,7 @@
+ prog=""
+ if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
+ ${V} -gt 43 \) \) -a "${ROOTDIR}" = "/" ]; then
+- [ ! -x ./chkproc ] && prog="./chkproc"
++ [ ! -x ${CHKPROC} ] && prog="${CHKPROC}"
+ [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
+ if [ "$prog" != "" ]; then
+ # echo "not tested: can't exec $prog"
+@@ -261,7 +270,7 @@
+ if [ "${EXPERT}" = "t" ]; then
+ [ -r /proc/ksyms ] && ${egrep} -i "adore|sebek" < /proc/ksyms 2>/dev/null
+ [ -d /proc/knark ] && ${ls} -la /proc/knark 2> /dev/null
+- expertmode_output "./chkproc -v -v"
++ expertmode_output "${CHKPROC} -v -v"
+ return 5
+ fi
+
+@@ -282,7 +291,7 @@
+ echo "Warning: Knark LKM installed"
+ fi
+
+- if ./chkproc
++ if ${CHKPROC}
+ then
+ if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
+ else
+@@ -454,7 +463,7 @@
+ ${egrep} "\.hk" ${ROOTDIR}etc/rc.d/init.d/network 2>/dev/null
+
+ ## Suckit rootkit
+- expertmode_output "${strings} ${ROOTDIR}sbin/init | ${egrep} HOME"
++ expertmode_output "${STRINGS} ${ROOTDIR}sbin/init | ${egrep} HOME"
+
+ ## Volc rootkit
+ expertmode_output "${ls} ${ROOTDIR}usr/bin/volc"
+@@ -863,7 +872,7 @@
+ ### Suckit
+ if [ -f /sbin/init ]; then
+ if [ "${QUIET}" != "t" ];then printn "Searching for Suckit rootkit ... "; fi
+- if ${strings} /sbin/init | ${egrep} HOME >/dev/null 2>&1 ; then
++ if ${STRINGS} /sbin/init | ${egrep} HOME >/dev/null 2>&1 ; then
+ echo "Warning: /sbin/init INFECTED"
+ else
+ if [ "${QUIET}" != "t" ]; then echo "nothing found"; fi
+@@ -1008,19 +1017,19 @@
+ CMD=`loc chfn chfn $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+ case "${SYSTEM}" in
+ Linux)
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi;;
+ FreeBSD)
+- if [ `${strings} -a ${CMD} | \
++ if [ `${STRINGS} -a ${CMD} | \
+ ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne 2 ]
+ then
+ STATUS=${INFECTED}
+@@ -1035,16 +1044,16 @@
+ REDHAT_PAM_LABEL="*NOT*"
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+ case "${SYSTEM}" in
+ Linux)
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" \
+ >/dev/null 2>&1
+ then
+- if ${strings} -a ${CMD} | ${egrep} "${REDHAT_PAM_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${REDHAT_PAM_LABEL}" \
+ >/dev/null 2>&1
+ then
+ :
+@@ -1053,7 +1062,7 @@
+ fi
+ fi;;
+ FreeBSD)
+- if [ `${strings} -a ${CMD} | ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne 2 ]
++ if [ `${STRINGS} -a ${CMD} | ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne 2 ]
+ then
+ STATUS=${INFECTED}
+ fi;;
+@@ -1066,13 +1075,13 @@
+ CMD=`loc login login $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+ if [ "$SYSTEM" = "SunOS" ]; then
+ TROJED_L_L="porcao|/bin/xstat"
+- if ${strings} -a ${CMD} | ${egrep} "${TROJED_L_L}" >/dev/null 2>&1 ]; then
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TROJED_L_L}" >/dev/null 2>&1 ]; then
+ return ${INFECTED}
+ else
+ return ${NOT_TESTED}
+@@ -1080,7 +1089,7 @@
+ fi
+ GENERAL="^root$"
+ TROJED_L_L="vejeta|xlogin|^@\(#\)klogin\.c|lets_log|sukasuka|/usr/lib/.ark?|SucKIT"
+- ret=`${strings} -a ${CMD} | ${egrep} -c "${GENERAL}"`
++ ret=`${STRINGS} -a ${CMD} | ${egrep} -c "${GENERAL}"`
+ if [ ${ret} -gt 0 ]; then
+ case ${ret} in
+ 1) [ "${SYSTEM}" = "OpenBSD" -a ${V} -le 27 -o ${V} -ge 30 ] && \
+@@ -1091,7 +1100,7 @@
+ *) STATUS=${INFECTED};;
+ esac
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${TROJED_L_L}" 2>&1 >/dev/null
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TROJED_L_L}" 2>&1 >/dev/null
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1107,14 +1116,14 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ fi
+
+ if [ "${SYSTEM}" = "OpenBSD" -o "${SYSTEM}" = "SunOS" ]
+ then
+ return ${NOT_TESTED}
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}|/lib/security" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}|/lib/security" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1132,11 +1141,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1155,11 +1164,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${SYSLOG_I_L}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${SYSLOG_I_L}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1176,11 +1185,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${HDPARM_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${HDPARM_INFECTED_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1198,11 +1207,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GPM_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GPM_INFECTED_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1220,11 +1229,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${MINGETTY_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${MINGETTY_INFECTED_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1242,11 +1251,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${SENDMAIL_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${SENDMAIL_INFECTED_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1260,11 +1269,11 @@
+ CMD=`loc ls ls $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${LS_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${LS_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1277,11 +1286,11 @@
+ CMD=`loc du du $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${DU_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${DU_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1301,11 +1310,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${NAMED_I_L}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${NAMED_I_L}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1319,11 +1328,11 @@
+ CMD=`loc netstat netstat $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${NETSTAT_I_L}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${NETSTAT_I_L}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -1338,11 +1347,11 @@
+ CMD=`loc ps ps $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${PS_I_L}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${PS_I_L}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1360,11 +1369,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${PSTREE_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${PSTREE_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1382,11 +1391,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1404,11 +1413,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1426,11 +1435,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1469,11 +1478,11 @@
+ CMD=`loc basename basename $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1493,11 +1502,11 @@
+ CMD=`loc dirname dirname $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1518,11 +1527,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1534,12 +1543,12 @@
+ CMD=`loc rpcinfo rpcinfo $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1555,12 +1564,12 @@
+ CMD=`loc date date $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1576,12 +1585,12 @@
+ CMD=`loc echo echo $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1597,12 +1606,12 @@
+ CMD=`loc env env $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1624,11 +1633,11 @@
+ fi
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1642,11 +1651,11 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1661,11 +1670,11 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${INIT_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${INIT_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1679,11 +1688,11 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1697,11 +1706,11 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1713,12 +1722,12 @@
+ CMD=`loc write write $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" | grep -v locale > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" | grep -v locale > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1735,11 +1744,11 @@
+ W_INFECTED_LABEL="uname -a"
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${W_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${W_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1755,11 +1764,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${VDIR_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${VDIR_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1791,7 +1800,7 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+ STATUS=${INFECTED}
+@@ -1808,12 +1817,12 @@
+ MAIL_INFECTED_LABEL="sh -i"
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${MAIL_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${MAIL_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1833,12 +1842,12 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1855,11 +1864,11 @@
+ CMD=`loc egrep egrep $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${EGREP_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${EGREP_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1872,12 +1881,12 @@
+ CMD=`loc grep grep $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ expertmode_output "${ls} -l ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${GREP_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${GREP_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1899,11 +1908,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TOP_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1921,10 +1930,10 @@
+ fi
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${RLOGIN_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${RLOGIN_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1939,10 +1948,10 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${LSOF_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${LSOF_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1957,10 +1966,10 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${AMD_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${AMD_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1975,10 +1984,10 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${SLOGIN_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${SLOGIN_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -1997,10 +2006,10 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${CRON_INFECTED_LABEL}" >/dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${CRON_INFECTED_LABEL}" >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -2012,18 +2021,18 @@
+ CMD="${ROOTDIR}sbin/ifconfig"
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+ IFCONFIG_NOT_INFECTED_LABEL="PROMISC"
+ IFCONFIG_INFECTED_LABEL="/dev/tux|/session.null"
+- if ${strings} -a ${CMD} | ${egrep} "${IFCONFIG_NOT_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${IFCONFIG_NOT_INFECTED_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${NOT_INFECTED}
+ fi
+- if ${strings} -a ${CMD} | ${egrep} "${IFCONFIG_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${IFCONFIG_INFECTED_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -2043,12 +2052,12 @@
+ return ${NOT_FOUND}
+ fi
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+ RSHD_INFECTED_LABEL="HISTFILE"
+- if ${strings} -a ${CMD} | ${egrep} "${RSHD_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${RSHD_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ if ${egrep} "^#.*rshd" ${ROOTDIR}etc/inetd.conf >/dev/null 2>&1 -o \
+@@ -2084,11 +2093,11 @@
+ CMD=${ROOTDIR}${CMD}
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${TCPD_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TCPD_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -2105,11 +2114,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${SSHD2_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${SSHD2_INFECTED_LABEL}" \
+ > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -2126,11 +2135,11 @@
+ CMD=`loc su su $pth`
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${SU_INFECTED_LABEL}" > /dev/null 2>&1
++ if ${STRINGS} -a ${CMD} | ${egrep} "${SU_INFECTED_LABEL}" > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+ fi
+@@ -2150,11 +2159,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${FINGER_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${FINGER_INFECTED_LABEL}" \
+ > /dev/null 2>&1
+ then
+ STATUS=${INFECTED}
+@@ -2202,11 +2211,11 @@
+ fi
+
+ if [ "${EXPERT}" = "t" ]; then
+- expertmode_output "${strings} -a ${CMD}"
++ expertmode_output "${STRINGS} -a ${CMD}"
+ return 5
+ fi
+
+- if ${strings} -a ${CMD} | ${egrep} "${TELNETD_INFECTED_LABEL}" \
++ if ${STRINGS} -a ${CMD} | ${egrep} "${TELNETD_INFECTED_LABEL}" \
+ >/dev/null 2>&1
+ then
+ STATUS=${INFECTED}
diff --git a/app-admin/chkrootkit/files/digest-chkrootkit-0.41 b/app-admin/chkrootkit/files/digest-chkrootkit-0.41
new file mode 100644
index 000000000000..ab4943608ec4
--- /dev/null
+++ b/app-admin/chkrootkit/files/digest-chkrootkit-0.41
@@ -0,0 +1 @@
+MD5 5f9a43ba218f76f9ab5ce3d559226831 chkrootkit-0.41.tar.gz 30593