summary refs log tree commit diff
path: root/pkgs/tools/security/john
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-09-04 01:30:04 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-09-04 01:30:04 +0200
commit98778c4c2779d9e3c52003358a1978eb0bf0b2aa (patch)
tree6713d8fdd94399a0539a3bfe8325f29ce77af71d /pkgs/tools/security/john
parente510a2769699342251704a7c4da09cfc933af90b (diff)
downloadnixpkgs-98778c4c2779d9e3c52003358a1978eb0bf0b2aa.tar
nixpkgs-98778c4c2779d9e3c52003358a1978eb0bf0b2aa.tar.gz
nixpkgs-98778c4c2779d9e3c52003358a1978eb0bf0b2aa.tar.bz2
nixpkgs-98778c4c2779d9e3c52003358a1978eb0bf0b2aa.tar.lz
nixpkgs-98778c4c2779d9e3c52003358a1978eb0bf0b2aa.tar.xz
nixpkgs-98778c4c2779d9e3c52003358a1978eb0bf0b2aa.tar.zst
nixpkgs-98778c4c2779d9e3c52003358a1978eb0bf0b2aa.zip
Add JohnTheRipper, a fast password cracker
Diffstat (limited to 'pkgs/tools/security/john')
-rw-r--r--pkgs/tools/security/john/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/security/john/default.nix b/pkgs/tools/security/john/default.nix
new file mode 100644
index 00000000000..97f67dfbd71
--- /dev/null
+++ b/pkgs/tools/security/john/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchgit, openssl, nss, nspr, krb5, gmp, zlib, libpcap, re2 }:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+  name = "JohnTheRipper-${version}";
+  version = "8a3e3c1d";
+  buildInputs = [ openssl nss nspr krb5 gmp zlib libpcap re2 ];
+  preConfigure = ''cd src'';
+  installPhase = ''
+    ensureDir $out/share/john/
+    ensureDir $out/bin
+    cp -R ../run/* $out/share/john
+    ln -s $out/share/john/john $out/bin/john
+  '';
+  src = fetchgit {
+    url = https://github.com/magnumripper/JohnTheRipper.git;
+    rev = "93f061bc41652c94ae049b52572aac709d18aa4c";
+    sha256 = "1rnfi09830n34jcqaxmsam54p4zsq9a49ic2ljh44lahcipympvy";
+  };
+  meta = {
+    description = "John the Ripper password cracker";
+    license = licenses.gpl2;
+    homepage = https://github.com/magnumripper/JohnTheRipper/;
+    maintainers = with maintainers; [offline];
+    platforms = with platforms; unix;
+  };
+}