diff -ruN john-1.6./run/john.conf john-1.6/run/john.conf --- john-1.6./run/john.conf 2003-07-12 12:06:08.000000000 +0200 +++ john-1.6/run/john.conf 2003-07-12 12:13:22.000000000 +0200 @@ -5,7 +5,7 @@ [Options] # Wordlist file name, to be used in batch mode -Wordfile = $JOHN/password.lst +Wordfile = /usr/share/dict/words # Use idle cycles only Idle = N # Crash recovery file saving delay in seconds @@ -316,25 +316,25 @@ # Incremental modes [Incremental:All] -File = $JOHN/all.chr +File = /usr/lib/john/all.chr MinLen = 0 MaxLen = 8 CharCount = 95 [Incremental:Alpha] -File = $JOHN/alpha.chr +File = /usr/lib/john/alpha.chr MinLen = 1 MaxLen = 8 CharCount = 26 [Incremental:Digits] -File = $JOHN/digits.chr +File = /usr/lib/john/digits.chr MinLen = 1 MaxLen = 8 CharCount = 10 [Incremental:LanMan] -File = $JOHN/lanman.chr +File = /usr/lib/john/lanman.chr MinLen = 0 MaxLen = 7 CharCount = 69 diff -ruN john-1.6./run/mailer john-1.6/run/mailer --- john-1.6./run/mailer 1998-12-03 01:29:50.000000000 +0100 +++ john-1.6/run/mailer 2003-07-12 12:06:43.000000000 +0200 @@ -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,23 @@ 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 +-------------------------------------------------------------------------- +[PL] + +Witaj! + +Twoje hasło dla konta "$LOGIN" nie jest bezpieczne. Proszę zmień +je tak szybko jak to jest możliwe. + +Twój, + Robot Sprawdzający Hasła. +-------------------------------------------------------------------------- +[ENG] + Hello! Your password for account "$LOGIN" is insecure. Please change it as soon @@ -32,6 +46,7 @@ Yours, Password Checking Robot. +-------------------------------------------------------------------------- EOF SENT=$(($SENT+1)) diff -ruN john-1.6./src/Makefile john-1.6/src/Makefile --- john-1.6./src/Makefile 2003-07-12 12:06:08.000000000 +0200 +++ john-1.6/src/Makefile 2003-07-12 12:06:43.000000000 +0200 @@ -14,7 +14,7 @@ SED = sed NULL = /dev/null CPPFLAGS = -E -CFLAGS = -c -Wall -O2 -fomit-frame-pointer +CFLAGS = -c -Wall -fomit-frame-pointer $(OPT) ASFLAGS = -c LDFLAGS = -s OPT_NORMAL = -funroll-loops diff -ruN john-1.6./src/params.h john-1.6/src/params.h --- john-1.6./src/params.h 2003-07-12 12:06:08.000000000 +0200 +++ john-1.6/src/params.h 2003-07-12 12:10:54.000000000 +0200 @@ -22,12 +22,12 @@ * will probably want to set this to 1 for their builds of John. */ #ifndef JOHN_SYSTEMWIDE -#define JOHN_SYSTEMWIDE 0 +#define JOHN_SYSTEMWIDE 1 #endif #if JOHN_SYSTEMWIDE -#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john" -#define JOHN_SYSTEMWIDE_HOME "/usr/share/john" +#define JOHN_SYSTEMWIDE_EXEC "/usr/bin/john" +#define JOHN_SYSTEMWIDE_HOME "/usr/lib/john" #define JOHN_PRIVATE_HOME "~/.john" #endif @@ -78,7 +78,7 @@ #define LOG_NAME "$JOHN/john.pot" #define RECOVERY_NAME "$JOHN/restore" #endif -#define WORDLIST_NAME "$JOHN/password.lst" +#define WORDLIST_NAME "/usr/share/dict/words" /* * Configuration file section names. diff -ruN john-1.6./src/params.h.rej john-1.6/src/params.h.rej --- john-1.6./src/params.h.rej 1970-01-01 01:00:00.000000000 +0100 +++ john-1.6/src/params.h.rej 2003-07-12 12:06:43.000000000 +0200 @@ -0,0 +1,23 @@ +*************** +*** 52,61 **** + /* + * File names. + */ +- #define LOG_NAME "~/john.pot" +- #define CFG_NAME "~/john.ini" +- #define RECOVERY_NAME "~/restore" +- #define WORDLIST_NAME "~/password.lst" + + /* + * Configuration file section names. +--- 52,61 ---- + /* + * File names. + */ ++ #define LOG_NAME "~/.john.pot" ++ #define CFG_NAME "/usr/lib/john/john.ini" ++ #define RECOVERY_NAME "~/.john.restore" ++ #define WORDLIST_NAME "/usr/share/dict/words" + + /* + * Configuration file section names.