]>
Commit | Line | Data |
---|---|---|
d0a23021 | 1 | diff -Nur chkrootkit-0.44.orig/chkrootkit chkrootkit-0.44/chkrootkit |
2 | --- chkrootkit-0.44.orig/chkrootkit 2004-09-01 13:27:28.000000000 +0000 | |
3 | +++ chkrootkit-0.44/chkrootkit 2004-09-01 16:50:34.000000000 +0000 | |
4 | @@ -149,20 +149,20 @@ | |
7396ff59 | 5 | fi |
6 | ||
7 | if [ "${EXPERT}" = "t" ]; then | |
6eecdcbe | 8 | - expertmode_output "./ifpromisc" -v |
9 | + expertmode_output "/usr/bin/chkrootkit-ifpromisc" -v | |
7396ff59 | 10 | return 5 |
11 | fi | |
6eecdcbe | 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} | |
e2cdd59e | 17 | else |
6eecdcbe | 18 | - [ "${QUIET}" != "t" ] && ./ifpromisc -v || ./ifpromisc -q |
19 | + [ "${QUIET}" != "t" ] && /usr/bin/chkrootkit-ifpromisc -v || /usr/bin/chkrootkit-ifpromisc -q | |
20 | fi | |
7396ff59 | 21 | } |
22 | ||
23 | z2 () { | |
24 | - if [ ! -x ./chklastlog ]; then | |
25 | - echo "not tested: can't exec ./chklastlog" | |
cf2a8946 | 26 | + if [ ! -x /usr/bin/chkrootkit-chklastlog ]; then |
27 | + echo "not tested: can't exec /usr/bin/chkrootkit-chklastlog" | |
7396ff59 | 28 | return ${NOT_TESTED} |
29 | fi | |
30 | ||
d0a23021 | 31 | @@ -176,32 +176,32 @@ |
6eecdcbe | 32 | fi |
7396ff59 | 33 | |
34 | if [ "${EXPERT}" = "t" ]; then | |
35 | - expertmode_output "./chklastlog -f ${WTMP} -l ${LASTLOG}" | |
cf2a8946 | 36 | + expertmode_output "/usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG}" |
7396ff59 | 37 | return 5 |
38 | fi | |
39 | ||
40 | - if ./chklastlog -f ${WTMP} -l ${LASTLOG} | |
cf2a8946 | 41 | + if /usr/bin/chkrootkit-chklastlog -f ${WTMP} -l ${LASTLOG} |
7396ff59 | 42 | then |
43 | if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi | |
44 | fi | |
45 | } | |
46 | ||
47 | wted () { | |
48 | - if [ ! -x ./chkwtmp ]; then | |
49 | - echo "not tested: can't exec ./chkwtmp" | |
cf2a8946 | 50 | + if [ ! -x /usr/bin/chkrootkit-chkwtmp ]; then |
51 | + echo "not tested: can't exec /usr/bin/chkrootkit-chkwtmp" | |
7396ff59 | 52 | return ${NOT_TESTED} |
53 | fi | |
54 | ||
eb06d3e0 | 55 | if [ "$SYSTEM" = "SunOS" ]; then |
7396ff59 | 56 | - if [ ! -x ./check_wtmpx ]; then |
57 | - echo "not tested: can't exec ./check_wtmpx" | |
cf2a8946 | 58 | + if [ ! -x /usr/bin/chkrootkit-check_wtmpx ]; then |
59 | + echo "not tested: can't exec /usr/bin/chkrootkit-check_wtmpx" | |
7396ff59 | 60 | else |
61 | if [ "${EXPERT}" = "t" ]; then | |
b49a9f40 | 62 | - expertmode_output "./check_wtmpx" |
cf2a8946 | 63 | + expertmode_output "/usr/bin/chkrootkit-check_wtmpx" |
7396ff59 | 64 | return 5 |
65 | fi | |
d0a23021 | 66 | if [ -f ${ROOTDIR}var/adm/wtmp ]; then |
6eecdcbe | 67 | - if ./check_wtmpx |
68 | + if /usr/bin/chkrootkit-check_wtmpx | |
69 | then | |
70 | if [ "${QUIET}" != "t" ]; then \ | |
71 | echo "nothing deleted in /var/adm/wtmpx"; fi | |
d0a23021 | 72 | @@ -212,12 +212,12 @@ |
eb06d3e0 | 73 | WTMP=`loc wtmp wtmp "${ROOTDIR}var/log ${ROOTDIR}var/adm"` |
7396ff59 | 74 | |
eb06d3e0 | 75 | if [ "${EXPERT}" = "t" ]; then |
76 | - expertmode_output "./chkwtmp -f ${WTMP}" | |
cf2a8946 | 77 | + expertmode_output "/usr/bin/chkrootkit-chkwtmp -f ${WTMP}" |
eb06d3e0 | 78 | return 5 |
79 | fi | |
7396ff59 | 80 | fi |
81 | ||
82 | - if ./chkwtmp -f ${WTMP} | |
cf2a8946 | 83 | + if /usr/bin/chkrootkit-chkwtmp -f ${WTMP} |
7396ff59 | 84 | then |
85 | if [ "${QUIET}" != "t" ]; then echo "nothing deleted"; fi | |
86 | fi | |
d0a23021 | 87 | @@ -256,8 +256,8 @@ |
abb05b7a | 88 | prog="" |
d8f4eeda | 89 | if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \ |
d0a23021 | 90 | `echo ${V} | ${awk} '{ if ($1 > 4.3) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then |
abb05b7a SZ |
91 | - [ ! -x ./chkproc ] && prog="./chkproc" |
92 | - [ ! -x ./chkdirs ] && prog="$prog ./chkdirs" | |
d0a23021 | 93 | + [ ! -x /usr/bin/chkproc ] && prog="/usr/bin/chkrootkit-chkproc" |
94 | + [ ! -x /usr/bin/chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs" | |
abb05b7a SZ |
95 | if [ "$prog" != "" ]; then |
96 | # echo "not tested: can't exec $prog" | |
7396ff59 | 97 | return ${NOT_TESTED} |
d0a23021 | 98 | @@ -269,7 +269,7 @@ |
99 | 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 }'` | |
100 | [ "$PV" = "" ] && PV=1 | |
101 | [ "${SYSTEM}" = "SunOS" ] && PV=0 | |
102 | - expertmode_output "./chkproc -v -v -p $PV" | |
103 | + expertmode_output "/usr/bin/chkrootkit-chkproc -v -v -p $PV" | |
104 | return 5 | |
7396ff59 | 105 | fi |
106 | ||
d0a23021 | 107 | @@ -295,7 +295,7 @@ |
108 | if [ "${DEBUG}" = "t" ]; then | |
109 | ${echo} "*** $PV ***" | |
7396ff59 | 110 | fi |
d0a23021 | 111 | - if ./chkproc -p ${PV} |
112 | + if /usr/bin/chkrootkit-chkproc -p ${PV} | |
7396ff59 | 113 | then |
114 | if [ "${QUIET}" != "t" ]; then echo "nothing detected"; fi | |
115 | else | |
d0a23021 | 116 | @@ -1534,18 +1534,18 @@ |
7396ff59 | 117 | |
118 | if [ "${SYSTEM}" = "Linux" ] | |
119 | then | |
6eecdcbe | 120 | - if [ ! -x ./strings-static ]; then |
b49a9f40 | 121 | - printn "can't exec ./strings-static, " |
d0a23021 | 122 | + if [ ! -x /usr/bin/chkrootkit-strings-static ]; then |
123 | + printn "can't exec /usr/bin/chkrootkit-strings-static, " | |
7396ff59 | 124 | return ${NOT_TESTED} |
125 | fi | |
126 | ||
127 | if [ "${EXPERT}" = "t" ]; then | |
d0a23021 | 128 | - expertmode_output "./strings-static -a ${CMD}" |
129 | + expertmode_output "/usr/bin/chkrootkit-strings-static -a ${CMD}" | |
7396ff59 | 130 | return 5 |
131 | fi | |
132 | ||
b49a9f40 | 133 | ### strings must be a statically linked binary. |
6eecdcbe | 134 | - if ./strings-static -a ${CMD} > /dev/null 2>&1 |
d0a23021 | 135 | + if /usr/bin/chkrootkit-strings-static -a ${CMD} > /dev/null 2>&1 |
7396ff59 | 136 | then |
137 | STATUS=${INFECTED} | |
138 | fi |