2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
|
2021-02-05 17:12:51 +00:00
|
|
|
, iw, ethtool, pciutils, libnl, pkg-config, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoreconfHook, usbutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "aircrack-ng-1.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.aircrack-ng.org/${name}.tar.gz";
|
|
|
|
sha256 = "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i lib/osdep/linux.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2021-01-15 22:18:51 +00:00
|
|
|
wrapProgram $out/bin/airmon-ng --prefix PATH : ${lib.makeBinPath [
|
2020-04-24 23:36:52 +00:00
|
|
|
ethtool iw pciutils usbutils
|
|
|
|
]}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Wireless encryption cracking tools";
|
|
|
|
homepage = "http://www.aircrack-ng.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
2021-03-09 03:18:52 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|