2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "nuclei-templates";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "10.0.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = "nuclei-templates";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-FGhq1KgHvHkyBXAWdG3OBuNJHj+epLeRw+T241bUSeY=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/nuclei-templates
|
|
|
|
cp -R cloud code dast dns file headless helpers http javascript network profiles ssl \
|
|
|
|
$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;
|
|
|
|
};
|
|
|
|
}
|