From 1a87e651e9ea964b6fa1428619be349d3a1dacd6 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Sun, 21 Sep 2014 01:50:43 +0200 Subject: [PATCH] add thy-hydra: very fast network logon cracker which support many different services --- pkgs/tools/security/thc-hydra/default.nix | 27 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/security/thc-hydra/default.nix diff --git a/pkgs/tools/security/thc-hydra/default.nix b/pkgs/tools/security/thc-hydra/default.nix new file mode 100644 index 000000000000..71f7d25155f3 --- /dev/null +++ b/pkgs/tools/security/thc-hydra/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, openssl, libidn, ncurses, pcre, libssh }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "hydra-7.5"; + + src = fetchurl { + url = "http://www.thc.org/releases/${name}.tar.gz"; + sha256 = "1dhavbn2mcm6c2c1qw29ipbpmczax3vhhlxzwn49c8cq471yg4vj"; + }; + + preConfigure = '' + substituteInPlace configure --replace "\$LIBDIRS" "${openssl}/lib ${pcre}/lib ${libssh}/lib" + substituteInPlace configure --replace "\$INCDIRS" "${openssl}/include ${pcre}/include ${libssh}/include" + ''; + + buildInputs = [ openssl libidn ncurses pcre libssh ]; + + meta = { + description = "A very fast network logon cracker which support many different services"; + license = licenses.agpl3; + homepage = https://www.thc.org/thc-hydra/; + maintainers = with maintainers; [offline]; + platforms = with platforms; unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13289728f7ae..958de63abcc0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2311,6 +2311,8 @@ let texstudio = callPackage ../applications/editors/texstudio { }; + thc-hydra = callPackage ../tools/security/thc-hydra { }; + tiled-qt = callPackage ../applications/editors/tiled-qt { qt = qt4; }; tinc = callPackage ../tools/networking/tinc { };