]> git.pld-linux.org Git - packages/john.git/blob - john-mailer.patch
20a958c91d1565a681dcd5d7b8aba5545b0317cd
[packages/john.git] / john-mailer.patch
1 diff -ruN john-1.6./run/mailer john-1.6/run/mailer
2 --- john-1.6./run/mailer        1998-12-03 01:29:50.000000000 +0100
3 +++ john-1.6/run/mailer 2003-07-12 12:06:43.000000000 +0200
4 @@ -10,10 +10,11 @@
5  fi
6  
7  # There's no need to mail users with these shells
8 -SHELLS=-,/bin/false,/dev/null,/bin/sync
9 +SHELLS=-,/bin/false,/dev/null,/bin/sync,/bin/true,/sbin/shutdown
10  
11  # Look for John in the same directory with this script
12 -DIR="`echo "$0" | sed 's,/[^/]*$,,'`"
13 +#DIR="`echo "$0" | sed 's,/[^/]*$,,'`"
14 +DIR="/usr/bin"
15  
16  # Let's start
17  $DIR/john -show "$1" -shells:$SHELLS | sed -n 's/:.*//p' |
18 @@ -21,10 +22,23 @@
19         SENT=0
20  
21         while read LOGIN; do
22 -               echo Sending mail to "$LOGIN"...
23 +               echo Sending mail to / Wysylam maila do "$LOGIN"...
24  
25  # You'll probably want to edit the message below
26 -               mail -s 'Bad password' "$LOGIN" << EOF
27 +               mail -s 'Bad password / Zle haslo' "$LOGIN" << EOF
28 +--------------------------------------------------------------------------
29 +[PL]
30 +
31 +Witaj!
32 +
33 +Twoje has³o dla konta "$LOGIN" nie jest bezpieczne. Proszê zmieñ
34 +je tak szybko jak to jest mo¿liwe.
35 +
36 +Twój,
37 +       Robot Sprawdzaj±cy Has³a.
38 +--------------------------------------------------------------------------
39 +[ENG]
40 +
41  Hello!
42  
43  Your password for account "$LOGIN" is insecure. Please change it as soon
44 @@ -32,6 +46,7 @@
45  
46  Yours,
47         Password Checking Robot.
48 +--------------------------------------------------------------------------
49  EOF
50  
This page took 0.065587 seconds and 2 git commands to generate.