1 --- chkrootkit-0.45/chkrootkit~ 2005-02-22 13:57:31.000000000 +0100
2 +++ chkrootkit-0.45/chkrootkit 2005-02-23 16:06:28.882194672 +0100
6 if [ "${EXPERT}" = "t" ]; then
7 - expertmode_output "./ifpromisc" -v
8 + expertmode_output "/usr/bin/chkrootkit-ifpromisc" -v
11 - if [ ! -x ./ifpromisc ]; then
12 - echo "not tested: can't exec ./ifpromisc"
13 + if [ ! -x /usr/bin/chkrootkit-ifpromisc ]; then
14 + echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
17 - [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q
18 + [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc -v || /usr/bin/chkrootkit-ifpromisc -q
23 - if [ ! -x ./chkutmp ]; then
24 - echo "not tested: can't exec ./chkutmp"
25 + if [ ! -x /usr/bin/chkrootkit-chkutmp ]; then
26 + echo "not tested: can't exec /usr/bin/chkrootkit-chkutmp"
30 + if /usr/bin/chkrootkit-chkutmp
32 if [ "${QUIET}" != "t" ]; then echo "chkutmp: nothing deleted"; fi
38 - if [ ! -x ./chklastlog ]; then
39 - echo "not tested: can't exec ./chklastlog"
40 + if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
41 + echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
48 if [ "${EXPERT}" = "t" ]; then
49 - expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
50 + expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
54 - if ./chklastlog -f ${WTMP} -l ${LASTLOG}
55 + if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
57 if [ "${QUIET}" != "t" ]; then echo "chklastlog: nothing deleted"; fi
62 - if [ ! -x ./chkwtmp ]; then
63 - echo "not tested: can't exec ./chkwtmp"
64 + if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
65 + echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
69 if [ "$SYSTEM" = "SunOS" ]; then
70 - if [ ! -x ./check_wtmpx ]; then
71 - echo "not tested: can't exec ./check_wtmpx"
72 + if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
73 + echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
75 if [ "${EXPERT}" = "t" ]; then
76 - expertmode_output "./check_wtmpx"
77 + expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
80 if [ -f ${ROOTDIR}var/adm/wtmp ]; then
82 + if /usr/bin/chkrootkit-check_wtmpx
84 if [ "${QUIET}" != "t" ]; then \
85 echo "check_wtmpx: nothing deleted in /var/adm/wtmpx"; fi
87 WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
89 if [ "${EXPERT}" = "t" ]; then
90 - expertmode_output "./chkwtmp -f ${WTMP}"
91 + expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
96 - if ./chkwtmp -f ${WTMP}
97 + if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
99 if [ "${QUIET}" != "t" ]; then echo "chkwtmp: nothing deleted"; fi
103 if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
104 `echo ${V} | ${awk} '{ if ($1 > 4.3) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then
105 - [ ! -x ./chkproc ] && prog="./chkproc"
106 - [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
107 + [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
108 + [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
109 if [ "$prog" != "" ]; then
110 # echo "not tested: can't exec $prog"
113 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 }'`
114 [ "$PV" = "" ] && PV=1
115 [ "${SYSTEM}" = "SunOS" ] && PV=0
116 - expertmode_output "./chkproc -v -v -p $PV"
117 + expertmode_output "/usr/bin/chkrootkit-chkproc -v -v -p $PV"
122 if [ "${DEBUG}" = "t" ]; then
123 ${echo} "*** PV=$PV ***"
125 - if ./chkproc -p ${PV}
126 + if /usr/bin/chkrootkit-chkproc -p ${PV}
128 if [ "${QUIET}" != "t" ]; then echo "chkproc: nothing detected"; fi
130 @@ -1582,18 +1582,18 @@
132 if [ "${SYSTEM}" = "Linux" ]
134 - if [ ! -x ./strings-static ]; then
135 - printn "can't exec ./strings-static, "
136 + if [ ! -x /usr/bin/chkrootkit-strings-static ]; then
137 + printn "can't exec /usr/bin/chkrootkit-strings-static, "
141 if [ "${EXPERT}" = "t" ]; then
142 - expertmode_output "./strings-static -a ${CMD}"
143 + expertmode_output "/usr/bin/chkrootkit-strings-static -a ${CMD}"
147 ### strings must be a statically linked binary.
148 - if ./strings-static -a ${CMD} > /dev/null 2>&1
149 + if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1