From unknown Sat Sep 13 08:57:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#28429] [PATCH] gnu: Add John the Ripper. Resent-From: Eric Bavier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Sep 2017 02:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28429 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 28429@debbugs.gnu.org Cc: Eric Bavier X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150518466529913 (code B ref -1); Tue, 12 Sep 2017 02:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Sep 2017 02:51:05 +0000 Received: from localhost ([127.0.0.1]:34458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drbHw-0007m3-84 for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:51:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drbHu-0007lq-8J for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:50:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drbHn-0003tI-ED for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:50:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,MIME_QP_LONG_LINE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50928) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drbHn-0003tD-A7 for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:50:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drbHl-0004D8-K2 for guix-patches@gnu.org; Mon, 11 Sep 2017 22:50:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drbHi-0003sE-Cp for guix-patches@gnu.org; Mon, 11 Sep 2017 22:50:49 -0400 Received: from mail.centurylink.net ([205.219.233.9]:14351 helo=smtp.centurylink.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drbHh-0003rs-Li for guix-patches@gnu.org; Mon, 11 Sep 2017 22:50:45 -0400 X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=VICfpJHX c=1 sm=1 tr=0 a=zUWAmhgg3MyP3vTnjmxjJw==:117 a=zUWAmhgg3MyP3vTnjmxjJw==:17 a=IkcTkHD0fZMA:10 a=aoDTYKXZAAAA:8 a=AHe2HyNqAAAA:8 a=inoG4m36AAAA:8 a=XkRKQH6RAAAA:8 a=NEAV23lmAAAA:8 a=F2Yf4bmT4uXYkOsiifQA:9 a=QEXdDO2ut3YA:10 a=3TMSKNOjTrc1VE3cRZ_u:22 a=cp-CLR_E5zKzXxmevFi1:22 a=_Qgj-RFg6mImvLaOgLPg:22 a=1gUyE30hU_ULiMxJiLUW:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZXJpY2JhdmllckBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=ericbavier@centurylink.net; auth=pass (LOGIN) Received: from [97.116.122.215] ([97.116.122.215:51434] helo=localhost.localdomain) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-GCM-SHA256) id D1/FF-21399-18B47B95; Mon, 11 Sep 2017 22:50:43 -0400 From: Eric Bavier Date: Mon, 11 Sep 2017 21:50:14 -0500 Message-Id: <20170912025014.27269-1-bavier@member.fsf.org> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Length: 6257 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) * gnu/packages/password-utils.scm (john-the-ripper-jumbo): New variable. --- gnu/packages/password-utils.scm | 96 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index bde1ea854..97e20e7eb 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2017 Cl=C3=A9ment Lassieur ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017 Jelle Licht +;;; Copyright =C2=A9 2017 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,10 +42,13 @@ #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) + #:use-module (gnu packages gnuzilla) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages kerberos) #:use-module (gnu packages linux) #:use-module (gnu packages man) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -480,3 +484,95 @@ use pass, the standard unix password manager, as the credential backend for your git repositories. This is achieved by explicitly defining mappings between hosts and entries in the password store.") (license license:lgpl3+))) + +(define-public john-the-ripper-jumbo + (let ((official-version "1.8.0") + (jumbo-version "1")) + (package + (name "john-the-ripper-jumbo") + (version (string-append official-version "-" jumbo-version)) + (source + (origin + (method url-fetch) + (uri (string-append "http://www.openwall.com/john/j/john-" + official-version "-jumbo-" jumbo-version ".tar.xz")) + (sha256 + (base32 + "08q92sfdvkz47rx6qjn7qv57cmlpy7i7rgddapq5384mb413vjds")) + (patches + (list (origin + (method url-fetch) + (uri (string-append "https://github.com/magnumripper/" + "JohnTheRipper/commit/" + "e2e868db3e153b3f959e119a51703d4afb99c624.patch")) + (file-name "john-the-ripper-jumbo-gcc5-inline.patch") + (sha256 + (base32 + "1shvcf1y2097115mxhzdkm64dr106a8zr6pqjqyh171q5ng5vfra"))) + (origin + (method url-fetch) + (uri (string-append "https://github.com/magnumripper/" + "JohnTheRipper/commit/" + "480e95b0e449863be3e1a5b0bc634a67df28b618.patch")) + (file-name "john-the-ripper-jumbo-non-x86.patch") + (sha256 + (base32 + "1ffd9dvhk0sb6ss8dv5yalh01lz30i7rilqilf2xv68gax2hyjqx"))))))) + (build-system gnu-build-system) + (inputs + `(("gmp" ,gmp) + ("krb5" ,mit-krb5) + ("libpcap" ,libpcap) + ("nss" ,nss) + ("openssl" ,openssl) + ("zlib" ,zlib))) + (arguments + `(#:configure-flags + (list (string-append + "CFLAGS=3D" + "-DJOHN_SYSTEMWIDE=3D1 " + "-DJOHN_SYSTEMWIDE_EXEC=3D'\"" %output "/libexec/john\"' " + "-DJOHN_SYSTEMWIDE_HOME=3D'\"" %output "/share/john\"'") + "--disable-native-tests" + "--disable-native-macro") + #:tests=3F #f ;tests assume /etc/passwd has a pw_dir for the build user + #:phases + (modify-phases %standard-phases + (add-before 'configure 'chdir-src + (lambda _ (chdir "src"))) + (replace 'install + (lambda _ + (let ((bindir (string-append %output "/bin")) + (docdir (string-append %output "/share/doc/john")) + (execdir (string-append %output "/libexec/john")) + (homedir (string-append %output "/share/john")) + (install-file-to (lambda (dir) + (lambda (f) (install-file f dir)))) + (symlink=3F (lambda (_ s) (eq=3F (stat:type s) 'symlink)))) + (with-directory-excursion "../run" + (for-each (install-file-to execdir) + (cons* "mailer" "benchmark-unify" + (find-files "." ".*\\.(py|rb|pl)"))) + (for-each (install-file-to homedir) + (append (find-files "." "(stats|dictionary.*)") + (find-files "." "(.*\\.chr|.*\\.lst)") + (find-files "." ".*\\.conf"))) + (for-each (install-file-to bindir) + '("tgtsnarf" "genmkvpwd" "mkvcalcproba" + "raw2dyna" "luks2john" "vncpcap2john" + "uaf2john" "calc_stat" "wpapcap2john" + "cprepair" "relbench" "SIPdump" "john")) + (for-each (lambda (f) ;install symlinked aliases + (symlink "john" + (string-append bindir "/" (basename f)))) + (find-files "." symlink=3F))) + (copy-recursively "../doc" docdir) + #t)))))) + (home-page "http://www.openwall.com/john/") + (synopsis "Password cracker") + (description "John the Ripper is a fast password cracker. Its primary +purpose is to detect weak Unix passwords. Besides several crypt(3) password +hash types most commonly found on various Unix systems, supported out of the +box are Windows LM hashes, plus lots of other hashes and ciphers. This is the +community-enhanced, \"jumbo\" version of John the Ripper.") + (license license:gpl2+)))) -- 2.14.1 From unknown Sat Sep 13 08:57:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#28429] [PATCH] gnu: Add John the Ripper. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2017 08:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28429 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Eric Bavier Cc: 28429@debbugs.gnu.org Received: via spool by 28429-submit@debbugs.gnu.org id=B28429.15052902498649 (code B ref 28429); Wed, 13 Sep 2017 08:11:02 +0000 Received: (at 28429) by debbugs.gnu.org; 13 Sep 2017 08:10:49 +0000 Received: from localhost ([127.0.0.1]:37026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds2ky-0002FQ-D2 for submit@debbugs.gnu.org; Wed, 13 Sep 2017 04:10:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds2kx-0002FD-2o for 28429@debbugs.gnu.org; Wed, 13 Sep 2017 04:10:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ds2kr-0002X0-0N for 28429@debbugs.gnu.org; Wed, 13 Sep 2017 04:10:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ds2kq-0002Wr-SM; Wed, 13 Sep 2017 04:10:40 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=51804 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ds2kq-0003Ny-6r; Wed, 13 Sep 2017 04:10:40 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170912025014.27269-1-bavier@member.fsf.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Fructidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 13 Sep 2017 10:10:39 +0200 In-Reply-To: <20170912025014.27269-1-bavier@member.fsf.org> (Eric Bavier's message of "Mon, 11 Sep 2017 21:50:14 -0500") Message-ID: <87vakn3tog.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Eric, Eric Bavier skribis: > * gnu/packages/password-utils.scm (john-the-ripper-jumbo): New variable. [...] > + `(#:configure-flags > + (list (string-append > + "CFLAGS=3D" Is this to clear CFLAGS? We should make sure to get =E2=80=9C-O2 -g=E2=80= =9D. > + "-DJOHN_SYSTEMWIDE=3D1 " > + "-DJOHN_SYSTEMWIDE_EXEC=3D'\"" %output "/libexec/john\"'= " > + "-DJOHN_SYSTEMWIDE_HOME=3D'\"" %output "/share/john\"'") > + "--disable-native-tests" > + "--disable-native-macro") Perhaps add a comment on these two flags. > + #:tests? #f ;tests assume /etc/passwd has a pw_dir for the buil= d user /etc/passwd in the build environment has this line (see nix/libstore/build.cc:1859): nixbld:x:%1%:%2%:Nix build user:/:/noshell Isn=E2=80=99t it sufficient to have =E2=80=9C/=E2=80=9D as the home directo= ry? > + (description "John the Ripper is a fast password cracker. Its pri= mary > +purpose is to detect weak Unix passwords. Besides several crypt(3) pass= word Rather @code{crypt}. Otherwise LGTM, thank you! Ludo=E2=80=99. From unknown Sat Sep 13 08:57:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#28429] [PATCH] gnu: Add John the Ripper. Resent-From: Eric Bavier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2017 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28429 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 28429@debbugs.gnu.org Received: via spool by 28429-submit@debbugs.gnu.org id=B28429.150531040922046 (code B ref 28429); Wed, 13 Sep 2017 13:47:01 +0000 Received: (at 28429) by debbugs.gnu.org; 13 Sep 2017 13:46:49 +0000 Received: from localhost ([127.0.0.1]:37357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds803-0005jR-16 for submit@debbugs.gnu.org; Wed, 13 Sep 2017 09:46:49 -0400 Received: from mail.centurylink.net ([205.219.233.9]:7659 helo=smtp.centurylink.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds7zw-0005j7-Dq for 28429@debbugs.gnu.org; Wed, 13 Sep 2017 09:46:40 -0400 DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1505310389; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=R3veu82ADei963ZYBjpd2sOdQ8k=; b=wja12Z40heWgJ2h175lQzKkPJrlM51ZYVnfKiW45dc0WVuL36+qOb2EgJRzlvag9 MAxpvBT/1EAAYvs4XcTNNphLl/gklpAvBsjDb80ym5UuLtoeVtbnrVZfrKqplBgK 81RKubLL67wfcF6PDxNEB7SqMDG3VdVQYG00D88gabE8w1cv/BIH6fXEslz+7yK/ cYlfa9Z1meOUFKNUifmZ0iCthC17WAMSmTWMxf/TbfTDRbfaoZ7P3K4/5DXFMKJE Uj+uuWmdIfjgePm5MrJy6jRJwxvqEqk3zYrgpMAqSI16k4Af55bNbLEaWptJzUgi zXKch32Os5o+X352S5buvA==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=RrWHF2uK c=1 sm=1 tr=0 a=ARzDMtKCDfUPnxl3IFpf3A==:117 a=ARzDMtKCDfUPnxl3IFpf3A==:17 a=mDV3o1hIAAAA:8 a=inoG4m36AAAA:8 a=V6ClZuiCk1s9-uSzLTIA:9 a=QEXdDO2ut3YA:10 a=aoDTYKXZAAAA:8 a=AHe2HyNqAAAA:8 a=XkRKQH6RAAAA:8 a=NEAV23lmAAAA:8 a=F2Yf4bmT4uXYkOsiifQA:9 a=_FVE-zBwftR9WsbkzFJk:22 a=_Qgj-RFg6mImvLaOgLPg:22 a=3TMSKNOjTrc1VE3cRZ_u:22 a=cp-CLR_E5zKzXxmevFi1:22 a=1gUyE30hU_ULiMxJiLUW:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZXJpY2JhdmllckBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=ericbavier@centurylink.net; auth=pass (LOGIN) Received: from [97.116.118.163] ([97.116.118.163:22828] helo=localhost) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id 3C/7F-12692-5B639B95; Wed, 13 Sep 2017 09:46:29 -0400 Date: Wed, 13 Sep 2017 08:46:27 -0500 From: Eric Bavier Message-ID: <20170913084627.535c4ec5@centurylink.net> In-Reply-To: <87vakn3tog.fsf@gnu.org> References: <20170912025014.27269-1-bavier@member.fsf.org> <87vakn3tog.fsf@gnu.org> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_//THHqK8pVkVwYWDy/HAzecN" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) --MP_//THHqK8pVkVwYWDy/HAzecN Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 13 Sep 2017 10:10:39 +0200 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Hi Eric, >=20 > Eric Bavier skribis: >=20 > > * gnu/packages/password-utils.scm (john-the-ripper-jumbo): New variable= . =20 >=20 > [...] >=20 > > + `(#:configure-flags > > + (list (string-append > > + "CFLAGS=3D" =20 >=20 > Is this to clear CFLAGS? We should make sure to get =E2=80=9C-O2 -g=E2= =80=9D. The macro definitions below must be put in CFLAGS, but yes, -O2 should be included. >=20 > > + "-DJOHN_SYSTEMWIDE=3D1 " > > + "-DJOHN_SYSTEMWIDE_EXEC=3D'\"" %output "/libexec/john\= "' " > > + "-DJOHN_SYSTEMWIDE_HOME=3D'\"" %output "/share/john\"'= ") > > + "--disable-native-tests" > > + "--disable-native-macro") =20 >=20 > Perhaps add a comment on these two flags. Sure. John supports a "cpu fallback" feature to match, at runtime, the current processor with an executable appropriate for its supported instruction set. This involves configuring and building multiple times with different optimization flags. I wanted to implement this later after getting the rest of things working, so these two flags turn off the "-march=3Dnative" flag and instruction set discovery during 'configure'. >=20 > > + #:tests? #f ;tests assume /etc/passwd has a pw_dir for the bu= ild user =20 >=20 > /etc/passwd in the build environment has this line (see > nix/libstore/build.cc:1859): >=20 > nixbld:x:%1%:%2%:Nix build user:/:/noshell >=20 > Isn=E2=80=99t it sufficient to have =E2=80=9C/=E2=80=9D as the home direc= tory? It seems the build user noes not have sufficient permissions to create a directory there? The tests want to create "~/.john" (specifically "//.john"). >=20 > > + (description "John the Ripper is a fast password cracker. Its p= rimary > > +purpose is to detect weak Unix passwords. Besides several crypt(3) pa= ssword =20 >=20 > Rather @code{crypt}. ok. >=20 > Otherwise LGTM, thank you! Thanks, updated patch attached, `~Eric --MP_//THHqK8pVkVwYWDy/HAzecN Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-Add-John-the-Ripper.patch =46rom dd9795e5d63beaf06f2e3c76944e82a5564dc87d Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Mon, 11 Sep 2017 21:44:14 -0500 Subject: [PATCH] gnu: Add John the Ripper. * gnu/packages/password-utils.scm (john-the-ripper-jumbo): New variable. --- gnu/packages/password-utils.scm | 98 +++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 98 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.= scm index bde1ea854..52689a71d 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2017 Cl=C3=A9ment Lassieur ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017 Jelle Licht +;;; Copyright =C2=A9 2017 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,10 +42,13 @@ #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) + #:use-module (gnu packages gnuzilla) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages kerberos) #:use-module (gnu packages linux) #:use-module (gnu packages man) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -480,3 +484,97 @@ use pass, the standard unix password manager, as the c= redential backend for your git repositories. This is achieved by explicitly defining mappings between hosts and entries in the password store.") (license license:lgpl3+))) + +(define-public john-the-ripper-jumbo + (let ((official-version "1.8.0") + (jumbo-version "1")) + (package + (name "john-the-ripper-jumbo") + (version (string-append official-version "-" jumbo-version)) + (source + (origin + (method url-fetch) + (uri (string-append "http://www.openwall.com/john/j/john-" + official-version "-jumbo-" jumbo-version ".ta= r.xz")) + (sha256 + (base32 + "08q92sfdvkz47rx6qjn7qv57cmlpy7i7rgddapq5384mb413vjds")) + (patches + (list (origin + (method url-fetch) + (uri (string-append "https://github.com/magnumripper/" + "JohnTheRipper/commit/" + "e2e868db3e153b3f959e119a51703d4afb9= 9c624.patch")) + (file-name "john-the-ripper-jumbo-gcc5-inline.patch") + (sha256 + (base32 + "1shvcf1y2097115mxhzdkm64dr106a8zr6pqjqyh171q5ng5vfra"= ))) + (origin + (method url-fetch) + (uri (string-append "https://github.com/magnumripper/" + "JohnTheRipper/commit/" + "480e95b0e449863be3e1a5b0bc634a67df2= 8b618.patch")) + (file-name "john-the-ripper-jumbo-non-x86.patch") + (sha256 + (base32 + "1ffd9dvhk0sb6ss8dv5yalh01lz30i7rilqilf2xv68gax2hyjqx"= ))))))) + (build-system gnu-build-system) + (inputs + `(("gmp" ,gmp) + ("krb5" ,mit-krb5) + ("libpcap" ,libpcap) + ("nss" ,nss) + ("openssl" ,openssl) + ("zlib" ,zlib))) + (arguments + `(#:configure-flags + (list (string-append + "CFLAGS=3D-O2 -g " + "-DJOHN_SYSTEMWIDE=3D1 " + "-DJOHN_SYSTEMWIDE_EXEC=3D'\"" %output "/libexec/john\"' " + "-DJOHN_SYSTEMWIDE_HOME=3D'\"" %output "/share/john\"'") + ;; For now, do not test for instruction set in configure, a= nd + ;; do not pass '-march=3Dnative' to gcc: + "--disable-native-tests" + "--disable-native-macro") + #:tests? #f ;tests try to create '.john' in the build user's $HOME + #:phases + (modify-phases %standard-phases + (add-before 'configure 'chdir-src + (lambda _ (chdir "src"))) + (replace 'install + (lambda _ + (let ((bindir (string-append %output "/bin")) + (docdir (string-append %output "/share/doc/john")) + (execdir (string-append %output "/libexec/john")) + (homedir (string-append %output "/share/john")) + (install-file-to (lambda (dir) + (lambda (f) (install-file f dir)))) + (symlink? (lambda (_ s) (eq? (stat:type s) 'symlink))= )) + (with-directory-excursion "../run" + (for-each (install-file-to execdir) + (cons* "mailer" "benchmark-unify" + (find-files "." ".*\\.(py|rb|pl)"))) + (for-each (install-file-to homedir) + (append (find-files "." "(stats|dictionary.*)= ") + (find-files "." "(.*\\.chr|.*\\.lst)") + (find-files "." ".*\\.conf"))) + (for-each (install-file-to bindir) + '("tgtsnarf" "genmkvpwd" "mkvcalcproba" + "raw2dyna" "luks2john" "vncpcap2john" + "uaf2john" "calc_stat" "wpapcap2john" + "cprepair" "relbench" "SIPdump" "john")) + (for-each (lambda (f) ;install symlinked aliases + (symlink "john" + (string-append bindir "/" (basenam= e f)))) + (find-files "." symlink?))) + (copy-recursively "../doc" docdir) + #t)))))) + (home-page "http://www.openwall.com/john/") + (synopsis "Password cracker") + (description "John the Ripper is a fast password cracker. Its prima= ry +purpose is to detect weak Unix passwords. Besides several @code{crypt} +password hash types most commonly found on various Unix systems, supported= out +of the box are Windows LM hashes, plus lots of other hashes and ciphers. = This +is the community-enhanced, \"jumbo\" version of John the Ripper.") + (license license:gpl2+)))) --=20 2.14.1 --MP_//THHqK8pVkVwYWDy/HAzecN-- From unknown Sat Sep 13 08:57:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#28429] [PATCH] gnu: Add John the Ripper. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2017 21:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28429 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Eric Bavier Cc: 28429@debbugs.gnu.org Received: via spool by 28429-submit@debbugs.gnu.org id=B28429.150533775221024 (code B ref 28429); Wed, 13 Sep 2017 21:23:02 +0000 Received: (at 28429) by debbugs.gnu.org; 13 Sep 2017 21:22:32 +0000 Received: from localhost ([127.0.0.1]:38972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsF79-0005T2-Ps for submit@debbugs.gnu.org; Wed, 13 Sep 2017 17:22:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47957) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsF78-0005Sp-6B for 28429@debbugs.gnu.org; Wed, 13 Sep 2017 17:22:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsF72-0005qn-5b for 28429@debbugs.gnu.org; Wed, 13 Sep 2017 17:22:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsF72-0005qg-2D; Wed, 13 Sep 2017 17:22:24 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=57448 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dsF71-0004YT-Ik; Wed, 13 Sep 2017 17:22:23 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170912025014.27269-1-bavier@member.fsf.org> <87vakn3tog.fsf@gnu.org> <20170913084627.535c4ec5@centurylink.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Fructidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 13 Sep 2017 23:22:21 +0200 In-Reply-To: <20170913084627.535c4ec5@centurylink.net> (Eric Bavier's message of "Wed, 13 Sep 2017 08:46:27 -0500") Message-ID: <874ls647le.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Heya, Eric Bavier skribis: > On Wed, 13 Sep 2017 10:10:39 +0200 [...] >>=20 >> > + `(#:configure-flags >> > + (list (string-append >> > + "CFLAGS=3D"=20=20 >>=20 >> Is this to clear CFLAGS? We should make sure to get =E2=80=9C-O2 -g=E2= =80=9D. > > The macro definitions below must be put in CFLAGS, but yes, -O2 should > be included. OK. >>=20 >> > + "-DJOHN_SYSTEMWIDE=3D1 " >> > + "-DJOHN_SYSTEMWIDE_EXEC=3D'\"" %output "/libexec/john= \"' " >> > + "-DJOHN_SYSTEMWIDE_HOME=3D'\"" %output "/share/john\"= '") >> > + "--disable-native-tests" >> > + "--disable-native-macro")=20=20 >>=20 >> Perhaps add a comment on these two flags. > > Sure. John supports a "cpu fallback" feature to match, at runtime, the > current processor with an executable appropriate for its supported > instruction set. This involves configuring and building multiple times > with different optimization flags. I wanted to implement this later > after getting the rest of things working, so these two flags turn off > the "-march=3Dnative" flag and instruction set discovery during > 'configure'. Oh, I see. Thanks for explaining. >> /etc/passwd in the build environment has this line (see >> nix/libstore/build.cc:1859): >>=20 >> nixbld:x:%1%:%2%:Nix build user:/:/noshell >>=20 >> Isn=E2=80=99t it sufficient to have =E2=80=9C/=E2=80=9D as the home dire= ctory? > > It seems the build user noes not have sufficient permissions to create a > directory there? The tests want to create "~/.john" (specifically > "//.john"). And setting =E2=80=98HOME=E2=80=99 isn=E2=80=99t enough? (There are severa= l packages where we do that right before the =E2=80=98check=E2=80=99 phase.) > From dd9795e5d63beaf06f2e3c76944e82a5564dc87d Mon Sep 17 00:00:00 2001 > From: Eric Bavier > Date: Mon, 11 Sep 2017 21:44:14 -0500 > Subject: [PATCH] gnu: Add John the Ripper. > > * gnu/packages/password-utils.scm (john-the-ripper-jumbo): New variable. Perfect, thanks! Ludo=E2=80=99. From unknown Sat Sep 13 08:57:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eric Bavier Subject: bug#28429: closed (Re: [bug#28429] [PATCH] gnu: Add John the Ripper.) Message-ID: References: <20170913222007.1dd3ad35@centurylink.net> <20170912025014.27269-1-bavier@member.fsf.org> X-Gnu-PR-Message: they-closed 28429 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 28429@debbugs.gnu.org Date: Thu, 14 Sep 2017 03:21:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1505359262-28147-1" This is a multi-part message in MIME format... ------------=_1505359262-28147-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28429: [PATCH] gnu: Add John the Ripper. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28429@debbugs.gnu.org. --=20 28429: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28429 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1505359262-28147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28429-done) by debbugs.gnu.org; 14 Sep 2017 03:20:21 +0000 Received: from localhost ([127.0.0.1]:39331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsKhP-0007Im-37 for submit@debbugs.gnu.org; Wed, 13 Sep 2017 23:20:19 -0400 Received: from mail.centurylink.net ([205.219.233.9]:6917 helo=smtp.centurylink.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsKhM-0007IZ-RH for 28429-done@debbugs.gnu.org; Wed, 13 Sep 2017 23:20:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1505359209; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=DjHu+4o1z/L32bpZYQTNjJLUJRE=; b=wLBMQx1LiXTRtLmoK6CeDgLpdvFG4o+s85IAXOkBI8huz6BIfnpEN9CRi3YtN9sm y+ZlN+jYIWnFIU82E4NhgdEgEpjjkp94lBKjTDshdKcmbNBiUGe7MxXcyKNakBa1 ZdNIOdNuyuVkBzhwXEmqU2nDyNma+Fw09IuujvS8jwZ+7Vv4H3gq/z0hjHfO63Qq sGHdkc5ABft1jjv7GIlvDfkQWokR3aCO6ZYNPT/qpHe5yoQbrx/3j9C6FdtHkZ3i N300kSPa4lf9Mzy5wNDjdTDLagaZosXxQUBb4ucBdbjCaCLCoVMTqAcHZZPQWh/W 8IidigVWoY4GqfN+KoNNwQ==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=e7tEcuh/ c=1 sm=1 tr=0 a=ARzDMtKCDfUPnxl3IFpf3A==:117 a=ARzDMtKCDfUPnxl3IFpf3A==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=inoG4m36AAAA:8 a=62WVNvrt7QnopJaxt-cA:9 a=QEXdDO2ut3YA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=_Qgj-RFg6mImvLaOgLPg:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZXJpY2JhdmllckBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=ericbavier@centurylink.net; auth=pass (LOGIN) Received: from [97.116.118.163] ([97.116.118.163:12858] helo=localhost) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id E5/B3-06532-965F9B95; Wed, 13 Sep 2017 23:20:09 -0400 Date: Wed, 13 Sep 2017 22:20:07 -0500 From: Eric Bavier To: ludo@gnu.org (Ludovic =?UTF-8?B?Q291cnTDqHM=?=) Subject: Re: [bug#28429] [PATCH] gnu: Add John the Ripper. Message-ID: <20170913222007.1dd3ad35@centurylink.net> In-Reply-To: <874ls647le.fsf@gnu.org> References: <20170912025014.27269-1-bavier@member.fsf.org> <87vakn3tog.fsf@gnu.org> <20170913084627.535c4ec5@centurylink.net> <874ls647le.fsf@gnu.org> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 28429-done Cc: 28429-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) On Wed, 13 Sep 2017 23:22:21 +0200 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> /etc/passwd in the build environment has this line (see > >> nix/libstore/build.cc:1859): > >>=20 > >> nixbld:x:%1%:%2%:Nix build user:/:/noshell > >>=20 > >> Isn=E2=80=99t it sufficient to have =E2=80=9C/=E2=80=9D as the home di= rectory? =20 > > > > It seems the build user noes not have sufficient permissions to create a > > directory there? The tests want to create "~/.john" (specifically > > "//.john"). =20 >=20 > And setting =E2=80=98HOME=E2=80=99 isn=E2=80=99t enough? (There are seve= ral packages where we > do that right before the =E2=80=98check=E2=80=99 phase.) The code accesses 'getpwuid(getuid())->pw_dir', so effectively ignores 'HOME'. >=20 > > From dd9795e5d63beaf06f2e3c76944e82a5564dc87d Mon Sep 17 00:00:00 2001 > > From: Eric Bavier > > Date: Mon, 11 Sep 2017 21:44:14 -0500 > > Subject: [PATCH] gnu: Add John the Ripper. > > > > * gnu/packages/password-utils.scm (john-the-ripper-jumbo): New variable= . =20 >=20 > Perfect, thanks! Pushed in eb28a777b5ad13e88d5932e9f97c976a079c94ac. `~Eric ------------=_1505359262-28147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Sep 2017 02:51:05 +0000 Received: from localhost ([127.0.0.1]:34458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drbHw-0007m3-84 for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:51:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drbHu-0007lq-8J for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:50:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drbHn-0003tI-ED for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:50:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,MIME_QP_LONG_LINE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50928) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drbHn-0003tD-A7 for submit@debbugs.gnu.org; Mon, 11 Sep 2017 22:50:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drbHl-0004D8-K2 for guix-patches@gnu.org; Mon, 11 Sep 2017 22:50:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drbHi-0003sE-Cp for guix-patches@gnu.org; Mon, 11 Sep 2017 22:50:49 -0400 Received: from mail.centurylink.net ([205.219.233.9]:14351 helo=smtp.centurylink.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drbHh-0003rs-Li for guix-patches@gnu.org; Mon, 11 Sep 2017 22:50:45 -0400 X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=VICfpJHX c=1 sm=1 tr=0 a=zUWAmhgg3MyP3vTnjmxjJw==:117 a=zUWAmhgg3MyP3vTnjmxjJw==:17 a=IkcTkHD0fZMA:10 a=aoDTYKXZAAAA:8 a=AHe2HyNqAAAA:8 a=inoG4m36AAAA:8 a=XkRKQH6RAAAA:8 a=NEAV23lmAAAA:8 a=F2Yf4bmT4uXYkOsiifQA:9 a=QEXdDO2ut3YA:10 a=3TMSKNOjTrc1VE3cRZ_u:22 a=cp-CLR_E5zKzXxmevFi1:22 a=_Qgj-RFg6mImvLaOgLPg:22 a=1gUyE30hU_ULiMxJiLUW:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZXJpY2JhdmllckBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=ericbavier@centurylink.net; auth=pass (LOGIN) Received: from [97.116.122.215] ([97.116.122.215:51434] helo=localhost.localdomain) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-GCM-SHA256) id D1/FF-21399-18B47B95; Mon, 11 Sep 2017 22:50:43 -0400 From: Eric Bavier To: guix-patches@gnu.org Subject: [PATCH] gnu: Add John the Ripper. Date: Mon, 11 Sep 2017 21:50:14 -0500 Message-Id: <20170912025014.27269-1-bavier@member.fsf.org> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Length: 6257 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Eric Bavier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) * gnu/packages/password-utils.scm (john-the-ripper-jumbo): New variable. --- gnu/packages/password-utils.scm | 96 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index bde1ea854..97e20e7eb 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2017 Cl=C3=A9ment Lassieur ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017 Jelle Licht +;;; Copyright =C2=A9 2017 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,10 +42,13 @@ #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) + #:use-module (gnu packages gnuzilla) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages kerberos) #:use-module (gnu packages linux) #:use-module (gnu packages man) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -480,3 +484,95 @@ use pass, the standard unix password manager, as the credential backend for your git repositories. This is achieved by explicitly defining mappings between hosts and entries in the password store.") (license license:lgpl3+))) + +(define-public john-the-ripper-jumbo + (let ((official-version "1.8.0") + (jumbo-version "1")) + (package + (name "john-the-ripper-jumbo") + (version (string-append official-version "-" jumbo-version)) + (source + (origin + (method url-fetch) + (uri (string-append "http://www.openwall.com/john/j/john-" + official-version "-jumbo-" jumbo-version ".tar.xz")) + (sha256 + (base32 + "08q92sfdvkz47rx6qjn7qv57cmlpy7i7rgddapq5384mb413vjds")) + (patches + (list (origin + (method url-fetch) + (uri (string-append "https://github.com/magnumripper/" + "JohnTheRipper/commit/" + "e2e868db3e153b3f959e119a51703d4afb99c624.patch")) + (file-name "john-the-ripper-jumbo-gcc5-inline.patch") + (sha256 + (base32 + "1shvcf1y2097115mxhzdkm64dr106a8zr6pqjqyh171q5ng5vfra"))) + (origin + (method url-fetch) + (uri (string-append "https://github.com/magnumripper/" + "JohnTheRipper/commit/" + "480e95b0e449863be3e1a5b0bc634a67df28b618.patch")) + (file-name "john-the-ripper-jumbo-non-x86.patch") + (sha256 + (base32 + "1ffd9dvhk0sb6ss8dv5yalh01lz30i7rilqilf2xv68gax2hyjqx"))))))) + (build-system gnu-build-system) + (inputs + `(("gmp" ,gmp) + ("krb5" ,mit-krb5) + ("libpcap" ,libpcap) + ("nss" ,nss) + ("openssl" ,openssl) + ("zlib" ,zlib))) + (arguments + `(#:configure-flags + (list (string-append + "CFLAGS=3D" + "-DJOHN_SYSTEMWIDE=3D1 " + "-DJOHN_SYSTEMWIDE_EXEC=3D'\"" %output "/libexec/john\"' " + "-DJOHN_SYSTEMWIDE_HOME=3D'\"" %output "/share/john\"'") + "--disable-native-tests" + "--disable-native-macro") + #:tests=3F #f ;tests assume /etc/passwd has a pw_dir for the build user + #:phases + (modify-phases %standard-phases + (add-before 'configure 'chdir-src + (lambda _ (chdir "src"))) + (replace 'install + (lambda _ + (let ((bindir (string-append %output "/bin")) + (docdir (string-append %output "/share/doc/john")) + (execdir (string-append %output "/libexec/john")) + (homedir (string-append %output "/share/john")) + (install-file-to (lambda (dir) + (lambda (f) (install-file f dir)))) + (symlink=3F (lambda (_ s) (eq=3F (stat:type s) 'symlink)))) + (with-directory-excursion "../run" + (for-each (install-file-to execdir) + (cons* "mailer" "benchmark-unify" + (find-files "." ".*\\.(py|rb|pl)"))) + (for-each (install-file-to homedir) + (append (find-files "." "(stats|dictionary.*)") + (find-files "." "(.*\\.chr|.*\\.lst)") + (find-files "." ".*\\.conf"))) + (for-each (install-file-to bindir) + '("tgtsnarf" "genmkvpwd" "mkvcalcproba" + "raw2dyna" "luks2john" "vncpcap2john" + "uaf2john" "calc_stat" "wpapcap2john" + "cprepair" "relbench" "SIPdump" "john")) + (for-each (lambda (f) ;install symlinked aliases + (symlink "john" + (string-append bindir "/" (basename f)))) + (find-files "." symlink=3F))) + (copy-recursively "../doc" docdir) + #t)))))) + (home-page "http://www.openwall.com/john/") + (synopsis "Password cracker") + (description "John the Ripper is a fast password cracker. Its primary +purpose is to detect weak Unix passwords. Besides several crypt(3) password +hash types most commonly found on various Unix systems, supported out of the +box are Windows LM hashes, plus lots of other hashes and ciphers. This is the +community-enhanced, \"jumbo\" version of John the Ripper.") + (license license:gpl2+)))) -- 2.14.1 ------------=_1505359262-28147-1--