]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit-names.patch
Remove Patch5-md5 - it's some leftover from previous releases
[packages/chkrootkit.git] / chkrootkit-names.patch
1 diff -Nur chkrootkit-0.48.orig/chkrootkit chkrootkit-0.48/chkrootkit
2 --- chkrootkit-0.48.orig/chkrootkit     2007-12-17 19:54:42.000000000 +0100
3 +++ chkrootkit-0.48/chkrootkit  2008-01-02 15:48:19.000000000 +0100
4 @@ -158,23 +158,23 @@
5      fi
6  
7      if [ "${EXPERT}" = "t" ]; then
8 -        expertmode_output "./ifpromisc" -v
9 +        expertmode_output "/usr/bin/chkrootkit-ifpromisc" -v
10          return 5
11      fi
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"
16        return ${NOT_TESTED}
17      else
18 -      [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q
19 +      [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc -v || /usr/bin/chkrootkit-ifpromisc -q
20      fi
21  }
22  
23  chkutmp() {
24 -    if [ ! -x ./chkutmp ]; then
25 -      echo "not tested: can't exec ./chkutmp"
26 +    if [ ! -x /usr/bin/chkrootkit-chkutmp ]; then
27 +      echo "not tested: can't exec /usr/bin/chkrootkit-chkutmp"
28        return ${NOT_TESTED}
29      fi
30 -    if ./chkutmp
31 +    if /usr/bin/chkrootkit-chkutmp
32      then
33        if [ "${QUIET}" != "t" ]; then echo "chkutmp: nothing deleted"; fi
34      fi
35 @@ -182,8 +182,8 @@
36  }
37  
38  z2 () {
39 -    if [ ! -x ./chklastlog ]; then
40 -      echo "not tested: can't exec ./chklastlog"
41 +    if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
42 +      echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
43        return ${NOT_TESTED}
44      fi
45  
46 @@ -196,32 +196,32 @@
47      fi
48  
49      if [ "${EXPERT}" = "t" ]; then
50 -        expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}"
51 +        expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
52          return 5
53      fi
54  
55 -    if ./chklastlog -f ${WTMP} -l ${LASTLOG}
56 +    if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
57      then
58        if [ "${QUIET}" != "t" ]; then echo "chklastlog: nothing deleted"; fi
59      fi
60  }
61  
62  wted () {
63 -    if [ ! -x ./chkwtmp ]; then
64 -      echo "not tested: can't exec ./chkwtmp"
65 +    if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
66 +      echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
67        return ${NOT_TESTED}
68      fi
69  
70     if [ "$SYSTEM" = "SunOS" ]; then
71 -       if [ ! -x ./check_wtmpx ]; then
72 -          echo "not tested: can't exec ./check_wtmpx"
73 +       if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
74 +          echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
75         else
76            if [ "${EXPERT}" = "t" ]; then
77 -             expertmode_output "./check_wtmpx"
78 +             expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
79                return 5
80            fi
81           if [ -f ${ROOTDIR}var/adm/wtmp ]; then
82 -             if ./check_wtmpx
83 +             if /usr/bin/chkrootkit-check_wtmpx
84                  then
85                  if [ "${QUIET}" != "t" ]; then \
86                     echo "check_wtmpx: nothing deleted in /var/adm/wtmpx"; fi
87 @@ -232,12 +232,12 @@
88         WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
89  
90         if [ "${EXPERT}" = "t" ]; then
91 -          expertmode_output "./chkwtmp -f ${WTMP}"
92 +          expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
93            return 5
94         fi
95      fi
96  
97 -    if ./chkwtmp -f ${WTMP}
98 +    if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
99      then
100        if [ "${QUIET}" != "t" ]; then echo "chkwtmp: nothing deleted"; fi
101      fi
102 @@ -275,8 +275,8 @@
103      prog=""
104      if [  \( "${SYSTEM}" = "Linux"  -o \( "${SYSTEM}" = "FreeBSD" -a \
105         `echo ${V} | ${awk} '{ if ($1 > 4.3 || $1 < 6.0) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then
106 -      [  -x ./chkproc -a "`find /proc | wc -l`" -gt 1 ] && prog="./chkproc"
107 -      [  -x ./chkdirs ] && prog="$prog ./chkdirs"
108 +      [  -x /usr/bin/chkrootkit-chkproc -a "`find /proc | wc -l`" -gt 1 ] && prog="/usr/bin/chkrootkit-chkproc"
109 +      [  -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs"
110        if [ "$prog" = "" ]; then
111           echo "not tested: can't exec $prog"
112           return ${NOT_TESTED}
113 @@ -288,7 +288,7 @@
114           PV=`$ps -V 2>/dev/null| $cut -d " " -f 3 |${awk} -F . '{ print $1 "." $2 $3 }' | ${awk} '{ if ($0 > 3.19) print 3; else if ($0 < 2.015) print 1; else print 2 }'`
115           [ "$PV" = "" ] &&  PV=2
116           [ "${SYSTEM}" = "SunOS" ] && PV=0
117 -         expertmode_output "./chkproc -v -v -p $PV"
118 +         expertmode_output "/usr/bin/chkrootkit-chkproc -v -v -p $PV"
119           return 5
120        fi
121  
122 @@ -315,7 +315,7 @@
123        if [ "${DEBUG}" = "t" ]; then
124             ${echo} "*** PV=$PV ***"
125        fi
126 -      if ./chkproc -p ${PV}; then
127 +      if /usr/bin/chkrootkit-chkproc -p ${PV}; then
128           if [ "${QUIET}" != "t" ]; then echo "chkproc: nothing detected"; fi
129        else
130           echo "chkproc: Warning: Possible LKM Trojan installed"
131 @@ -324,7 +324,7 @@
132        for i in /usr/share /usr/bin /usr/sbin /lib; do
133           [ -d $i ] && dirs="$dirs $i"
134        done
135 -      if ./chkdirs $dirs;  then
136 +      if /usr/bin/chkrootkit-chkdirs $dirs;  then
137           if [ "${QUIET}" != "t" ]; then echo "chkdirs: nothing detected"; fi
138        else
139             echo "chkdirs: Warning: Possible LKM Trojan installed"
140 @@ -1690,18 +1690,18 @@
141  
142     if [ "${SYSTEM}" = "Linux" ]
143     then
144 -      if [ ! -x ./strings-static ]; then
145 -        printn "can't exec ./strings-static, "
146 +      if [ ! -x /usr/bin/chkrootkit-strings-static ]; then
147 +        printn "can't exec /usr/bin/chkrootkit-strings-static, "
148          return ${NOT_TESTED}
149        fi
150  
151        if [ "${EXPERT}" = "t" ]; then
152 -          expertmode_output "./strings-static -a ${CMD}"
153 +          expertmode_output "/usr/bin/chkrootkit-strings-static -a ${CMD}"
154            return 5
155        fi
156  
157        ### strings must be a statically linked binary.
158 -      if ./strings-static -a ${CMD} > /dev/null 2>&1
159 +      if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1
160        then
161           STATUS=${INFECTED}
162        fi
This page took 0.062117 seconds and 3 git commands to generate.