From 1eff1300ccf8b210355192f3b20e0c3871c67da0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 17 Jun 2023 09:52:36 +0200 Subject: [PATCH] nbutools: init at unstable-2023-06-06 --- pkgs/tools/security/nbutools/default.nix | 41 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 43 insertions(+) create mode 100644 pkgs/tools/security/nbutools/default.nix diff --git a/pkgs/tools/security/nbutools/default.nix b/pkgs/tools/security/nbutools/default.nix new file mode 100644 index 00000000000..15401e3db25 --- /dev/null +++ b/pkgs/tools/security/nbutools/default.nix @@ -0,0 +1,41 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "nbutools"; + version = "unstable-2023-06-06"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "airbus-seclab"; + repo = "nbutools"; + rev = "d82fb96d5623e7d3076cc0a1db06a640f63b9552"; + hash = "sha256-YOiFlTIDpeTFOHPU37v0pYf8s3HdaE/4pnd9qrsFtSI="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + aiodns + aiohttp + beautifulsoup4 + graphviz + jaydebeapi + jpype1 + lxml + pycryptodome + requests + scapy + tabulate + ]; + + # Project has no tests + doCheck = false; + + meta = with lib; { + description = "Tools for offensive security of NetBackup infrastructures"; + homepage = "https://github.com/airbus-seclab/nbutools"; + license = with licenses; [ gpl2Only ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 25c408635a4..fb12cac0c67 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9589,6 +9589,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + nbutools = callPackage ../tools/security/nbutools { }; + ncrack = callPackage ../tools/security/ncrack { }; nerdctl = callPackage ../applications/networking/cluster/nerdctl { };