summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/dn/dnschef/package.nix
blob: 918b1afc6dcb9dda1637d0e8a703c3b0299ad1e4 (plain)
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
{
  python3Packages,
  fetchFromGitHub,
  lib,
}:

python3Packages.buildPythonApplication {
  pname = "dnschef";
  version = "0.4";

  src = fetchFromGitHub {
    owner = "iphelix";
    repo = "dnschef";
    rev = "a395411ae1f5c262d0b80d06a45a445f696f3243";
    hash = "sha256-OMy89YAtAHplLm/51kzXIlz2BiGJjSsY9h/+wg2Hg1I=";
  };

  pyproject = false;
  installPhase = ''
    install -D ./dnschef.py $out/bin/dnschef
  '';

  dependencies = [ python3Packages.dnslib ];

  meta = {
    homepage = "https://github.com/iphelix/dnschef";
    description = "Highly configurable DNS proxy for penetration testers and malware analysts";
    mainProgram = "dnschef";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.gfrascadorio ];
  };
}