summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/po/powersploit/package.nix
blob: dfd88e9b1d9ca35000ee5168e6b1ec86ae0860f0 (plain)
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
{
  lib,
  fetchFromGitHub,
  stdenvNoCC,
}:

stdenvNoCC.mkDerivation {
  pname = "powersploit";
  version = "3.0.0-unstable-2020-08-22";

  src = fetchFromGitHub {
    owner = "PowerShellMafia";
    repo = "PowerSploit";
    rev = "d943001a7defb5e0d1657085a77a0e78609be58f";
    hash = "sha256-xVMCB8siyYc8JI7vjlUdO93jI3Qh054F/4CCZyGe75c=";
  };

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/windows/powersploit
    cp -a * $out/share/windows/powersploit
    find $out/share/windows -type f -exec chmod -x {} \;
    runHook postInstall
  '';

  meta = {
    changelog = "https://github.com/PowerShellMafia/PowerSploit/releases/";
    description = "PowerShell Post-Exploitation Framework";
    homepage = "https://github.com/PowerShellMafia/PowerSploit";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ shard7 ];
    platforms = lib.platforms.all;
    sourceProvenance = with lib.sourceTypes; [ fromSource ];
  };
}