1 --- chkrootkit Fri Sep 12 14:47:14 2003
2 +++ chkrootkit Mon Sep 15 18:29:16 2003
4 tcpdump top telnetd timed traceroute vdir w write"
7 -TOOLS="aliens asp bindshell lkm rexedcs sniffer w55808 wted scalper slapper z2"
8 +TOOLS="aliens asp bindshell lkm rexedcs sniffer promisctest w55808 wted scalper slapper z2"
18 + # Add gratutuous printf for "regular" mode output ("./chkrootkit promisctest")
19 + printf "%s\n"; ip="/sbin/ip"
20 + ${egrep} /proc/version -qe "2\.(4|5|6)"; KERNVER="$?"
21 + case "${KERNVER:0:1}" in
23 + if [ ! -x ${ip} ]; then
24 + printf "%snot tested: can't exec ${ip}\n"
25 + return ${NOT_TESTED}
27 + ${ip} link show | ${egrep} "^[0-9]" | while read DEVF; do
29 + printf "%s${DEVF[@]}" | ${egrep} -qe "PROMISC"; STATUS="$?"
30 + case "${STATUS:0:1}" in
32 + if [ "${EXPERT}" = "t" ]; then
33 + printf "%s${DEVF[1]} has device flags:\t${DEVF[2]}\n"
34 + else printf "%s${DEVF[1]}\tis not promisc\n"
37 + if [ "${EXPERT}" = "t" ]; then
38 + printf "%s${DEVF[1]} has device flags:\t${DEVF[2]}\n"
39 + else printf "%s${DEVF[1]}\tIS PROMISC\n"
45 + return ${NOT_TESTED};;
51 if [ ! -x ./chklastlog ]; then