]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit-names.patch
- up to 0.45
[packages/chkrootkit.git] / chkrootkit-names.patch
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 @@
4      fi
5  
6      if [ "${EXPERT}" = "t" ]; then
7 -        expertmode_output "./ifpromisc" -v
8 +        expertmode_output "/usr/bin/chkrootkit-ifpromisc" -v
9          return 5
10      fi
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}
16      else
17 -      [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q
18 +      [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc -v || /usr/bin/chkrootkit-ifpromisc -q
19      fi
20  }
21  
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  
37  z2 () {
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"
42        return ${NOT_TESTED}
43      fi
44  
45 @@ -187,32 +187,32 @@
46      fi
47  
48      if [ "${EXPERT}" = "t" ]; then
49 -        expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
50 +        expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
51          return 5
52      fi
53  
54 -    if ./chklastlog -f ${WTMP} -l ${LASTLOG}
55 +    if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
56      then
57        if [ "${QUIET}" != "t" ]; then echo "chklastlog: nothing deleted"; fi
58      fi
59  }
60  
61  wted () {
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"
66        return ${NOT_TESTED}
67      fi
68  
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"
74         else
75            if [ "${EXPERT}" = "t" ]; then
76 -             expertmode_output "./check_wtmpx"
77 +             expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
78                return 5
79            fi
80           if [ -f ${ROOTDIR}var/adm/wtmp ]; then
81 -             if ./check_wtmpx
82 +             if /usr/bin/chkrootkit-check_wtmpx
83                  then
84                  if [ "${QUIET}" != "t" ]; then \
85                     echo "check_wtmpx: nothing deleted in /var/adm/wtmpx"; fi
86 @@ -223,12 +223,12 @@
87         WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
88  
89         if [ "${EXPERT}" = "t" ]; then
90 -          expertmode_output "./chkwtmp -f ${WTMP}"
91 +          expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
92            return 5
93         fi
94      fi
95  
96 -    if ./chkwtmp -f ${WTMP}
97 +    if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
98      then
99        if [ "${QUIET}" != "t" ]; then echo "chkwtmp: nothing deleted"; fi
100      fi
101 @@ -267,8 +267,8 @@
102      prog=""
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"
111          return ${NOT_TESTED}
112 @@ -280,7 +280,7 @@
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
119        fi
120  
121 @@ -306,7 +306,7 @@
122        if [ "${DEBUG}" = "t" ]; then
123             ${echo} "*** PV=$PV ***"
124        fi
125 -      if ./chkproc -p ${PV}
126 +      if /usr/bin/chkrootkit-chkproc -p ${PV}
127        then
128             if [ "${QUIET}" != "t" ]; then echo "chkproc: nothing detected"; fi
129        else
130 @@ -1582,18 +1582,18 @@
131  
132     if [ "${SYSTEM}" = "Linux" ]
133     then
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, "
138          return ${NOT_TESTED}
139        fi
140  
141        if [ "${EXPERT}" = "t" ]; then
142 -          expertmode_output "./strings-static -a ${CMD}"
143 +          expertmode_output "/usr/bin/chkrootkit-strings-static -a ${CMD}"
144            return 5
145        fi
146  
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
150        then
151           STATUS=${INFECTED}
152        fi
This page took 0.0669110000000001 seconds and 3 git commands to generate.