summary refs log tree commit diff
path: root/pkgs/tools/security/thc-hydra/default.nix
blob: 71f7d25155f335fe52cb9946f25a3565611017e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
  };
}