mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1021 B

  1. diff -Naur chkrootkit-0.44.orig/chkrootkit chkrootkit-0.44/chkrootkit
  2. --- chkrootkit-0.44.orig/chkrootkit 2004-09-01 14:27:28.000000000 +0100
  3. +++ chkrootkit-0.44/chkrootkit 2004-11-10 16:06:21.000000000 +0000
  4. @@ -1054,7 +1054,7 @@
  5. getCMD() {
  6. RUNNING=`${ps} ${ps_cmd} | ${egrep} "${L_REGEXP}${1}${R_REGEXP}" | \
  7. - ${egrep} -v egrep | ${egrep} -v chkrootkit | ${head} -1 | \
  8. + ${egrep} -v egrep | ${egrep} -v chkrootkit | ${head} -n 1 | \
  9. ${awk} '{ print $5 }'`
  10. for i in ${ROOTDIR}${RUNNING} ${ROOTDIR}usr/sbin/${1} `loc ${1} ${1} $pth`
  11. @@ -2178,7 +2178,7 @@
  12. TCPD_INFECTED_LABEL="p1r0c4|hack|/dev/xmx|/dev/hdn0|/dev/xdta|/dev/tux"
  13. [ -r ${ROOTDIR}etc/inetd.conf ] &&
  14. - CMD=`${egrep} '^[^#].*tcpd' ${ROOTDIR}etc/inetd.conf | ${head} -1 | \
  15. + CMD=`${egrep} '^[^#].*tcpd' ${ROOTDIR}etc/inetd.conf | ${head} -n 1 | \
  16. ${awk} '{ print $6 }'`
  17. if ${ps} auwx | ${egrep} xinetd | ${egrep} -v grep >/dev/null 2>&1; then
  18. CMD=`loc tcpd tcpd $pth`