2020-03-30 18:09:05 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, python3, wirelesstools
|
|
|
|
, aircrack-ng, wireshark-cli, reaverwps-t6x, cowpatty, hashcat, hcxtools
|
|
|
|
, hcxdumptool, pyrit, which }:
|
2019-10-26 11:53:36 +02:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-05-29 22:58:54 +02:00
|
|
|
version = "2.5.5";
|
2019-10-26 11:53:36 +02:00
|
|
|
pname = "wifite2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-30 18:09:05 +02:00
|
|
|
owner = "kimocoder";
|
2019-10-26 11:53:36 +02:00
|
|
|
repo = "wifite2";
|
|
|
|
rev = version;
|
2020-05-29 22:58:54 +02:00
|
|
|
sha256 = "0rh54gj471dn8442imxwasjrrwzsx4m40nylkw3y6p8rbjmb92h4";
|
2019-10-26 11:53:36 +02:00
|
|
|
};
|
|
|
|
|
2020-03-30 18:09:05 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/${version}-1/debian/patches/Disable-aircrack-failing-test.patch";
|
|
|
|
sha256 = "04qql8w27c1lqk59ghkr1n6r08jwdrb1dcam5k88szkk2bxv8yx1";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/${version}-1/debian/patches/Disable-two-failing-tests.patch";
|
|
|
|
sha256 = "1sixcqz1kbkhxf38yq55pwycm54adjx22bq46dfnl44mg69nx356";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-10-26 11:53:36 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aircrack-ng
|
|
|
|
wireshark-cli
|
|
|
|
reaverwps-t6x
|
|
|
|
cowpatty
|
|
|
|
hashcat
|
|
|
|
hcxtools
|
2020-03-30 18:09:05 +02:00
|
|
|
hcxdumptool
|
|
|
|
wirelesstools
|
|
|
|
pyrit
|
2019-10-26 11:53:36 +02:00
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = let
|
|
|
|
sitePackagesDir = "$out/lib/python3.${lib.versions.minor python3.version}/site-packages";
|
|
|
|
in ''
|
|
|
|
mv ${sitePackagesDir}/wifite/__main__.py ${sitePackagesDir}/wifite/wifite.py
|
|
|
|
'';
|
|
|
|
|
2020-03-30 18:09:05 +02:00
|
|
|
checkInputs = propagatedBuildInputs;
|
|
|
|
checkPhase = "python -m unittest discover tests -v";
|
2019-10-26 11:53:36 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-26 11:53:36 +02:00
|
|
|
homepage = "https://github.com/derv82/wifite2";
|
|
|
|
description = "Rewrite of the popular wireless network auditor, wifite";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-04-14 20:55:06 +02:00
|
|
|
maintainers = with maintainers; [ lassulus danielfullmer ];
|
2019-10-26 11:53:36 +02:00
|
|
|
};
|
|
|
|
}
|