]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit-names.patch
53a0d56d8b5bd1300237fc448c0b37eb chkrootkit-0.38.tar.gz
[packages/chkrootkit.git] / chkrootkit-names.patch
1 diff -Naur chkrootkit-0.38/chkrootkit chkrootkit-0.38-p/chkrootkit
2 --- chkrootkit-0.38/chkrootkit  Sat Dec 21 00:03:27 2002
3 +++ chkrootkit-0.38-p/chkrootkit        Sat Jan  4 10:13:24 2003
4 @@ -130,22 +130,22 @@
5         return ${NOT_TESTED}
6      fi
7  
8 -    if [ ! -x ./ifpromisc ]; then
9 -      echo "not tested: can't exec ./ifpromisc"
10 +    if [ ! -x /usr/bin/chkrootkit-ifpromisc ]; then
11 +      echo "not tested: can't exec /usr/bin/chkrootkit-ifpromisc"
12        return ${NOT_TESTED}
13      fi
14  
15      if [ "${EXPERT}" = "t" ]; then
16 -        expertmode_output "./ifpromisc"
17 +        expertmode_output "/usr/bin/chkrootkit-ifpromisc"
18          return 5
19      fi
20      echo
21 -    ./ifpromisc
22 +    /usr/bin/chkrootkit-ifpromisc
23  }
24  
25  z2 () {
26 -    if [ ! -x ./chklastlog ]; then
27 -      echo "not tested: can't exec ./chklastlog"
28 +    if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then
29 +      echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog"
30        return ${NOT_TESTED}
31      fi
32  
33 @@ -153,31 +153,31 @@
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}"
38 +        expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}"
39          return 5
40      fi
41  
42 -    if ./chklastlog -f ${WTMP} -l ${LASTLOG}
43 +    if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}
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"
52 +    if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then
53 +      echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp"
54        return ${NOT_TESTED}
55      fi
56  
57      if [ "$SYSTEM" = "SunOS" ]; then
58 -       if [ ! -x ./check_wtmpx ]; then
59 -          echo "not tested: can't exec ./check_wtmpx"
60 +       if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then
61 +          echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx"
62         else
63            if [ "${EXPERT}" = "t" ]; then
64 -             expertmode_output "./check_wtmpx"
65 +             expertmode_output "/usr/bin/chkrootkit-check_wtmpx"
66                return 5
67            fi
68 -          if ./check_wtmpx
69 +          if /usr/bin/chkrootkit-check_wtmpx
70               then
71               if [ "${QUIET}" != "t" ]; then \
72                  echo "nothing deleted in /var/adm/wtmpx"; fi
73 @@ -188,11 +188,11 @@
74      WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"`
75  
76      if [ "${EXPERT}" = "t" ]; then
77 -        expertmode_output "./chkwtmp -f ${WTMP}"
78 +        expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}"
79          return 5
80      fi
81  
82 -    if ./chkwtmp -f ${WTMP}
83 +    if /usr/bin/chkrootkit-chkwtmp -f ${WTMP}
84      then
85        if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi
86      fi
87 @@ -231,8 +231,9 @@
88      prog=""
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/chkrootkiy-chkproc"
94 +      [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog
95 +      /usr/bin/chkrootkit-chkdirs"
96        if [ "$prog" != "" ]; then
97  #        echo "not tested: can't exec $prog"
98          return ${NOT_TESTED}
99 @@ -241,7 +242,7 @@
100        if [ "${EXPERT}" = "t" ]; then
101           [ -r /proc/ksyms ] &&  ${egrep} -i "adore|sebek" < /proc/ksyms 2>/dev/null
102           [ -d /proc/knark ] &&  ${ls} -la /proc/knark 2> /dev/null
103 -          expertmode_output "./chkproc -v"
104 +          expertmode_output "/usr/bin/chkrootkit-chkproc -v"
105            return 5
106        fi
107  
108 @@ -262,7 +263,7 @@
109           echo "Warning: Knark LKM installed"
110        fi
111  
112 -      if ./chkproc
113 +      if /usr/bin/chkrootkit-chkproc
114        then
115             if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi
116        else
117 @@ -1344,18 +1345,18 @@
118  
119     if [ "${SYSTEM}" = "Linux" ]
120     then
121 -      if [ ! -x ./strings ]; then
122 -        printn "can't exec ./strings-static, "
123 +      if [ ! -x /usr/bin/chkrootkit-strings ]; then
124 +        printn "can't exec /usr/bin/chkrootkit-strings, "
125          return ${NOT_TESTED}
126        fi
127  
128        if [ "${EXPERT}" = "t" ]; then
129 -          expertmode_output "./strings -a ${CMD}"
130 +          expertmode_output "/usr/bin/chkrootkit-strings -a ${CMD}"
131            return 5
132        fi
133  
134        ### strings must be a statically linked binary.
135 -      if ./strings-static -a ${CMD} > /dev/null 2>&1
136 +      if /usr/bin/chkrootkit-strings -a ${CMD} > /dev/null 2>&1
137        then
138           STATUS=${INFECTED}
139        fi
This page took 0.092784 seconds and 4 git commands to generate.