-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathflake.nix
More file actions
73 lines (65 loc) · 2.07 KB
/
Copy pathflake.nix
File metadata and controls
73 lines (65 loc) · 2.07 KB
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
{
description = "PowerView.py is an alternative for the awesome original PowerView.ps1 script.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
powerview = pkgs.python3Packages.buildPythonApplication rec {
pname = "powerview";
version = "2026.2.2";
format = "pyproject";
src = pkgs.fetchFromGitHub {
owner = "aniqfakhrul";
repo = "powerview.py";
rev = "main";
hash = "sha256-855smi1qmEgeso30fXj2ivnvVYtAUrs3ps0EclDbZz0=";
};
nativeBuildInputs = with pkgs.python3Packages; [ poetry-core ];
propagatedBuildInputs = with pkgs.python3Packages; [
impacket
ldap3-bleeding-edge
dnspython
future
gnureadline
validators
dsinternals
chardet
tabulate
requests-ntlm
python-dateutil
flask
];
pythonRemoveDeps = [ "argparse" ];
doCheck = false;
meta = with pkgs.lib; {
description = "PowerView.py is an alternative for the awesome original PowerView.ps1 script.";
longDescription = ''
PowerView.py is an alternative for the awesome original PowerView.ps1 script.
Most of the modules used in PowerView are available here (some of the flags are changed).
The main goal is to achieve an interactive session without having to repeatedly authenticate to LDAP.
'';
homepage = "https://github.com/aniqfakhrul/powerview.py";
license = licenses.gpl3Only;
mainProgram = "powerview";
};
};
in
{
packages = {
powerview = powerview;
default = powerview;
};
}
);
}