cowpatty: 4.6 -> 4.8

This commit is contained in:
Fabian Affolter 2021-08-31 22:58:52 +02:00
parent d874a52015
commit f452146df8

View file

@ -1,26 +1,48 @@
{ lib, stdenv, fetchurl, openssl, libpcap { lib
, stdenv
, clang
, fetchFromGitHub
, installShellFiles
, openssl
, libpcap
}: }:
with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cowpatty"; pname = "cowpatty";
version = "4.6"; version = "4.8";
buildInputs = [ openssl libpcap ]; src = fetchFromGitHub {
owner = "joswr1ght";
src = fetchurl { repo = pname;
url = "http://www.willhackforsushi.com/code/cowpatty/${version}/${pname}-${version}.tgz"; rev = version;
sha256 = "1hivh3bq2maxvqzwfw06fr7h8bbpvxzah6mpibh3wb85wl9w2gyd"; sha256 = "0fvwwghhd7wsx0lw2dj9rdsjnirawnq3c6silzvhi0yfnzn5fs0s";
}; };
installPhase = "make DESTDIR=$out BINDIR=/bin install"; nativeBuildInputs = [
clang
installShellFiles
];
meta = { 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"; description = "Offline dictionary attack against WPA/WPA2 networks";
license = licenses.gpl2; homepage = "https://github.com/joswr1ght/cowpatty";
homepage = "https://www.willhackforsushi.com/?page_id=50"; license = licenses.bsd3;
maintainers = with maintainers; [ nico202 ]; maintainers = with maintainers; [ nico202 fab ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }