Recipes for automatically starting deschall (different OSes)

Nelson Minar (nelson@media.mit.edu)
Sun, 20 Apr 1997 19:09:03 -0400


Can someone tell a Unix hack how to set up deschall so it starts when
our Win95 or WinNT machines boot up?

More broadly, would someone care to set up a web page that explains,
in simple recipe terms, how to get deschall to start up on different
operating systems? I've got a nice SysVInit-style script here, written
for Redhat Linux 4.1 but should work for other Unix systems. It
strikes me that collecting these instructions would help people out.

Here's my script:

#! /bin/sh
# <nelson@media.mit.edu> quick hack up to start deschall nicely as user
# nobody, nice 19, and do logging.
# more info on deschall is at http://www.frii.com/~rcv/deschall.htm

LOGFILE=/var/log/deschall
DESCHALL=/usr/local/bin/deschall

case "$1" in
start)
if [ -e $DESCHALL ]; then
echo "Starting deschall to crack DES"
# ensure there's a logfile
if [ ! -e $LOGFILE ]; then
touch $LOGFILE
chown nobody $LOGFILE
fi
echo >> $LOGFILE
echo -n 'Starting deschall at ' >> $LOGFILE
date >> $LOGFILE
# start the cracker as user nobody, nice 19
su -c "exec nice -19 $DESCHALL 206.168.13.85 >> $LOGFILE 2>&1 &" nobody
fi
;;
stop)
# nothing here..
;;
*)
echo "Usage: deschall.init {start|stop}"
exit 1
esac

exit 0