File: 19_openssh.diff

package info (click to toggle)
chkrootkit 0.52-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,860 kB
  • sloc: sh: 36,448; ansic: 4,498; makefile: 155
file content (15 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Unknown
Description: fix Windigo rootkit search with openssh
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/chkrootkit
+++ b/chkrootkit
@@ -1165,6 +1165,8 @@
    files="`${find} ${ROOTDIR}tmp ${ROOTDIR}var/tmp ${findargs} -name vuln.txt -o -name ssh-scan -o -name pscan2 2> /dev/null`"
    if [ "${files}" = "" ]; then
       if [ "${QUIET}" != "t" ]; then echo "nothing found"; fi
+   elif $ssh -G 2>&1 | grep usage > /dev/null; then
+      if [ "${QUIET}" != "t" ]; then echo "nothing found"; fi
    else
      echo "${files}"
    fi