2015-10-07 23:03:07 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openssl, libidn, ncurses, pcre, libssh, postgresql92 }:
|
2014-09-21 01:50:43 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-13 15:58:07 +02:00
|
|
|
name = "thc-hydra-${version}";
|
|
|
|
version = "7.5";
|
2014-09-21 01:50:43 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-13 15:58:07 +02:00
|
|
|
url = "http://www.thc.org/releases/hydra-${version}.tar.gz";
|
2014-09-21 01:50:43 +02:00
|
|
|
sha256 = "1dhavbn2mcm6c2c1qw29ipbpmczax3vhhlxzwn49c8cq471yg4vj";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2015-10-14 05:47:54 +02:00
|
|
|
substituteInPlace configure --replace "\$LIBDIRS" "${openssl.out}/lib ${pcre.out}/lib ${libssh.out}/lib ${postgresql92.lib}/lib"
|
2015-10-07 23:03:07 +02:00
|
|
|
substituteInPlace configure --replace "\$INCDIRS" "${openssl.dev}/include ${pcre.dev}/include ${libssh.dev}/include ${postgresql92}/include"
|
2014-09-21 01:50:43 +02:00
|
|
|
'';
|
|
|
|
|
2015-10-07 23:03:07 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-09-21 01:50:43 +02:00
|
|
|
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];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.unix;
|
2014-09-21 01:50:43 +02:00
|
|
|
};
|
|
|
|
}
|