1 diff -burN chkrootkit-0.42.orig/chkrootkit chkrootkit-0.42/chkrootkit
2 --- chkrootkit-0.42.orig/chkrootkit 2003-09-15 09:05:41.342646240 +0200
3 +++ chkrootkit-0.42/chkrootkit 2003-09-15 09:11:40.081109704 +0200
7 if [ "${EXPERT}" = "t" ]; then
8 - expertmode_output "./ifpromisc"
9 + expertmode_output "/usr/bin/chkrootkit-ifpromisc"
12 if [ ! -f ${ROOTDIR}proc/net/packet ]; then
13 - if [ ! -x ./ifpromisc ]; then
14 - echo "not tested: can't exec ./ifpromisc"
15 + if [ ! -x /usr/bin/chkrootkit-ifpromisc ]; then
16 + echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
19 - [ "${QUIET}" != "t" ] && ./ifpromisc || ./ifpromisc -q
20 + [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc || /usr/bin/chkrootkit-ifpromisc -q
22 if [ `${egrep} -cv "sk" ${ROOTDIR}proc/net/packet 2>/dev/null` -gt 0 ]; then
23 set `${egrep} ":" $ROOTDIR/proc/net/dev | ${egrep} -v "lo:" | cut -f 1 -d:`
28 - if [ ! -x ./chklastlog ]; then
29 - echo "not tested: can't exec ./chklastlog"
30 + if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
31 + echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
36 LASTLOG=`loc lastlog lastlog "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
38 if [ "${EXPERT}" = "t" ]; then
39 - expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
40 + expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
44 - if ./chklastlog -f ${WTMP} -l ${LASTLOG}
45 + if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
47 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
52 - if [ ! -x ./chkwtmp ]; then
53 - echo "not tested: can't exec ./chkwtmp"
54 + if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
55 + echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
59 if [ "$SYSTEM" = "SunOS" ]; then
60 - if [ ! -x ./check_wtmpx ]; then
61 - echo "not tested: can't exec ./check_wtmpx"
62 + if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
63 + echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
65 if [ "${EXPERT}" = "t" ]; then
66 - expertmode_output "./check_wtmpx"
67 + expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
71 + if /usr/bin/chkrootkit-check_wtmpx
73 if [ "${QUIET}" != "t" ]; then \
74 echo "nothing deleted in /var/adm/wtmpx"; fi
76 WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
78 if [ "${EXPERT}" = "t" ]; then
79 - expertmode_output "./chkwtmp -f ${WTMP}"
80 + expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
85 - if ./chkwtmp -f ${WTMP}
86 + if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
88 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
92 if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
93 ${V} -gt 43 \) \) -a "${ROOTDIR}" = "/" ]; then
94 - [ ! -x ./chkproc ] && prog="./chkproc"
95 - [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
96 + [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
97 + [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
98 if [ "$prog" != "" ]; then
99 # echo "not tested: can't exec $prog"
102 if [ "${EXPERT}" = "t" ]; then
103 [ -r /proc/ksyms ] && ${egrep} -i "adore|sebek" < /proc/ksyms 2>/dev/null
104 [ -d /proc/knark ] && ${ls} -la /proc/knark 2> /dev/null
105 - expertmode_output "./chkproc -v -v"
106 + expertmode_output "/usr/bin/chkrootkit-chkproc -v -v"
111 echo "Warning: Knark LKM installed"
115 + if /usr/bin/chkrootkit-chkproc
117 if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
119 @@ -1463,18 +1463,18 @@
121 if [ "${SYSTEM}" = "Linux" ]
123 - if [ ! -x ./strings ]; then
124 - printn "can't exec ./strings-static, "
125 + if [ ! -x /usr/bin/chkrootkit-strings ]; then
126 + printn "can't exec /usr/bin/chkrootkit-strings-static, "
130 if [ "${EXPERT}" = "t" ]; then
131 - expertmode_output "./strings -a ${CMD}"
132 + expertmode_output "/usr/bin/chkrootkit-strings -a ${CMD}"
136 ### strings must be a statically linked binary.
137 - if ./strings-static -a ${CMD} > /dev/null 2>&1
138 + if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1