2024-04-12 06:53:20 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
2024-03-31 11:29:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "nuclei-templates";
|
2024-11-21 08:29:23 +00:00
|
|
|
version = "10.0.4";
|
2024-03-31 11:29:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = "nuclei-templates";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-11-21 08:29:23 +00:00
|
|
|
hash = "sha256-1kz48njrg5wumrMb2bYs1IYziYKDLkxM3G8TKfjtv2A=";
|
2024-03-31 11:29:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/nuclei-templates
|
2024-04-11 21:50:41 +00:00
|
|
|
cp -R cloud code dast dns file headless helpers http javascript network profiles ssl \
|
2024-03-31 11:29:20 +00:00
|
|
|
$out/share/nuclei-templates/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Templates for the nuclei engine to find security vulnerabilities";
|
|
|
|
homepage = "https://github.com/projectdiscovery/nuclei-templates";
|
|
|
|
changelog = "https://github.com/projectdiscovery/nuclei-templates/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|