2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
arc4,
|
|
|
|
asn1crypto,
|
|
|
|
asn1tools,
|
|
|
|
asyauth,
|
|
|
|
asysocks,
|
|
|
|
buildPythonPackage,
|
|
|
|
cargo,
|
|
|
|
colorama,
|
|
|
|
fetchFromGitHub,
|
|
|
|
iconv,
|
|
|
|
minikerberos,
|
|
|
|
pillow,
|
|
|
|
pyperclip,
|
|
|
|
pythonOlder,
|
|
|
|
rustPlatform,
|
|
|
|
rustc,
|
|
|
|
setuptools-rust,
|
|
|
|
tqdm,
|
|
|
|
unicrypto,
|
|
|
|
winsspi,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aardwolf";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.2.8";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skelsec";
|
|
|
|
repo = "aardwolf";
|
2023-03-24 00:07:29 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-4kJsW0uwWfcgVruEdDw3QhbzfPDuLjmK+YvcLrgF4SI=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/aardwolf/utils/rlers";
|
2023-01-20 10:41:00 +00:00
|
|
|
name = "${pname}-${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-i7fmdWOseRQGdvdBnlGi+lgWvhC2WFI2FwXU9JywYsc=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoRoot = "aardwolf/utils/rlers";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
setuptools-rust
|
|
|
|
cargo
|
|
|
|
rustc
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
arc4
|
|
|
|
asn1crypto
|
|
|
|
asn1tools
|
2023-01-20 10:41:00 +00:00
|
|
|
asyauth
|
2022-08-12 12:06:08 +00:00
|
|
|
asysocks
|
|
|
|
colorama
|
|
|
|
minikerberos
|
|
|
|
pillow
|
|
|
|
pyperclip
|
|
|
|
tqdm
|
|
|
|
unicrypto
|
|
|
|
winsspi
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (stdenv.isDarwin) [ iconv ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
# Module doesn't have tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aardwolf" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Asynchronous RDP protocol implementation";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ardpscan";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/skelsec/aardwolf";
|
2023-03-24 00:07:29 +00:00
|
|
|
changelog = "https://github.com/skelsec/aardwolf/releases/tag/${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|