about summary refs log tree commit diff
path: root/pkgs/by-name/po/powerhub/package.nix
blob: 2200985699660c341ed0cedd5d9ea87abadab73b (plain) (blame)
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
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "powerhub";
  version = "2.0.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "AdrianVollmer";
    repo = "PowerHub";
    rev = "refs/tags/${version}";
    hash = "sha256-ejdG/vMINyvToP8GAhRMdp/Jq8rZNBubDbRcg2i05lM=";
  };

  nativeBuildInputs = with python3.pkgs; [
    setuptools
    setuptools-scm
  ];

  propagatedBuildInputs = with python3.pkgs; [
    cheroot
    cryptography
    dnspython
    flask
    flask-socketio
    flask-sqlalchemy
    importlib-metadata
    jinja2
    pyopenssl
    python-magic
    python-socketio
    requests
    service-identity
    simple-websocket
    sqlalchemy
    twisted
    watchdog
    werkzeug
    wsgidav
  ];

  # Tests uses XDG
  doCheck = false;

  pythonImportsCheck = [
    "powerhub"
  ];

  preCheck = ''
    cd tests/helpers
  '';

  meta = with lib; {
    description = "Post exploitation tool based on a web application, focusing on bypassing endpoint protection and application whitelisting";
    homepage = "https://github.com/AdrianVollmer/PowerHub";
    changelog = "https://github.com/AdrianVollmer/PowerHub/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    mainProgram = "powerhub";
  };
}