1{ lib
2, fetchFromGitHub
3, python3
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "logmap";
8 version = "unstable-2021-12-15";
9 format = "other";
10
11 src = fetchFromGitHub {
12 owner = "zhzyker";
13 repo = pname;
14 rev = "5040707b4ae260830072de93ccd6a23615073abf";
15 sha256 = "sha256-LOGjK5l/gaKObWbC9vaLruE8DdDsabztnEW/TjvCdtE=";
16 };
17
18 propagatedBuildInputs = with python3.pkgs; [
19 requests
20 ];
21
22 installPhase = ''
23 runHook preInstall
24 install -vD ${pname}.py $out/bin/${pname}
25 runHook postInstall
26 '';
27
28 meta = with lib; {
29 description = "Tools for fuzzing Log4j2 jndi injection";
30 homepage = "https://github.com/zhzyker/logmap";
31 license = licenses.gpl3Only;
32 maintainers = with maintainers; [ fab ];
33 };
34}