1 diff -Nur chkrootkit-0.39a.orig/chkrootkit chkrootkit-0.39a/chkrootkit
2 --- chkrootkit-0.39a.orig/chkrootkit Thu Jan 30 23:45:57 2003
3 +++ chkrootkit-0.39a/chkrootkit Sat Feb 8 16:49:10 2003
8 - if [ ! -x ./ifpromisc ]; then
9 - echo "not tested: can't exec ./ifpromisc"
10 + if [ ! -x /usr/bin/chkrootkit-ifpromisc ]; then
11 + echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
15 if [ "${EXPERT}" = "t" ]; then
16 - expertmode_output "./ifpromisc"
17 + expertmode_output "/usr/bin/chkrootkit-ifpromisc"
22 + /usr/bin/chkrootkit-ifpromisc
26 - if [ ! -x ./chklastlog ]; then
27 - echo "not tested: can't exec ./chklastlog"
28 + if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
29 + echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
34 LASTLOG=`loc lastlog lastlog "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
36 if [ "${EXPERT}" = "t" ]; then
37 - expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
38 + expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
42 - if ./chklastlog -f ${WTMP} -l ${LASTLOG}
43 + if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
45 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
50 - if [ ! -x ./chkwtmp ]; then
51 - echo "not tested: can't exec ./chkwtmp"
52 + if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
53 + echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
57 if [ "$SYSTEM" = "SunOS" ]; then
58 - if [ ! -x ./check_wtmpx ]; then
59 - echo "not tested: can't exec ./check_wtmpx"
60 + if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
61 + echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
63 if [ "${EXPERT}" = "t" ]; then
64 - expertmode_output "./check_wtmpx"
65 + expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
69 + if /usr/bin/chkrootkit-check_wtmpx
71 if [ "${QUIET}" != "t" ]; then \
72 echo "nothing deleted in /var/adm/wtmpx"; fi
74 WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
76 if [ "${EXPERT}" = "t" ]; then
77 - expertmode_output "./chkwtmp -f ${WTMP}"
78 + expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
83 - if ./chkwtmp -f ${WTMP}
84 + if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
86 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
90 if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
91 ${V} -gt 43 \) \) -a "${ROOTDIR}" = "/" ]; then
92 - [ ! -x ./chkproc ] && prog="./chkproc"
93 - [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
94 + [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
95 + [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
96 if [ "$prog" != "" ]; then
97 # echo "not tested: can't exec $prog"
100 if [ "${EXPERT}" = "t" ]; then
101 [ -r /proc/ksyms ] && ${egrep} -i "adore|sebek" < /proc/ksyms 2>/dev/null
102 [ -d /proc/knark ] && ${ls} -la /proc/knark 2> /dev/null
103 - expertmode_output "./chkproc -v -v"
104 + expertmode_output "/usr/bin/chkrootkit-chkproc -v -v"
109 echo "Warning: Knark LKM installed"
113 + if /usr/bin/chkrootkit-chkproc
115 if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
117 @@ -1350,18 +1350,18 @@
119 if [ "${SYSTEM}" = "Linux" ]
121 - if [ ! -x ./strings ]; then
122 - printn "can't exec ./strings-static, "
123 + if [ ! -x /usr/bin/chkrootkit-strings ]; then
124 + printn "can't exec /usr/bin/chkrootkit-strings-static, "
128 if [ "${EXPERT}" = "t" ]; then
129 - expertmode_output "./strings -a ${CMD}"
130 + expertmode_output "/usr/bin/chkrootkit-strings -a ${CMD}"
134 ### strings must be a statically linked binary.
135 - if ./strings-static -a ${CMD} > /dev/null 2>&1
136 + if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1