2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-06-15 15:56:04 +00:00
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, opencl-headers
|
|
|
|
, ocl-icd
|
|
|
|
, xxHash
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hashcat";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "6.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "104z63m7lqbb0sdrxhf9yi15l4a9zwf9m6zs9dbb3gf0nfxl1h9r";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ opencl-headers xxHash ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"COMPTIME=1337"
|
|
|
|
"VERSION_TAG=${version}"
|
|
|
|
"USE_SYSTEM_OPENCL=1"
|
|
|
|
"USE_SYSTEM_XXHASH=1"
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${ocl-icd}/lib
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast password cracker";
|
|
|
|
homepage = "https://hashcat.net/hashcat/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kierdavis zimbatm ];
|
|
|
|
};
|
|
|
|
}
|