2021-03-20 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zgrab2";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "unstable-2023-03-23";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zmap";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "911c86f13080ceae98f8d63d1ae0e85c4a8f7f61";
|
|
|
|
hash = "sha256-VOWkBM/SziY3jiIaYYWq+LRzG4vKitiscqdIDfRUkYY=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-Q3FCqvh4vn64QXqcePhVWTyIHJarI6I4YonH3X/7RhI=";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [
|
|
|
|
# Without this, we get error messages like:
|
|
|
|
# vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
|
|
|
|
# The patch was generated by changing "go 1.12" to "go 1.17" and executing `go mod tidy -compat=1.17`.
|
|
|
|
./fix-go-version-error.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/zgrab2"
|
|
|
|
];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Web application scanner";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "zgrab2";
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://github.com/zmap/zgrab2";
|
|
|
|
license = with licenses; [ asl20 isc ];
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ fab juliusrickert ];
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|