From 5fa72a276c6c1c42f8cf805423482d31af121212 Mon Sep 17 00:00:00 2001 From: Sebastian Jaenicke Date: Mon, 5 Apr 2004 20:27:44 +0000 Subject: [PATCH] Sebastian Jaenicke: * Add package "john" [2004031102063017263] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2639 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/tsa/john/john.conf | 36 ++++++++++++++++++++ package/tsa/john/john.desc | 46 ++++++++++++++++++++++++++ package/tsa/john/locations.patch | 57 ++++++++++++++++++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 package/tsa/john/john.conf create mode 100644 package/tsa/john/john.desc create mode 100644 package/tsa/john/locations.patch diff --git a/package/tsa/john/john.conf b/package/tsa/john/john.conf new file mode 100644 index 000000000..69f3217a2 --- /dev/null +++ b/package/tsa/john/john.conf @@ -0,0 +1,36 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/tsa/john/john.conf +# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +install_john() { + install -m0755 run/john $root/usr/bin/ + install -m0755 run/mailer $root/usr/bin/ + install -m0644 run/john.ini $root/etc/ + install -d -m0755 $root/usr/share/john/ + install -m0644 run/*chr run/password.lst $root/usr/share/john/ + ln -s $root/usr/bin/john $root/usr/bin/unafs + ln -s $root/usr/bin/john $root/usr/bin/unique + ln -s $root/usr/bin/john $root/usr/bin/unshadow +} + +makeopt="-C src generic" +inmake=install_john +makeinstopt="-C src" diff --git a/package/tsa/john/john.desc b/package/tsa/john/john.desc new file mode 100644 index 000000000..64025fe3e --- /dev/null +++ b/package/tsa/john/john.desc @@ -0,0 +1,46 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/tsa/john/john.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] A password cracker to detect weak Unix (and other) passwords. + +[T] John the Ripper is a fast password cracker, currently available for many +[T] flavors of Unix (11 are officially supported, not counting different +[T] architectures), DOS, Win32, BeOS, and OpenVMS. Its primary purpose is to +[T] detect weak Unix passwords. It supports several crypt(3) password hash +[T] types which are most commonly found on various Unix flavors, as well as +[T] Kerberos AFS and Windows NT/2000/XP LM hashes. Several other hash types +[T] are added with contributed patches. + +[U] http://www.openwall.com/john/ + +[A] Solar Designer +[M] Sebastian Jaenicke + +[C] extra/security + +[L] GPL +[S] Stable +[V] 1.6 +[P] X -----5---9 800.000 + +[D] 3199007682 john-1.6.tar.gz http://www.openwall.com/john/a/ diff --git a/package/tsa/john/locations.patch b/package/tsa/john/locations.patch new file mode 100644 index 000000000..80be80bae --- /dev/null +++ b/package/tsa/john/locations.patch @@ -0,0 +1,57 @@ +diff -Nur john-1.6.orig/run/john.ini john-1.6/run/john.ini +--- john-1.6.orig/run/john.ini 1998-12-03 01:29:50.000000000 +0100 ++++ john-1.6/run/john.ini 2004-03-11 01:50:33.000000000 +0100 +@@ -5,7 +5,7 @@ + + [Options] + # Wordlist file name, to be used in batch mode +-Wordfile = ~/password.lst ++Wordfile = /usr/share/john/password.lst + # Use idle cycles only + Idle = N + # Crash recovery file saving delay in seconds +@@ -314,25 +314,25 @@ + + # Incremental modes + [Incremental:All] +-File = ~/all.chr ++File = /usr/share/john/all.chr + MinLen = 0 + MaxLen = 8 + CharCount = 95 + + [Incremental:Alpha] +-File = ~/alpha.chr ++File = /usr/share/john/alpha.chr + MinLen = 1 + MaxLen = 8 + CharCount = 26 + + [Incremental:Digits] +-File = ~/digits.chr ++File = /usr/share/john/digits.chr + MinLen = 1 + MaxLen = 8 + CharCount = 10 + + [Incremental:LanMan] +-File = ~/lanman.chr ++File = /usr/share/john/lanman.chr + MinLen = 0 + MaxLen = 7 + CharCount = 69 +diff -Nur john-1.6.orig/src/params.h john-1.6/src/params.h +--- john-1.6.orig/src/params.h 1998-12-03 01:29:50.000000000 +0100 ++++ john-1.6/src/params.h 2004-03-11 01:48:33.000000000 +0100 +@@ -53,9 +53,9 @@ + * File names. + */ + #define LOG_NAME "~/john.pot" +-#define CFG_NAME "~/john.ini" ++#define CFG_NAME "/etc/john.ini" + #define RECOVERY_NAME "~/restore" +-#define WORDLIST_NAME "~/password.lst" ++#define WORDLIST_NAME "/usr/share/john/password.lst" + + /* + * Configuration file section names.