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 {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "aircrack-ng";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "https://download.aircrack-ng.org/aircrack-ng-${version}.tar.gz";
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "1hsq1gwmafka4bahs6rc8p98yi542h9a502h64bjlygpr3ih99q5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|