about summary refs log tree commit diff
path: root/pkgs/tools/networking/reaver-wps/default.nix
blob: afce95fbd449f3ed06de98f046eaa4f5528458e2 (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, libpcap, sqlite }:

stdenv.mkDerivation rec {
  name = "reaver-wps-1.4";

  src = fetchurl {
    url = http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz;
    sha256 = "0bdjai4p8xbsw8zdkkk43rgsif79x0nyx4djpyv0mzh59850blxd";
  };

  buildInputs = [ libpcap sqlite ];

  prePatch = ''
    cd src
  '';

  preInstall = ''
    mkdir -p $out/bin
  '';

  meta = {
    description = "Brute force attack against Wifi Protected Setup";
    homepage = http://code.google.com/p/reaver-wps;
    license = stdenv.lib.licenses.gpl2Plus;
  };
}