From 58d57ff12a996958e17964d06b829b51a4ae2c9a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 26 Apr 2023 19:44:27 +0200 Subject: [PATCH] smbmap: init at unstable-2023-03-29 --- pkgs/tools/security/smbmap/default.nix | 40 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/tools/security/smbmap/default.nix diff --git a/pkgs/tools/security/smbmap/default.nix b/pkgs/tools/security/smbmap/default.nix new file mode 100644 index 000000000000..a32503083638 --- /dev/null +++ b/pkgs/tools/security/smbmap/default.nix @@ -0,0 +1,40 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "smbmap"; + version = "unstable-2023-03-29"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "ShawnDEvans"; + repo = "smbmap"; + rev = "ce60773320e11b2ecd1ce1b5ab2a62d43d4a4423"; + hash = "sha256-4DdiICH3B7x8Wr5CcqiuhCHPv6W/5bT5MGdXkyE0OKA="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + impacket + pyasn1 + pycrypto + configparser + termcolor + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "smbmap" + ]; + + meta = with lib; { + description = "SMB enumeration tool"; + homepage = "https://github.com/ShawnDEvans/smbmap"; + changelog = "https://github.com/ShawnDEvans/smbmap/releases/tag/v${version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 96a42f49ceed..4ef38d3ef10b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1625,6 +1625,8 @@ with pkgs; sorted-grep = callPackage ../tools/text/sorted-grep { }; + smbmap = callPackage ../tools/security/smbmap { }; + smbscan = callPackage ../tools/security/smbscan { }; spectre-cli = callPackage ../tools/security/spectre-cli { };