2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dalfox";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.9.2";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hahwul";
|
2024-02-07 01:22:34 +00:00
|
|
|
repo = "dalfox";
|
2023-03-30 22:05:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-sKW6UYSPgXkZbLiOeYru/XpG/Cpvvhwos6Z5J/WxjXo=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
vendorHash = "sha256-0eNaH82iCmxaie+nA9qxEWb8Uq6LaEQoU9wRFJ+GFv0=";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
];
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for analysing parameter and XSS scanning";
|
|
|
|
homepage = "https://github.com/hahwul/dalfox";
|
2023-03-30 22:05:00 +00:00
|
|
|
changelog = "https://github.com/hahwul/dalfox/releases/tag/v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "dalfox";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|