2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, python3, wirelesstools
|
2020-03-30 17:09:05 +01:00
|
|
|
, aircrack-ng, wireshark-cli, reaverwps-t6x, cowpatty, hashcat, hcxtools
|
2022-01-02 03:14:34 +00:00
|
|
|
, hcxdumptool, which, bully, pixiewps }:
|
2019-10-26 10:53:36 +01:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-02-06 22:34:48 +00:00
|
|
|
version = "2.6.0";
|
2019-10-26 10:53:36 +01:00
|
|
|
pname = "wifite2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-30 17:09:05 +01:00
|
|
|
owner = "kimocoder";
|
2019-10-26 10:53:36 +01:00
|
|
|
repo = "wifite2";
|
|
|
|
rev = version;
|
2022-02-06 22:34:48 +00:00
|
|
|
sha256 = "sha256-q8aECegyIoAtYFsm8QEr8OnX+GTqjEeWfYQyESk27SA=";
|
2019-10-26 10:53:36 +01:00
|
|
|
};
|
|
|
|
|
2020-03-30 17:09:05 +01:00
|
|
|
patches = [
|
2022-01-02 03:14:34 +00:00
|
|
|
(fetchpatch {
|
2022-02-06 22:34:48 +00:00
|
|
|
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.5.8-2/debian/patches/Disable-aircrack-failing-test.patch";
|
|
|
|
sha256 = "1kj2m973l067fdg9dj61vbjf4ym9x1m9kn0q8ci9r6bb30yg6sv2";
|
2022-01-02 03:14:34 +00:00
|
|
|
})
|
2020-03-30 17:09:05 +01:00
|
|
|
(fetchpatch {
|
2022-02-06 22:34:48 +00:00
|
|
|
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.5.8-2/debian/patches/Disable-two-failing-tests.patch";
|
|
|
|
sha256 = "15vas7zvpdk2lr1pzv8hli6jhdib0dibp7cmikiai53idjxay56z";
|
2020-03-30 17:09:05 +01:00
|
|
|
})
|
2022-01-02 03:14:34 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.5.8-2/debian/patches/fix-for-new-which.patch";
|
|
|
|
sha256 = "0p6sa09qpq9qarkjrai2ksx9nz2v2hs6dk1y01qnfbsmc4hhm30g";
|
|
|
|
})
|
2020-03-30 17:09:05 +01:00
|
|
|
];
|
|
|
|
|
2019-10-26 10:53:36 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aircrack-ng
|
|
|
|
wireshark-cli
|
|
|
|
reaverwps-t6x
|
|
|
|
cowpatty
|
|
|
|
hashcat
|
|
|
|
hcxtools
|
2020-03-30 17:09:05 +01:00
|
|
|
hcxdumptool
|
|
|
|
wirelesstools
|
2019-10-26 10:53:36 +01:00
|
|
|
which
|
2021-08-08 12:30:40 +01:00
|
|
|
bully
|
2021-09-25 07:13:54 +01:00
|
|
|
pixiewps
|
2019-10-26 10:53:36 +01:00
|
|
|
];
|
|
|
|
|
2022-08-06 17:32:04 +01:00
|
|
|
checkInputs = propagatedBuildInputs ++ [ python3.pkgs.unittestCheckHook ];
|
2019-10-26 10:53:36 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-06 22:34:48 +00:00
|
|
|
homepage = "https://github.com/kimocoder/wifite2";
|
2019-10-26 10:53:36 +01:00
|
|
|
description = "Rewrite of the popular wireless network auditor, wifite";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-04-14 19:55:06 +01:00
|
|
|
maintainers = with maintainers; [ lassulus danielfullmer ];
|
2019-10-26 10:53:36 +01:00
|
|
|
};
|
|
|
|
}
|