Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
pname = "log4j-scan";
|
|
version = "unstable-2021-12-18";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fullhunt";
|
|
repo = "log4j-scan";
|
|
rev = "070fbd00f0945645bd5e0daa199a554ef3884b95";
|
|
sha256 = "sha256-ORSc4KHyAMjuA7QHReDh6SYY5yZRunBBN1+lkCayqL4=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pycryptodome
|
|
requests
|
|
termcolor
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace log4j-scan.py \
|
|
--replace "headers.txt" "../share/headers.txt"
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -vD log4j-scan.py $out/bin/log4j-scan
|
|
install -vD headers.txt headers-large.txt -t $out/share
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Scanner for finding hosts which are vulnerable for log4j";
|
|
mainProgram = "log4j-scan";
|
|
homepage = "https://github.com/fullhunt/log4j-scan";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|