2018-11-17 20:10:52 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, opencl-headers, ocl-icd, xxHash }:
|
2014-03-31 16:56:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-28 09:51:43 +01:00
|
|
|
pname = "hashcat";
|
|
|
|
version = "5.1.0";
|
2014-03-31 16:56:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-01 15:05:10 +00:00
|
|
|
url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
|
2019-05-28 09:51:43 +01:00
|
|
|
sha256 = "0f73y4cg8c7a6q7x34qvpfi4g3lw6j9bnn0a13g43aqyiskflfr8";
|
2014-03-31 16:56:02 +01:00
|
|
|
};
|
|
|
|
|
2017-11-01 15:05:10 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-11-17 20:10:52 +00:00
|
|
|
buildInputs = [ opencl-headers xxHash ];
|
2014-03-31 16:56:02 +01:00
|
|
|
|
2017-11-01 15:05:10 +00:00
|
|
|
makeFlags = [
|
2019-01-08 02:51:22 +00:00
|
|
|
"PREFIX=${placeholder "out"}"
|
2017-11-01 15:05:10 +00:00
|
|
|
"COMPTIME=1337"
|
|
|
|
"VERSION_TAG=${version}"
|
2019-05-28 09:51:43 +01:00
|
|
|
"USE_SYSTEM_OPENCL=1"
|
|
|
|
"USE_SYSTEM_XXHASH=1"
|
2017-11-01 15:05:10 +00:00
|
|
|
];
|
2014-03-31 16:56:02 +01:00
|
|
|
|
2017-11-01 15:05:10 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${ocl-icd}/lib
|
2014-03-31 16:56:02 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-01 15:05:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-03-31 16:56:02 +01:00
|
|
|
description = "Fast password cracker";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://hashcat.net/hashcat/";
|
2017-11-01 15:05:10 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kierdavis zimbatm ];
|
2014-03-31 16:56:02 +01:00
|
|
|
};
|
|
|
|
}
|