summary refs log tree commit diff
path: root/pkgs/tools/security/cowpatty/default.nix
blob: 7d58de8553b37ccaee35284da2bb97799d505f70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, openssl, libpcap
}:

with stdenv.lib;

stdenv.mkDerivation rec {
  pname = "cowpatty";
  version = "4.6";

  buildInputs = [ openssl libpcap ];

  src = fetchurl {
    url = "http://www.willhackforsushi.com/code/cowpatty/${version}/${pname}-${version}.tgz";
    sha256 = "1hivh3bq2maxvqzwfw06fr7h8bbpvxzah6mpibh3wb85wl9w2gyd";
  };

  installPhase = "make DESTDIR=$out BINDIR=/bin install";

  meta = {
    description = "Offline dictionary attack against WPA/WPA2 networks";
    license = licenses.gpl2;
    homepage = "https://www.willhackforsushi.com/?page_id=50";
    maintainers = with maintainers; [ nico202 ];
    platforms = platforms.linux;
  };
}