]> git.pld-linux.org Git - packages/john.git/blame - john-mailer.patch
Release 3 (by relup.sh)
[packages/john.git] / john-mailer.patch
CommitLineData
d92a384c
JR
1diff -urNp -x '*.orig' JohnTheRipper-af81c8de3ec1031c71307057d82fe1cd2bb8eb4b.org/run/mailer JohnTheRipper-af81c8de3ec1031c71307057d82fe1cd2bb8eb4b/run/mailer
2--- JohnTheRipper-af81c8de3ec1031c71307057d82fe1cd2bb8eb4b.org/run/mailer 2019-04-15 23:07:24.000000000 +0200
3+++ JohnTheRipper-af81c8de3ec1031c71307057d82fe1cd2bb8eb4b/run/mailer 2021-10-06 23:03:54.122657094 +0200
4@@ -23,10 +23,11 @@ if [ $# -ne 1 ]; then
24334275 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' |
d92a384c 18@@ -34,10 +35,13 @@ $DIR/john -show "$1" -shells:$SHELLS | s
24334275 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+--------------------------------------------------------------------------
89ee5f0c 29+[EN]
24334275 30+
31 Hello!
32
d92a384c
JR
33 Your password for account "$LOGIN" is insecure. Please change it as soon
34@@ -45,6 +49,17 @@ as possible.
24334275 35
36 Yours,
37 Password Checking Robot.
89ee5f0c
JB
38+--------------------------------------------------------------------------
39+[PL]
40+
41+Witaj!
42+
43+Twoje haslo dla konta "$LOGIN" nie jest bezpieczne. Prosze zmien
44+je tak szybko jak to jest mozliwe.
45+
46+Twoj,
47+ Robot sprawdzajacy hasla.
24334275 48+--------------------------------------------------------------------------
49 EOF
50
89ee5f0c 51 SENT=$(($SENT+1))
This page took 0.130377 seconds and 5 git commands to generate.