]>
Commit | Line | Data |
---|---|---|
89ee5f0c JB |
1 | --- john-1.7/run/mailer.orig 1998-12-02 00:08:50.000000000 +0100 |
2 | +++ john-1.7/run/mailer 2006-02-18 15:08:59.181310750 +0100 | |
24334275 | 3 | @@ -10,10 +10,11 @@ |
4 | fi | |
5 | ||
6 | # There's no need to mail users with these shells | |
7 | -SHELLS=-,/bin/false,/dev/null,/bin/sync | |
8 | +SHELLS=-,/bin/false,/dev/null,/bin/sync,/bin/true,/sbin/shutdown | |
9 | ||
10 | # Look for John in the same directory with this script | |
11 | -DIR="`echo "$0" | sed 's,/[^/]*$,,'`" | |
12 | +#DIR="`echo "$0" | sed 's,/[^/]*$,,'`" | |
13 | +DIR="/usr/bin" | |
14 | ||
15 | # Let's start | |
16 | $DIR/john -show "$1" -shells:$SHELLS | sed -n 's/:.*//p' | | |
89ee5f0c | 17 | @@ -21,10 +22,13 @@ |
24334275 | 18 | SENT=0 |
19 | ||
20 | while read LOGIN; do | |
21 | - echo Sending mail to "$LOGIN"... | |
22 | + echo Sending mail to / Wysylam maila do "$LOGIN"... | |
23 | ||
24 | # You'll probably want to edit the message below | |
25 | - mail -s 'Bad password' "$LOGIN" << EOF | |
26 | + mail -s 'Bad password / Zle haslo' "$LOGIN" << EOF | |
27 | +-------------------------------------------------------------------------- | |
89ee5f0c | 28 | +[EN] |
24334275 | 29 | + |
30 | Hello! | |
31 | ||
32 | Your password for account "$LOGIN" is insecure. Please change it as soon | |
89ee5f0c | 33 | @@ -32,6 +36,17 @@ |
24334275 | 34 | |
35 | Yours, | |
36 | Password Checking Robot. | |
89ee5f0c JB |
37 | +-------------------------------------------------------------------------- |
38 | +[PL] | |
39 | + | |
40 | +Witaj! | |
41 | + | |
42 | +Twoje haslo dla konta "$LOGIN" nie jest bezpieczne. Prosze zmien | |
43 | +je tak szybko jak to jest mozliwe. | |
44 | + | |
45 | +Twoj, | |
46 | + Robot sprawdzajacy hasla. | |
24334275 | 47 | +-------------------------------------------------------------------------- |
48 | EOF | |
49 | ||
89ee5f0c | 50 | SENT=$(($SENT+1)) |