From f498b2ac0ef2f33d808b9f516a421a0db0064323 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 26 Oct 2019 11:53:36 +0200 Subject: [PATCH] wifite2: init at 2.2.5 --- pkgs/tools/networking/wifite2/default.nix | 40 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/tools/networking/wifite2/default.nix diff --git a/pkgs/tools/networking/wifite2/default.nix b/pkgs/tools/networking/wifite2/default.nix new file mode 100644 index 000000000000..2333408f0781 --- /dev/null +++ b/pkgs/tools/networking/wifite2/default.nix @@ -0,0 +1,40 @@ +{ stdenv, lib, fetchFromGitHub, python3, aircrack-ng, wireshark-cli, reaverwps-t6x, cowpatty, hashcat, hcxtools, which }: + +python3.pkgs.buildPythonApplication rec { + version = "2.2.5"; + pname = "wifite2"; + + src = fetchFromGitHub { + owner = "derv82"; + repo = "wifite2"; + rev = version; + sha256 = "1hfy90wf2bjg0z8rbs8cfhhvz78pzg2c6nj0zksal42mb6b5cjdp"; + }; + + propagatedBuildInputs = [ + aircrack-ng + wireshark-cli + reaverwps-t6x + cowpatty + hashcat + hcxtools + which + ]; + + postFixup = let + sitePackagesDir = "$out/lib/python3.${lib.versions.minor python3.version}/site-packages"; + in '' + mv ${sitePackagesDir}/wifite/__main__.py ${sitePackagesDir}/wifite/wifite.py + ''; + + # which is not found + doCheck = false; + + meta = with stdenv.lib; { + homepage = "https://github.com/derv82/wifite2"; + description = "Rewrite of the popular wireless network auditor, wifite"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ lassulus ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e53a8c37ad78..fef1453d476c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7041,6 +7041,8 @@ in whois = callPackage ../tools/networking/whois { }; + wifite2 = callPackage ../tools/networking/wifite2 { }; + wireguard-tools = callPackage ../tools/networking/wireguard-tools { }; woff2 = callPackage ../development/web/woff2 { };