mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
38 lines
758 B
Nix
38 lines
758 B
Nix
{ 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";
|
|
};
|
|
}
|