]> git.pld-linux.org Git - packages/chkrootkit.git/blame - chkrootkit-names.patch
- sorry, now work ok.
[packages/chkrootkit.git] / chkrootkit-names.patch
CommitLineData
eb06d3e0 1diff -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
abb05b7a 4@@ -130,22 +130,22 @@
7396ff59 5 return ${NOT_TESTED}
6 fi
7
8- if [ ! -x ./ifpromisc ]; then
9- echo "not tested: can't exec ./ifpromisc"
cb43c7ff 10+ if [ ! -x /usr/bin/chkrootkit-ifpromisc ]; then
cf2a8946 11+ echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
7396ff59 12 return ${NOT_TESTED}
13 fi
14
15 if [ "${EXPERT}" = "t" ]; then
16- expertmode_output "./ifpromisc"
cf2a8946 17+ expertmode_output "/usr/bin/chkrootkit-ifpromisc"
7396ff59 18 return 5
19 fi
20 echo
21- ./ifpromisc
cf2a8946 22+ /usr/bin/chkrootkit-ifpromisc
7396ff59 23 }
24
25 z2 () {
26- if [ ! -x ./chklastlog ]; then
27- echo "not tested: can't exec ./chklastlog"
cf2a8946 28+ if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
29+ echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
7396ff59 30 return ${NOT_TESTED}
31 fi
32
abb05b7a 33@@ -153,31 +153,31 @@
7396ff59 34 LASTLOG=`loc lastlog lastlog "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
35
36 if [ "${EXPERT}" = "t" ]; then
37- expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
cf2a8946 38+ expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
7396ff59 39 return 5
40 fi
41
42- if ./chklastlog -f ${WTMP} -l ${LASTLOG}
cf2a8946 43+ if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
7396ff59 44 then
45 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
46 fi
47 }
48
49 wted () {
50- if [ ! -x ./chkwtmp ]; then
51- echo "not tested: can't exec ./chkwtmp"
cf2a8946 52+ if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
53+ echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
7396ff59 54 return ${NOT_TESTED}
55 fi
56
eb06d3e0 57 if [ "$SYSTEM" = "SunOS" ]; then
7396ff59 58- if [ ! -x ./check_wtmpx ]; then
59- echo "not tested: can't exec ./check_wtmpx"
cf2a8946 60+ if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
61+ echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
7396ff59 62 else
63 if [ "${EXPERT}" = "t" ]; then
b49a9f40 64- expertmode_output "./check_wtmpx"
cf2a8946 65+ expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
7396ff59 66 return 5
67 fi
68- if ./check_wtmpx
cf2a8946 69+ if /usr/bin/chkrootkit-check_wtmpx
7396ff59 70 then
71 if [ "${QUIET}" != "t" ]; then \
72 echo "nothing deleted in /var/adm/wtmpx"; fi
eb06d3e0 73@@ -187,12 +187,12 @@
74 WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
7396ff59 75
eb06d3e0 76 if [ "${EXPERT}" = "t" ]; then
77- expertmode_output "./chkwtmp -f ${WTMP}"
cf2a8946 78+ expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
eb06d3e0 79 return 5
80 fi
7396ff59 81 fi
82
83- if ./chkwtmp -f ${WTMP}
cf2a8946 84+ if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
7396ff59 85 then
86 if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
87 fi
eb06d3e0 88@@ -231,8 +231,8 @@
abb05b7a 89 prog=""
7396ff59 90 if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
91 ${V} -gt 43 \) \) -a "${ROOTDIR}" = "/" ]; then
abb05b7a
SZ
92- [ ! -x ./chkproc ] && prog="./chkproc"
93- [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
cf2a8946 94+ [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
95+ [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
abb05b7a
SZ
96 if [ "$prog" != "" ]; then
97 # echo "not tested: can't exec $prog"
7396ff59 98 return ${NOT_TESTED}
eb06d3e0 99@@ -241,7 +241,7 @@
7396ff59 100 if [ "${EXPERT}" = "t" ]; then
abb05b7a 101 [ -r /proc/ksyms ] && ${egrep} -i "adore|sebek" < /proc/ksyms 2>/dev/null
7396ff59 102 [ -d /proc/knark ] && ${ls} -la /proc/knark 2> /dev/null
eb06d3e0 103- expertmode_output "./chkproc -v -v"
cf2a8946 104+ expertmode_output "/usr/bin/chkrootkit-chkproc -v -v"
7396ff59 105 return 5
106 fi
107
eb06d3e0 108@@ -262,7 +262,7 @@
7396ff59 109 echo "Warning: Knark LKM installed"
110 fi
111
112- if ./chkproc
cf2a8946 113+ if /usr/bin/chkrootkit-chkproc
7396ff59 114 then
115 if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
116 else
eb06d3e0 117@@ -1350,18 +1350,18 @@
7396ff59 118
119 if [ "${SYSTEM}" = "Linux" ]
120 then
121- if [ ! -x ./strings ]; then
b49a9f40 122- printn "can't exec ./strings-static, "
cf2a8946 123+ if [ ! -x /usr/bin/chkrootkit-strings ]; then
124+ printn "can't exec /usr/bin/chkrootkit-strings-static, "
7396ff59 125 return ${NOT_TESTED}
126 fi
127
128 if [ "${EXPERT}" = "t" ]; then
129- expertmode_output "./strings -a ${CMD}"
cf2a8946 130+ expertmode_output "/usr/bin/chkrootkit-strings -a ${CMD}"
7396ff59 131 return 5
132 fi
133
b49a9f40 134 ### strings must be a statically linked binary.
7396ff59 135- if ./strings-static -a ${CMD} > /dev/null 2>&1
cf2a8946 136+ if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1
7396ff59 137 then
138 STATUS=${INFECTED}
139 fi
This page took 0.064098 seconds and 4 git commands to generate.