2018-01-03 17:30:15 -08:00
|
|
|
{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
|
2018-05-16 06:02:01 -07:00
|
|
|
, iw, ethtool, pciutils, libnl, pkgconfig, makeWrapper
|
|
|
|
, autoreconfHook }:
|
2009-02-01 13:21:12 -08:00
|
|
|
|
2011-02-14 14:40:51 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2018-12-16 07:01:47 -08:00
|
|
|
name = "aircrack-ng-1.5.2";
|
2009-02-01 13:21:12 -08:00
|
|
|
|
2013-06-02 10:54:20 -07:00
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://download.aircrack-ng.org/${name}.tar.gz";
|
2018-12-16 07:01:47 -08:00
|
|
|
sha256 = "0hc2x17bxk2n00z8jj5jfwq3z41681fd19n018724il0cpkjyncy";
|
2009-02-01 13:21:12 -08:00
|
|
|
};
|
|
|
|
|
2018-05-16 06:02:01 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper autoreconfHook ];
|
2018-01-03 17:30:15 -08:00
|
|
|
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
|
2009-02-01 13:21:12 -08:00
|
|
|
|
2009-02-02 13:57:18 -08:00
|
|
|
patchPhase = ''
|
2018-10-25 05:08:28 -07:00
|
|
|
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/aircrack-osdep/linux.c
|
2018-01-03 17:30:15 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/airmon-ng --prefix PATH : ${stdenv.lib.makeBinPath [
|
|
|
|
ethtool iw pciutils
|
|
|
|
]}
|
|
|
|
'';
|
2009-02-01 13:21:12 -08:00
|
|
|
|
2013-06-02 11:37:14 -07:00
|
|
|
meta = with stdenv.lib; {
|
2016-01-13 17:48:15 -08:00
|
|
|
description = "Wireless encryption cracking tools";
|
2009-02-01 13:21:12 -08:00
|
|
|
homepage = http://www.aircrack-ng.org/;
|
2016-01-13 17:48:15 -08:00
|
|
|
license = licenses.gpl2Plus;
|
2019-02-22 07:14:13 -08:00
|
|
|
maintainers = with maintainers; [ domenkozar garbas ];
|
2013-06-02 15:31:33 -07:00
|
|
|
platforms = platforms.linux;
|
2009-02-01 13:21:12 -08:00
|
|
|
};
|
|
|
|
}
|