1 diff -Nur chkrootkit-0.44.orig/chkrootkit chkrootkit-0.44/chkrootkit
2 --- chkrootkit-0.44.orig/chkrootkit 2004-09-01 13:27:28.000000000 +0000
3 +++ chkrootkit-0.44/chkrootkit 2004-09-01 16:50:34.000000000 +0000
7 if [ "${EXPERT}" = "t" ]; then
8 - expertmode_output "./ifpromisc" -v
9 + expertmode_output "/usr/bin/chkrootkit-ifpromisc" -v
12 - if [ ! -x ./ifpromisc ]; then
13 - echo "not tested: can't exec ./ifpromisc"
14 + if [ ! -x /usr/bin/chkrootkit-ifpromisc ]; then
15 + echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
18 - [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q
19 + [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc -v || /usr/bin/chkrootkit-ifpromisc -q
24 - if [ ! -x ./chklastlog ]; then
25 - echo "not tested: can't exec ./chklastlog"
26 + if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
27 + echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
34 if [ "${EXPERT}" = "t" ]; then
35 - expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
36 + expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
40 - if ./chklastlog -f ${WTMP} -l ${LASTLOG}
41 + if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
43 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
48 - if [ ! -x ./chkwtmp ]; then
49 - echo "not tested: can't exec ./chkwtmp"
50 + if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
51 + echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
55 if [ "$SYSTEM" = "SunOS" ]; then
56 - if [ ! -x ./check_wtmpx ]; then
57 - echo "not tested: can't exec ./check_wtmpx"
58 + if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
59 + echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
61 if [ "${EXPERT}" = "t" ]; then
62 - expertmode_output "./check_wtmpx"
63 + expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
66 if [ -f ${ROOTDIR}var/adm/wtmp ]; then
68 + if /usr/bin/chkrootkit-check_wtmpx
70 if [ "${QUIET}" != "t" ]; then \
71 echo "nothing deleted in /var/adm/wtmpx"; fi
73 WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
75 if [ "${EXPERT}" = "t" ]; then
76 - expertmode_output "./chkwtmp -f ${WTMP}"
77 + expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
82 - if ./chkwtmp -f ${WTMP}
83 + if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
85 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
89 if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
90 `echo ${V} | ${awk} '{ if ($1 > 4.3) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then
91 - [ ! -x ./chkproc ] && prog="./chkproc"
92 - [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
93 + [ ! -x /usr/bin/chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
94 + [ ! -x /usr/bin/chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
95 if [ "$prog" != "" ]; then
96 # echo "not tested: can't exec $prog"
99 PV=`$ps -V 2>/dev/null| $cut -d " " -f 3 |$awk -F . '{ print $1 "." $2 $3 }' | ${awk} '{ if ($0 > 3.19) print 2; else print 1 }'`
100 [ "$PV" = "" ] && PV=1
101 [ "${SYSTEM}" = "SunOS" ] && PV=0
102 - expertmode_output "./chkproc -v -v -p $PV"
103 + expertmode_output "/usr/bin/chkrootkit-chkproc -v -v -p $PV"
108 if [ "${DEBUG}" = "t" ]; then
109 ${echo} "*** $PV ***"
111 - if ./chkproc -p ${PV}
112 + if /usr/bin/chkrootkit-chkproc -p ${PV}
114 if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
116 @@ -1534,18 +1534,18 @@
118 if [ "${SYSTEM}" = "Linux" ]
120 - if [ ! -x ./strings-static ]; then
121 - printn "can't exec ./strings-static, "
122 + if [ ! -x /usr/bin/chkrootkit-strings-static ]; then
123 + printn "can't exec /usr/bin/chkrootkit-strings-static, "
127 if [ "${EXPERT}" = "t" ]; then
128 - expertmode_output "./strings-static -a ${CMD}"
129 + expertmode_output "/usr/bin/chkrootkit-strings-static -a ${CMD}"
133 ### strings must be a statically linked binary.
134 - if ./strings-static -a ${CMD} > /dev/null 2>&1
135 + if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1