]> git.pld-linux.org Git - packages/chkrootkit.git/blame - chkrootkit-names.patch
- up to 0.45
[packages/chkrootkit.git] / chkrootkit-names.patch
CommitLineData
c855298d 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
3@@ -149,23 +149,23 @@
7396ff59 4 fi
5
6 if [ "${EXPERT}" = "t" ]; then
6eecdcbe 7- expertmode_output "./ifpromisc" -v
8+ expertmode_output "/usr/bin/chkrootkit-ifpromisc" -v
7396ff59 9 return 5
10 fi
6eecdcbe 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"
15 return ${NOT_TESTED}
e2cdd59e 16 else
6eecdcbe 17- [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q
18+ [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc -v || /usr/bin/chkrootkit-ifpromisc -q
19 fi
7396ff59 20 }
21
c855298d 22 chkutmp() {
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"
27 return ${NOT_TESTED}
28 fi
29- if ./chkutmp
30+ if /usr/bin/chkrootkit-chkutmp
31 then
32 if [ "${QUIET}" != "t" ]; then echo "chkutmp: nothing deleted"; fi
33 fi
34@@ -173,8 +173,8 @@
35 }
36
7396ff59 37 z2 () {
38- if [ ! -x ./chklastlog ]; then
39- echo "not tested: can't exec ./chklastlog"
cf2a8946 40+ if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
41+ echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
7396ff59 42 return ${NOT_TESTED}
43 fi
44
c855298d 45@@ -187,32 +187,32 @@
6eecdcbe 46 fi
7396ff59 47
48 if [ "${EXPERT}" = "t" ]; then
49- expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
cf2a8946 50+ expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
7396ff59 51 return 5
52 fi
53
54- if ./chklastlog -f ${WTMP} -l ${LASTLOG}
cf2a8946 55+ if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
7396ff59 56 then
c855298d 57 if [ "${QUIET}" != "t" ]; then echo "chklastlog: nothing deleted"; fi
7396ff59 58 fi
59 }
60
61 wted () {
62- if [ ! -x ./chkwtmp ]; then
63- echo "not tested: can't exec ./chkwtmp"
cf2a8946 64+ if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
65+ echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
7396ff59 66 return ${NOT_TESTED}
67 fi
68
eb06d3e0 69 if [ "$SYSTEM" = "SunOS" ]; then
7396ff59 70- if [ ! -x ./check_wtmpx ]; then
71- echo "not tested: can't exec ./check_wtmpx"
cf2a8946 72+ if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
73+ echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
7396ff59 74 else
75 if [ "${EXPERT}" = "t" ]; then
b49a9f40 76- expertmode_output "./check_wtmpx"
cf2a8946 77+ expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
7396ff59 78 return 5
79 fi
d0a23021 80 if [ -f ${ROOTDIR}var/adm/wtmp ]; then
6eecdcbe 81- if ./check_wtmpx
82+ if /usr/bin/chkrootkit-check_wtmpx
83 then
84 if [ "${QUIET}" != "t" ]; then \
c855298d 85 echo "check_wtmpx: nothing deleted in /var/adm/wtmpx"; fi
86@@ -223,12 +223,12 @@
eb06d3e0 87 WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
7396ff59 88
eb06d3e0 89 if [ "${EXPERT}" = "t" ]; then
90- expertmode_output "./chkwtmp -f ${WTMP}"
cf2a8946 91+ expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
eb06d3e0 92 return 5
93 fi
7396ff59 94 fi
95
96- if ./chkwtmp -f ${WTMP}
cf2a8946 97+ if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
7396ff59 98 then
c855298d 99 if [ "${QUIET}" != "t" ]; then echo "chkwtmp: nothing deleted"; fi
7396ff59 100 fi
c855298d 101@@ -267,8 +267,8 @@
abb05b7a 102 prog=""
d8f4eeda 103 if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \
d0a23021 104 `echo ${V} | ${awk} '{ if ($1 > 4.3) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then
abb05b7a
SZ
105- [ ! -x ./chkproc ] && prog="./chkproc"
106- [ ! -x ./chkdirs ] && prog="$prog ./chkdirs"
c855298d 107+ [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc"
108+ [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
abb05b7a
SZ
109 if [ "$prog" != "" ]; then
110 # echo "not tested: can't exec $prog"
7396ff59 111 return ${NOT_TESTED}
c855298d 112@@ -280,7 +280,7 @@
d0a23021 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"
118 return 5
7396ff59 119 fi
120
c855298d 121@@ -306,7 +306,7 @@
d0a23021 122 if [ "${DEBUG}" = "t" ]; then
c855298d 123 ${echo} "*** PV=$PV ***"
7396ff59 124 fi
d0a23021 125- if ./chkproc -p ${PV}
126+ if /usr/bin/chkrootkit-chkproc -p ${PV}
7396ff59 127 then
c855298d 128 if [ "${QUIET}" != "t" ]; then echo "chkproc: nothing detected"; fi
7396ff59 129 else
c855298d 130@@ -1582,18 +1582,18 @@
7396ff59 131
132 if [ "${SYSTEM}" = "Linux" ]
133 then
6eecdcbe 134- if [ ! -x ./strings-static ]; then
b49a9f40 135- printn "can't exec ./strings-static, "
d0a23021 136+ if [ ! -x /usr/bin/chkrootkit-strings-static ]; then
137+ printn "can't exec /usr/bin/chkrootkit-strings-static, "
7396ff59 138 return ${NOT_TESTED}
139 fi
140
141 if [ "${EXPERT}" = "t" ]; then
d0a23021 142- expertmode_output "./strings-static -a ${CMD}"
143+ expertmode_output "/usr/bin/chkrootkit-strings-static -a ${CMD}"
7396ff59 144 return 5
145 fi
146
b49a9f40 147 ### strings must be a statically linked binary.
6eecdcbe 148- if ./strings-static -a ${CMD} > /dev/null 2>&1
d0a23021 149+ if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1
7396ff59 150 then
151 STATUS=${INFECTED}
152 fi
This page took 0.076783 seconds and 4 git commands to generate.