1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
{
lib,
stdenv,
arc4,
asn1crypto,
asn1tools,
asyauth,
asysocks,
buildPythonPackage,
cargo,
colorama,
fetchFromGitHub,
iconv,
pillow,
pyperclip,
rustPlatform,
rustc,
setuptools,
setuptools-rust,
tqdm,
unicrypto,
}:
buildPythonPackage rec {
pname = "aardwolf";
version = "0.2.13";
pyproject = true;
src = fetchFromGitHub {
owner = "skelsec";
repo = "aardwolf";
tag = version;
hash = "sha256-8QXPvfVeT3qadxTvt/LQX3XM5tGj6SpfOhP/9xcZHW4=";
};
patches = [ ./update-pyo3.patch ];
cargoDeps = rustPlatform.fetchCargoVendor {
inherit
pname
version
src
patches
;
sourceRoot = "${src.name}/aardwolf/utils/rlers";
hash = "sha256-n28jzS2+zbXsdR7rT0PBvcqNacuFMJKUug0mBYc4eFE=";
patchFlags = [ "-p4" ]; # strip i/aardwolf/utils/rlers/ prefix
};
cargoRoot = "aardwolf/utils/rlers";
build-system = [
setuptools
setuptools-rust
];
nativeBuildInputs = [
rustPlatform.cargoSetupHook
cargo
rustc
];
dependencies = [
arc4
asn1crypto
asn1tools
asyauth
asysocks
colorama
pillow
pyperclip
tqdm
unicrypto
]
++ lib.optionals (stdenv.hostPlatform.isDarwin) [ iconv ];
# Module doesn't have tests
doCheck = false;
pythonImportsCheck = [ "aardwolf" ];
meta = {
description = "Asynchronous RDP protocol implementation";
mainProgram = "ardpscan";
homepage = "https://github.com/skelsec/aardwolf";
changelog = "https://github.com/skelsec/aardwolf/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|