]> git.pld-linux.org Git - packages/chkrootkit.git/commitdiff
0dfeda71b081eaa8c316eca1f81b21f0 chkrootkit-0.42-ip.patch
authorankry <ankry@pld-linux.org>
Sun, 21 Sep 2003 10:43:08 +0000 (10:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chkrootkit-0.42-ip.patch -> 1.1

chkrootkit-0.42-ip.patch [new file with mode: 0644]

diff --git a/chkrootkit-0.42-ip.patch b/chkrootkit-0.42-ip.patch
new file mode 100644 (file)
index 0000000..8582f2e
--- /dev/null
@@ -0,0 +1,51 @@
+--- chkrootkit Fri Sep 12 14:47:14 2003
++++ chkrootkit Mon Sep 15 18:29:16 2003
+@@ -25,7 +25,7 @@
+ tcpdump top telnetd timed traceroute vdir w write"
+ # Tools
+-TOOLS="aliens asp bindshell lkm rexedcs sniffer w55808 wted scalper slapper z2"
++TOOLS="aliens asp bindshell lkm rexedcs sniffer promisctest w55808 wted scalper slapper z2"
+ # Return Codes
+ INFECTED=0
+@@ -172,6 +172,39 @@
+        fi
+     fi
+ }
++
++promisctest () { 
++      # Add gratutuous printf for "regular" mode output ("./chkrootkit promisctest")
++      printf "%s\n"; ip="/sbin/ip"
++      ${egrep} /proc/version -qe "2\.(4|5|6)"; KERNVER="$?"
++      case "${KERNVER:0:1}" in
++      0)
++              if [ ! -x ${ip} ]; then
++                      printf "%snot tested: can't exec ${ip}\n"
++                      return ${NOT_TESTED}
++              fi
++              ${ip} link show | ${egrep} "^[0-9]" | while read DEVF; do
++              DEVF=( ${DEVF} )
++              printf "%s${DEVF[@]}" | ${egrep} -qe "PROMISC"; STATUS="$?"
++              case "${STATUS:0:1}" in
++              1)
++                      if [ "${EXPERT}" = "t" ]; then
++                              printf "%s${DEVF[1]} has device flags:\t${DEVF[2]}\n"
++                              else printf "%s${DEVF[1]}\tis not promisc\n"
++                      fi;;
++              0)
++                      if [ "${EXPERT}" = "t" ]; then
++                              printf "%s${DEVF[1]} has device flags:\t${DEVF[2]}\n"
++                              else printf "%s${DEVF[1]}\tIS PROMISC\n"
++                      fi;;
++              esac
++              done;;
++      *)
++              echo "not tested."
++              return ${NOT_TESTED};;
++      esac
++ }
++
+ z2 () {
+     if [ ! -x ./chklastlog ]; then
This page took 0.0933 seconds and 4 git commands to generate.