1 diff -Nur chkrootkit-0.43.orig/chkrootkit chkrootkit-0.43/chkrootkit
2 --- chkrootkit-0.43.orig/chkrootkit 2003-12-28 17:48:16.000000000 +0100
3 +++ chkrootkit-0.43/chkrootkit 2003-12-30 09:09:25.887663096 +0100
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 ${V} -gt 43 \) \) -a "${ROOTDIR}" = "/" ]; then
91 - [ ! -x ./chkproc ] && prog="./chkproc"
92 - [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
93 + [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
94 + [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
95 if [ "$prog" != "" ]; then
96 # echo "not tested: can't exec $prog"
99 if [ "${EXPERT}" = "t" ]; then
100 [ -r /proc/ksyms ] && ${egrep} -i "adore|sebek" < /proc/ksyms 2>/dev/null
101 [ -d /proc/knark ] && ${ls} -la /proc/knark 2> /dev/null
102 - expertmode_output "./chkproc -v -v"
103 + expertmode_output "/usr/bin/chkrootkit-chkproc -v -v"
108 echo "Warning: Knark LKM installed"
112 + if /usr/bin/chkrootkit-chkproc
114 if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
116 @@ -1505,18 +1505,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 ]; then
123 + printn "can't exec /usr/bin/chkrootkit-strings, "
127 if [ "${EXPERT}" = "t" ]; then
128 - expertmode_output "./strings -a ${CMD}"
129 + expertmode_output "/usr/bin/chkrootkit-strings -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 -a ${CMD} > /dev/null 2>&1
139 diff -Nur chkrootkit-0.43.orig/Makefile chkrootkit-0.43/Makefile
140 --- chkrootkit-0.43.orig/Makefile 2003-12-30 09:08:57.815930648 +0100
141 +++ chkrootkit-0.43/Makefile 2003-12-30 09:09:59.581540848 +0100
144 SRCS = chklastlog.c chkwtmp.c ifpromisc.c chkproc.c chkdirs.c check_wtmpx.c strings.c
146 -OBJS = chklastlog.o chkwtmp.o ifpromisc.o chkproc.o chkdirs.o check_wtmpx.o strings-static.o
147 +OBJS = chklastlog.o chkwtmp.o ifpromisc.o chkproc.o chkdirs.o check_wtmpx.o strings.o
150 @echo '*** stopping make sense ***'
153 -sense: chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static
154 +sense: chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings
156 chklastlog: chklastlog.c
157 ${CC} ${CFLAGS} -o $@ chklastlog.c
159 check_wtmpx: check_wtmpx.c
160 ${CC} ${LDFLAGS} -o $@ check_wtmpx.c
162 -strings-static: strings.c
164 ${CC} ${STATIC} ${LDFLAGS} -o $@ strings.c
167 - rm -f ${OBJS} core chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static
168 + rm -f ${OBJS} core chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings