about summary refs log tree commit diff
path: root/pkgs/by-name/pa/payloadsallthethings/package.nix
blob: bc6c76429c0a4986d375e196317745f02072158e (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
{ lib
, fetchFromGitHub
, stdenvNoCC
}:

stdenvNoCC.mkDerivation {
  pname = "payloadsallthethings";
  version = "3.0-unstable-2024-01-21";

  src = fetchFromGitHub {
    owner = "swisskyrepo";
    repo = "PayloadsAllTheThings";
    rev = "97cfeee270395a838802fa1fcb8a4d5ffc6d6b48";
    hash = "sha256-LRS60v0o5nPSLfGFH6P0Y5roN8Mk5/KyRF4SWTv/7Hw=";
  };

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/payloadsallthethings
    rm CONTRIBUTING.md mkdocs.yml custom.css
    cp -a * $out/share/payloadsallthethings
    runHook postInstall
  '';

  meta = {
    homepage = "https://github.com/swisskyrepo/PayloadsAllTheThings";
    description = "A list of useful payloads and bypass for Web Application Security and Pentest/CTF";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ shard7 ];
    platforms = lib.platforms.all;
    sourceProvenance = with lib.sourceTypes; [ fromSource ];
  };
}