2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libnl, libpcap, pkg-config }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "mdk4";
|
|
|
|
version = "unstable-2021-04-27";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aircrack-ng";
|
|
|
|
repo = "mdk4";
|
|
|
|
rev = "e94422ce8e4b8dcd132d658345814df7e63bfa41";
|
|
|
|
sha256 = "sha256-pZS7HQBKlSZJGqoZlSyBUzXC3osswcB56cBzgm+Sbwg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man
|
|
|
|
|
|
|
|
substituteInPlace src/Makefile --replace '/usr/local/src/mdk4' '$out'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ libnl libpcap ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "SBINDIR=$(PREFIX)/bin" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool that injects data into wireless networks";
|
2021-05-28 09:39:13 +00:00
|
|
|
homepage = "https://github.com/aircrack-ng/mdk4";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ moni ];
|
2021-05-28 09:39:13 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "mdk4";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
}
|