--- john-1.7/run/mailer.orig 1998-12-02 00:08:50.000000000 +0100 +++ john-1.7/run/mailer 2006-02-18 15:08:59.181310750 +0100 @@ -10,10 +10,11 @@ fi # There's no need to mail users with these shells -SHELLS=-,/bin/false,/dev/null,/bin/sync +SHELLS=-,/bin/false,/dev/null,/bin/sync,/bin/true,/sbin/shutdown # Look for John in the same directory with this script -DIR="`echo "$0" | sed 's,/[^/]*$,,'`" +#DIR="`echo "$0" | sed 's,/[^/]*$,,'`" +DIR="/usr/bin" # Let's start $DIR/john -show "$1" -shells:$SHELLS | sed -n 's/:.*//p' | @@ -21,10 +22,13 @@ SENT=0 while read LOGIN; do - echo Sending mail to "$LOGIN"... + echo Sending mail to / Wysylam maila do "$LOGIN"... # You'll probably want to edit the message below - mail -s 'Bad password' "$LOGIN" << EOF + mail -s 'Bad password / Zle haslo' "$LOGIN" << EOF +-------------------------------------------------------------------------- +[EN] + Hello! Your password for account "$LOGIN" is insecure. Please change it as soon @@ -32,6 +36,17 @@ Yours, Password Checking Robot. +-------------------------------------------------------------------------- +[PL] + +Witaj! + +Twoje haslo dla konta "$LOGIN" nie jest bezpieczne. Prosze zmien +je tak szybko jak to jest mozliwe. + +Twoj, + Robot sprawdzajacy hasla. +-------------------------------------------------------------------------- EOF SENT=$(($SENT+1))