From 7583ec12b017ed207a9410f83b3b9a49b80c5a63 Mon Sep 17 00:00:00 2001 From: Tochiaha Date: Wed, 3 Apr 2024 20:54:02 +0100 Subject: [PATCH] dhcpig: init at 1.6 --- pkgs/by-name/dh/dhcpig/package.nix | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/dh/dhcpig/package.nix diff --git a/pkgs/by-name/dh/dhcpig/package.nix b/pkgs/by-name/dh/dhcpig/package.nix new file mode 100644 index 000000000000..679a91e4b0c9 --- /dev/null +++ b/pkgs/by-name/dh/dhcpig/package.nix @@ -0,0 +1,37 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "dhcpig"; + version = "1.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "kamorin"; + repo = "DHCPig"; + rev = "refs/tags/${version}"; + hash = "sha256-MquLChDuJe3DdkxxKV4W0o49IIt7Am+yuhdOqUqexS8="; + }; + + build-system = with python3.pkgs; [ + setuptools + ]; + + dependencies = with python3.pkgs; [ + scapy + ]; + + installPhase = '' + install -Dm755 pig.py $out/bin/dhcpig + ''; + + meta = with lib; { + description = "Tool to perform advanced DHCP exhaustion attack"; + homepage = "https://github.com/kamorin/DHCPig"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ tochiaha ]; + mainProgram = "dhcpig"; + }; +}