2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
|
2021-01-17 04:51:22 +01:00
|
|
|
, iw, ethtool, pciutils, libnl, pkg-config, 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 {
|
2021-08-01 22:48:53 +02:00
|
|
|
pname = "aircrack-ng";
|
|
|
|
version = "1.6";
|
2009-02-01 22:21:12 +01:00
|
|
|
|
2013-06-02 19:54:20 +02:00
|
|
|
src = fetchurl {
|
2021-08-01 22:48:53 +02:00
|
|
|
url = "https://download.aircrack-ng.org/aircrack-ng-${version}.tar.gz";
|
2020-03-15 22:09:39 +01:00
|
|
|
sha256 = "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg";
|
2009-02-01 22:21:12 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config 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 = ''
|
2020-03-15 22:09:39 +01:00
|
|
|
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i lib/osdep/linux.c
|
2018-01-04 02:30:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2021-01-15 10:19:50 +01:00
|
|
|
wrapProgram $out/bin/airmon-ng --prefix PATH : ${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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-01-14 02:48:15 +01:00
|
|
|
description = "Wireless encryption cracking tools";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.aircrack-ng.org/";
|
2016-01-14 02:48:15 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2021-03-03 11:50:26 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2013-06-03 00:31:33 +02:00
|
|
|
platforms = platforms.linux;
|
2009-02-01 22:21:12 +01:00
|
|
|
};
|
|
|
|
}
|