Skip to content

Commit

Permalink
dhcpig: init at 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochiaha committed Apr 3, 2024
1 parent 2be8f78 commit e45d21d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/by-name/dh/dhcpig/package.nix
Original file line number Diff line number Diff line change
@@ -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 = ''
instal -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";
};
}

0 comments on commit e45d21d

Please sign in to comment.