#!/bin/sh
##############################################################
#         Team  - TSS : Local Security Improver              #
##############################################################
# Do not run as root                                         #  
##############################################################
#       This release checks for vulnerabilities on:          #
#       Redhat 6.0 (hedwig) Redhat 6.1 (cartman)             #
#                and Redhat 6.2 (zoot)                       #               
##############################################################
# http://team-tss.online.cx   #  Our site needs a webspace   #
# http://grazer1.com          #  sponsor (shell)             #
##############################################################
#  Toxic_99      #       Togooz        #        GrAzEr1      #
##############################################################
#Special thnx to Gerrie for:              grazer@hit2000.org #
##############################################################



clear
echo ' [-----------------------------------------------------] '
echo ' | Local Security Improver , Version : 1.0 beta 1      | '
echo ' | --------------------------------------------------- | '
echo ' |  Checks the security on the latest RedHat Releases  | '
echo ' |                                                     | '
echo ' | --------------------------------------------------- | '
echo ' |                   Written by: GrAzEr1 of Team-TSS   | ' 
echo ' |                   http://team-tss.online.cx         | '
echo ' |                                                     | '
echo ' | choose / hedwig for 6.0 / cartman for 6.1 /         | '
echo ' |                / zoot for 6.2/                      | '
echo ' |                                                     | '
echo ' | --------------   grazer@hit2000.org   ------------- | '
echo ' [-----------------------------------------------------] '

echo
echo

case "$1" in

hedwig)


echo "[x] Launching Scan..."
echo ' [*] Looking for crontab '
echo -n "  [+] Crontab: " 
 if [ -x /usr/bin/crontab ]; then 
     echo " Crontab Found! (Patch this bug)"
     else echo " Crontab doesn't exist/Execute Xs denied."
  fi
echo ''
echo ' [*] Looking for Userhelper '
 sleep 1

echo -n '  [+] Userhelper: '

if [ -u /usr/sbin/userhelper -a -x /usr/sbin/userhelper ]; then
    echo "Userhelper Found! (Patch this bug)"
    else echo " Userhelper doesn't exist/Execute Xs denied."
  exit 1
fi
echo ''
echo -n ' [*] Checking for Shadow Passwd : '
if [ -s /etc/shadow ]; then 
    echo "Found, that's ok."
    else echo " Can't Find  (dangerous)"
fi


echo ''
echo ' [ Now Seek for BugFixes at : http://bugzilla.redhat.com ] '
echo ''
;;

zoot)
echo "[X] Launching Scan... "
echo " [*] checking for (user) piranha "

if grep piranha /etc/passwd > /dev/null; then
  echo " [+] user piranha found!!! (patch this, remote epxloitable bug)"
  else echo " [+] user piranha not found, that's ok"
 fi 

echo ''
echo -n "[*] Checking for Shadow Passwd : "
if [ -s /etc/shadow ]; then 
   echo "found, that's ok"
   else
      echo "not found!! (dangerous)"
fi
echo ''
echo '[ Now seek for BugFixes at: http://bugzilla.redhat.com ]'
echo ''
;;

cartman)

sh $0 hedwig
;;

 *) 
  echo " Usage: sh $0 hedwig/cartman/zoot " 
  echo""
esac

#EOF
