# !/bin/sh # # simple script to change users shell to /bin/suspended and kill all processes by # that user # # gor # Rooted Networks Inc. # gor@rootednetworks.com # September 2002 printf "enter username to kill [dickhead]: " ; read fd if test ! -z $fd ; then chsh -s /bin/suspended $fd echo "$fd account has been changed to /bin/suspended" if test ! -z $fd ; then slay $fd echo "Killed all $fd processes" if test ! -z $fd ; then crontab -u $fd -r echo "Removed $fd crontab entry's" if test ! -z $fd ; then /sbin/ipfw -q add 1000 deny tcp from 216.218.235.0/24 to any uid $fd fi fi fi fi echo "Account Slayed"