2017-11-08 16:42:41 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libpcap, pixiewps, makeWrapper }:
|
2016-10-25 20:49:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-08 16:42:41 +00:00
|
|
|
version = "1.6.3";
|
2016-10-25 20:49:08 +01:00
|
|
|
name = "reaver-wps-t6x-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "t6x";
|
|
|
|
repo = "reaver-wps-fork-t6x";
|
|
|
|
rev = "v${version}";
|
2017-11-08 16:42:41 +00:00
|
|
|
sha256 = "1bccwp67q1q0h5m38gqxn9imq5rb75jbmv7fjr2n38v10jcga2pb";
|
2016-10-25 20:49:08 +01:00
|
|
|
};
|
|
|
|
|
2017-05-07 19:01:36 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-11-08 16:42:41 +00:00
|
|
|
buildInputs = [ libpcap pixiewps ];
|
2016-10-25 20:49:08 +01:00
|
|
|
|
2017-11-08 16:42:41 +00:00
|
|
|
preConfigure = "cd src";
|
2016-10-25 20:49:08 +01:00
|
|
|
|
2017-05-07 19:01:36 +01:00
|
|
|
installPhase = ''
|
2017-11-08 16:42:41 +00:00
|
|
|
mkdir -p $out/bin
|
2017-05-07 19:01:36 +01:00
|
|
|
cp reaver wash $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-10-25 20:49:08 +01:00
|
|
|
description = "Online and offline brute force attack against WPS";
|
|
|
|
homepage = https://github.com/t6x/reaver-wps-fork-t6x;
|
2017-05-07 19:01:36 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ nico202 volth ];
|
2016-10-25 20:49:08 +01:00
|
|
|
};
|
|
|
|
}
|