about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-04-09 01:19:18 +0800
committerGitHub <noreply@github.com>2024-04-09 01:19:18 +0800
commit249a78b2e7fc321fdcb5a006ba6986a3bbf4a2d6 (patch)
tree926d92b7400bfdb7ebb5920af0ddecb382560d6d /pkgs/by-name
parent179fb3425c35eecbf7ea2237b145ecaafa89f2f1 (diff)
parent7583ec12b017ed207a9410f83b3b9a49b80c5a63 (diff)
Merge pull request #300555 from Tochiaha/dhcpig
dhcpig: init at 1.6
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/dh/dhcpig/package.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/dh/dhcpig/package.nix b/pkgs/by-name/dh/dhcpig/package.nix
new file mode 100644
index 0000000000000..679a91e4b0c95
--- /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";
+  };
+}