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