2021-03-16 21:45:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2020-12-27 11:27:21 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nuclei";
|
2021-07-12 20:34:08 +01:00
|
|
|
version = "2.4.0";
|
2020-12-27 11:27:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
2021-03-16 21:45:29 +00:00
|
|
|
repo = pname;
|
2020-12-27 11:27:21 +00:00
|
|
|
rev = "v${version}";
|
2021-07-12 20:34:08 +01:00
|
|
|
sha256 = "sha256-nmojx3xX5MZFfd1od2Aq3+dWmHCFgR7+q5C2FIUzq7A=";
|
2020-12-27 11:27:21 +00:00
|
|
|
};
|
|
|
|
|
2021-07-12 20:34:08 +01:00
|
|
|
vendorSha256 = "sha256-Ok2VUwtqhlp6NwLbQX9KAaGiZtzmfWG0LcqtBBDk22A=";
|
2020-12-27 11:27:21 +00:00
|
|
|
|
2021-03-29 21:55:39 +01:00
|
|
|
modRoot = "./v2";
|
|
|
|
subPackages = [
|
|
|
|
"cmd/nuclei/"
|
|
|
|
];
|
2020-12-27 11:27:21 +00:00
|
|
|
|
2021-03-16 21:45:29 +00:00
|
|
|
# Test files are not part of the release tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-27 11:27:21 +00:00
|
|
|
description = "Tool for configurable targeted scanning";
|
|
|
|
longDescription = ''
|
|
|
|
Nuclei is used to send requests across targets based on a template
|
|
|
|
leading to zero false positives and providing effective scanning
|
|
|
|
for known paths. Main use cases for nuclei are during initial
|
|
|
|
reconnaissance phase to quickly check for low hanging fruits or
|
|
|
|
CVEs across targets that are known and easily detectable.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/projectdiscovery/nuclei";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|