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