@@ -0,0 +1,50 @@
1+{ lib
2+, fetchFromGitHub
3+, python3
4+}:
5+
6+python3.pkgs.buildPythonApplication rec {
7+ pname = "xcat";
8+ version = "1.2.0";
9+ disabled = python3.pythonOlder "3.7";
10+ format = "pyproject";
11+
12+ src = fetchFromGitHub {
13+ owner = "orf";
14+ repo = pname;
15+ rev = "v${version}";
16+ sha256 = "01r5998gdvqjdrahpk0ci27lx9yghbddlanqcspr3qp5y5930i0s";
17+ };
18+
19+ nativeBuildInputs = with python3.pkgs; [
20+ poetry-core
21+ ];
22+
23+ propagatedBuildInputs = with python3.pkgs; [
24+ aiodns
25+ aiohttp
26+ appdirs
27+ cchardet
28+ click
29+ colorama
30+ prompt_toolkit
31+ xpath-expressions
32+ ];
33+
34+ # Project has no tests
35+ doCheck = false;
36+ pythonImportsCheck = [ "xcat" ];
37+
38+ meta = with lib; {
39+ description = "XPath injection tool";
40+ longDescription = ''
41+ xcat is an advanced tool for exploiting XPath injection vulnerabilities,
42+ featuring a comprehensive set of features to read the entire file being
43+ queried as well as other files on the filesystem, environment variables
44+ and directories.
45+ '';
46+ homepage = "https://github.com/orf/xcat";
47+ license = with licenses; [ mit ];
48+ maintainers = with maintainers; [ fab ];
49+ };
50+}