nixpkgs/pkgs/by-name/wi/wifite2/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.9 KiB
Nix
Raw Normal View History

2024-02-10 20:35:07 +00:00
{ lib
, fetchFromGitHub
, fetchpatch
, python3
, python3Packages
, wirelesstools
, aircrack-ng
, wireshark-cli
, reaverwps-t6x
, cowpatty
, hashcat
, hcxtools
, hcxdumptool
, which
, bully
, pixiewps
, john
, iw
, macchanger
}:
2019-10-26 10:53:36 +01:00
2024-02-10 20:35:07 +00:00
let
pythonDependencies = with python3Packages; [
chardet
scapy
];
in
2019-10-26 10:53:36 +01:00
python3.pkgs.buildPythonApplication rec {
pname = "wifite2";
2024-02-10 20:35:07 +00:00
version = "2.7.0";
2019-10-26 10:53:36 +01:00
src = fetchFromGitHub {
owner = "kimocoder";
2019-10-26 10:53:36 +01:00
repo = "wifite2";
rev = version;
2024-02-10 20:35:07 +00:00
hash = "sha256-G2AKKZUDS2UQm95TEhGJIucyMRcm7oL0d3J8uduEQhw=";
2019-10-26 10:53:36 +01:00
};
patches = [
(fetchpatch {
2024-02-10 20:35:07 +00:00
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.7.0-1/debian/patches/Disable-aircrack-failing-test.patch";
hash = "sha256-BUAowBajfnZ1x6Z3Ce3L0rAERv7v/KrdHcdvKxTxSrM=";
})
(fetchpatch {
2024-02-10 20:35:07 +00:00
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.7.0-1/debian/patches/Disable-two-failing-tests.patch";
hash = "sha256-wCwfNkF/GvOU5FWPmQ3dJ4Txthz9T9TO2xhSL5vllQc=";
})
(fetchpatch {
2024-02-10 20:35:07 +00:00
url = "https://salsa.debian.org/pkg-security-team/wifite/raw/debian/2.7.0-1/debian/patches/fix-for-new-which.patch";
hash = "sha256-8xs+O2ILSRcvsw2pyx2gEBFHdduoI+xmUvDBchKz2Qs=";
})
];
2019-10-26 10:53:36 +01:00
propagatedBuildInputs = [
aircrack-ng
wireshark-cli
reaverwps-t6x
cowpatty
hashcat
hcxtools
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
2024-02-10 20:35:07 +00:00
john
iw
macchanger
] ++ pythonDependencies;
2019-10-26 10:53:36 +01:00
nativeCheckInputs = propagatedBuildInputs ++ [ python3.pkgs.unittestCheckHook ];
2019-10-26 10:53:36 +01: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";
2024-02-10 20:35:07 +00:00
mainProgram = "wifite";
license = licenses.gpl2Plus;
2019-10-26 10:53:36 +01:00
platforms = platforms.linux;
2024-02-10 20:35:07 +00:00
maintainers = with maintainers; [ lassulus danielfullmer d3vil0p3r ];
2019-10-26 10:53:36 +01:00
};
}