From 42cbdb8e7afaad8597c9a5215d3004c052b7ff7e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 31 Mar 2021 20:14:08 +0200 Subject: [PATCH] xcat: init at 1.2.0 --- pkgs/tools/security/xcat/default.nix | 50 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 52 insertions(+) create mode 100644 pkgs/tools/security/xcat/default.nix diff --git a/pkgs/tools/security/xcat/default.nix b/pkgs/tools/security/xcat/default.nix new file mode 100644 index 000000000000..516585f89126 --- /dev/null +++ b/pkgs/tools/security/xcat/default.nix @@ -0,0 +1,50 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "xcat"; + version = "1.2.0"; + disabled = python3.pythonOlder "3.7"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "orf"; + repo = pname; + rev = "v${version}"; + sha256 = "01r5998gdvqjdrahpk0ci27lx9yghbddlanqcspr3qp5y5930i0s"; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + aiodns + aiohttp + appdirs + cchardet + click + colorama + prompt_toolkit + xpath-expressions + ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "xcat" ]; + + meta = with lib; { + description = "XPath injection tool"; + longDescription = '' + xcat is an advanced tool for exploiting XPath injection vulnerabilities, + featuring a comprehensive set of features to read the entire file being + queried as well as other files on the filesystem, environment variables + and directories. + ''; + homepage = "https://github.com/orf/xcat"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b22227ce463..83df455e2337 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26515,6 +26515,8 @@ in xcape = callPackage ../tools/X11/xcape { }; + xcat = callPackage ../tools/security/xcat { }; + xchainkeys = callPackage ../tools/X11/xchainkeys { }; xchm = callPackage ../applications/misc/xchm { };