diff --git a/pkgs/tools/security/nbutools/default.nix b/pkgs/tools/security/nbutools/default.nix new file mode 100644 index 000000000000..15401e3db258 --- /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 debd2a6ae5e6..9310aac72e6b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9611,6 +9611,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 { };