mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
Merge pull request #150731 from fabaff/log4shell-detector
log4shell-detector: init at unstable-2021-12-14
This commit is contained in:
commit
a1b519b496
35
pkgs/tools/security/log4shell-detector/default.nix
Normal file
35
pkgs/tools/security/log4shell-detector/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "log4shell-detector";
|
||||
version = "unstable-2021-12-14";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Neo23x0";
|
||||
repo = pname;
|
||||
rev = "7bc368f376b8d95282193eac6ea3970c363577d5";
|
||||
sha256 = "sha256-MLKd2moMLwAZXqZ5I/pIYzV0PqVwSpze3gNM0IioI1E=";
|
||||
};
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -vD ${pname}.py $out/bin/${pname}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Detector for Log4Shell exploitation attempts";
|
||||
homepage = "https://github.com/Neo23x0/log4shell-detector";
|
||||
# https://github.com/Neo23x0/log4shell-detector/issues/24
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -7467,6 +7467,8 @@ with pkgs;
|
||||
|
||||
log4jcheck = callPackage ../tools/security/log4jcheck { };
|
||||
|
||||
log4shell-detector = callPackage ../tools/security/log4shell-detector { };
|
||||
|
||||
logcheck = callPackage ../tools/system/logcheck { };
|
||||
|
||||
logmein-hamachi = callPackage ../tools/networking/logmein-hamachi { };
|
||||
|
Loading…
Reference in New Issue
Block a user