#!/bin/sh
#
# bin/rstatd.saint
#
# If the host support rpc.statd, then a potential error is 
# indicated (CA 97-26)

. config/paths.sh

$ECHO "BEGIN"

# used in final output
target=$1
service=`$BASENAME $0 | $SED 's/\..*$//'`
if [ "`$RUP $target  | $GREP load`" ]; then
status="a"
severity="zwoi"
trustee="USER@$target"
trusted="ANY@ANY"
service_output="rstatd vulnerability"
text="Information from rstatd could help hacker"

$ECHO "$target|$service|$status|$severity|$trustee|$trusted|$service_output|$text"
fi
# that's it...
