about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/kr/krbjack/package.nix
blob: 59a58f289b005efc32d5bc83429f4df679cf98fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "krbjack";
  version = "0-unstable-2024-02-08";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "almandin";
    repo = "krbjack";
    rev = "0abaf7039c11fe735120c44a9420a311b42f7551";
    hash = "sha256-rvK0I8WlXqJtau9f+6ximfzYCjX21dPIyDN56IMI0gE=";
  };

  pythonRelaxDeps = [
    "impacket"
  ];

  nativeBuildInputs = with python3.pkgs; [
    poetry-core
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = with python3.pkgs; [
    colorama
    dnspython
    impacket
    scapy
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "krbjack"
  ];

  meta = with lib; {
    description = "Kerberos AP-REQ hijacking tool with DNS unsecure updates abuse";
    homepage = "https://github.com/almandin/krbjack";
    license = licenses.beerware;
    maintainers = with maintainers; [ fab ];
    mainProgram = "krbjack";
  };
}