2023-04-26 17:44:27 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "smbmap";
|
2023-06-11 11:50:39 +00:00
|
|
|
version = "1.9.1";
|
2023-04-26 17:44:27 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ShawnDEvans";
|
|
|
|
repo = "smbmap";
|
2023-06-11 11:50:39 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-NsxmH1W5VUckGvqqTIrxhaVz0l7gsHmc8KJuvC/iVbA=";
|
2023-04-26 17:44:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|