diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/cowpatty')
-rw-r--r-- | nixpkgs/pkgs/tools/security/cowpatty/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/cowpatty/default.nix b/nixpkgs/pkgs/tools/security/cowpatty/default.nix new file mode 100644 index 000000000000..934b31a35da6 --- /dev/null +++ b/nixpkgs/pkgs/tools/security/cowpatty/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, clang +, fetchFromGitHub +, installShellFiles +, openssl +, libpcap +}: + +stdenv.mkDerivation rec { + pname = "cowpatty"; + version = "4.8"; + + src = fetchFromGitHub { + owner = "joswr1ght"; + repo = pname; + rev = version; + sha256 = "0fvwwghhd7wsx0lw2dj9rdsjnirawnq3c6silzvhi0yfnzn5fs0s"; + }; + + nativeBuildInputs = [ + clang + installShellFiles + ]; + + buildInputs = [ + openssl + libpcap + ]; + + makeFlags = [ + "DESTDIR=$(out)" + "BINDIR=/bin" + ]; + + postInstall = '' + installManPage cowpatty.1 + installManPage genpmk.1 + ''; + + meta = with lib; { + description = "Offline dictionary attack against WPA/WPA2 networks"; + homepage = "https://github.com/joswr1ght/cowpatty"; + license = licenses.bsd3; + maintainers = with maintainers; [ nico202 fab ]; + platforms = platforms.linux; + }; +} |