repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
assets.nixNix381 lines17.1 KiBraw download
# modules/features/pentest/_pkgs/assets.nix — prebuilt release files, as a table.
#
# Every entry is one download, pinned by hash, and where it lands in the
# arsenal (~/pentesting, see paths.nix). payloads.nix walks this list; adding
# a tool is adding an entry, nothing else.
#
#   { dest = "privesc/windows/potatoes/SigmaPotato.exe"; url; hash; }
#       a single file, installed at `dest`
#   { dest = "ad/SharpHound"; unpack = "zip"; url; hash; }
#       an archive, unpacked whole into the directory `dest`
#   { dest = "privesc/windows/potatoes"; unpack = "zip"; only = [ "RemotePotato0.exe" ]; url; hash; }
#       only the named members, flattened into `dest`
#
# Keep `url = …;` and `hash = …;` on consecutive lines: pentest-update
# (update.nix) finds release pins by that shape and re-points them.
#
# What is NOT here: anything Go that nixpkgs carries (ligolo-ng, chisel, fscan,
# pspy) is cross-compiled from source in payloads.nix instead, and .NET tools
# that only exist as source (Certify 2.x, SharpEfsPotato, RasmanPotato) come
# from SharpCollection or are skipped. Provenance beats convenience.
[
  # The reverse-shell generator's PowerShell listener, also usable on Windows.
  {
    dest = "shells/powercat.ps1";
    url = "https://raw.githubusercontent.com/besimorhino/powercat/4e33fdfa2850a8940e46d0b69250ae3ba3a8c640/powercat.ps1";
    hash = "sha256-xVZytdKWOWmr4EX+ddtSBp0DAGkdTx9ZI6/q31NTudI=";
  }
  # Fluffy: the writeup's library-ms ZIP generator (Python standard library).
  {
    dest = "scripts/ad/CVE-2025-24071.py";
    url = "https://raw.githubusercontent.com/Marcejr117/CVE-2025-24071_PoC/3dfcbdebf7fef73f09e5d2563f79df493441c360/PoC.py";
    hash = "sha256-vkf57t8CzvQepRlPP37wxU4ZVduB0y68QCSQe+6ZJCE=";
  }
  # Pov: preserve the whole .NET Framework distribution and its companion DLLs.
  # Run ysoserial.exe on Windows; this is the .NET tool, not Java ysoserial.
  {
    dest = "web/ysoserial.net";
    unpack = "zip";
    url = "https://github.com/pwntester/ysoserial.net/releases/download/v1.36/ysoserial-1dba9c4416ba6e79b6b262b758fa75e2ee9008e9.zip";
    hash = "sha256-fRCbwvAlocrOsMnezrkddciTvM+NYd2dPt4Q2+FvLXE=";
  }
  ##### privesc / windows / potatoes ##########################################
  # SeImpersonatePrivilege -> SYSTEM. Which one works depends on the Windows
  # build and what is patched, so they all ship. Rough order to try on a
  # modern host: GodPotato, SigmaPotato, PrintSpoofer, CoercedPotato,
  # PrintNotifyPotato, then the rest.
  {
    dest = "privesc/windows/potatoes/GodPotato-NET2.exe";
    url = "https://github.com/BeichenDream/GodPotato/releases/download/V1.20/GodPotato-NET2.exe";
    hash = "sha256-MCeiEicpVymL9NMlBTcPpj+xYtampuwJGvnXYmMXqFg=";
  }
  {
    dest = "privesc/windows/potatoes/GodPotato-NET35.exe";
    url = "https://github.com/BeichenDream/GodPotato/releases/download/V1.20/GodPotato-NET35.exe";
    hash = "sha256-MCeiEicpVymL9NMlBTcPpj+xYtampuwJGvnXYmMXqFg=";
  }
  {
    dest = "privesc/windows/potatoes/GodPotato-NET4.exe";
    url = "https://github.com/BeichenDream/GodPotato/releases/download/V1.20/GodPotato-NET4.exe";
    hash = "sha256-mo6dWHtXDUB08cgxexY6qNDFZu/YjylNnYW8d3Y1Kig=";
  }
  {
    dest = "privesc/windows/potatoes/SigmaPotato.exe";
    url = "https://github.com/tylerdotrar/SigmaPotato/releases/download/v1.2.6/SigmaPotato.exe";
    hash = "sha256-7Gimv38QSoFb0h4n5zqN+4r8soLUmXvr6ezNbIkllQY=";
  }
  {
    dest = "privesc/windows/potatoes/SigmaPotatoCore.exe";
    url = "https://github.com/tylerdotrar/SigmaPotato/releases/download/v1.2.6/SigmaPotatoCore.exe";
    hash = "sha256-p6G8g/lGlsLvY34Swor9X1y7j30M8iy0GSHXe2w5pyE=";
  }
  {
    dest = "privesc/windows/potatoes/DeadPotato-NET4.exe";
    url = "https://github.com/lypd0/DeadPotato/releases/download/v1.2/DeadPotato-NET4.exe";
    hash = "sha256-a8ihwq//pAnSlTaSZs+SKwgbjbzz2ifZiiM/u6uI2YM=";
  }
  {
    dest = "privesc/windows/potatoes/PrintSpoofer64.exe";
    url = "https://github.com/itm4n/PrintSpoofer/releases/download/v1.0/PrintSpoofer64.exe";
    hash = "sha256-hST7wNc+cR5p1gxk8fG3vvNcmGcFiAZD3U1eF3eeWG0=";
  }
  {
    dest = "privesc/windows/potatoes/PrintSpoofer32.exe";
    url = "https://github.com/itm4n/PrintSpoofer/releases/download/v1.0/PrintSpoofer32.exe";
    hash = "sha256-R8nv+BQkkKLDQXAaq3quvDVe7RVA7tU0qDF90eZWFLI=";
  }
  # The fork that actually publishes binaries; hackvens/CoercedPotato (the
  # original) is source only. "Releases" is a rolling tag, so this pin is the
  # 2026-07-30 build.
  {
    dest = "privesc/windows/potatoes/CoercedPotato_x64.exe";
    url = "https://github.com/Prepouce/CoercedPotato/releases/download/Releases/CoercedPotato_x64.exe";
    hash = "sha256-RTKJjW4xrLF6T/ihd5K7BmCzcW+ZNnsswVMHk7vh8S8=";
  }
  {
    dest = "privesc/windows/potatoes/CoercedPotato_x86.exe";
    url = "https://github.com/Prepouce/CoercedPotato/releases/download/Releases/CoercedPotato_x86.exe";
    hash = "sha256-RvsS0pg+hmElFZ+x9NFz6Po/yrndTtD8hHuPi8rEil8=";
  }
  {
    dest = "privesc/windows/potatoes/PrintNotifyPotato-NET35.exe";
    url = "https://github.com/BeichenDream/PrintNotifyPotato/releases/download/v1.00/PrintNotifyPotato-NET35.exe";
    hash = "sha256-ThRpxhpgF8ONhAxHUav90h/Zig/y1f26JtInzUSLX2Q=";
  }
  {
    dest = "privesc/windows/potatoes/PrintNotifyPotato-NET46.exe";
    url = "https://github.com/BeichenDream/PrintNotifyPotato/releases/download/v1.00/PrintNotifyPotato-NET46.exe";
    hash = "sha256-lbEVA43rz/Qsb+bPGonkBys+A/Ng72JGDP/Pf19L3ac=";
  }
  {
    dest = "privesc/windows/potatoes/PetitPotato.exe";
    url = "https://github.com/wh0amitz/PetitPotato/releases/download/v1.0.0/PetitPotato.exe";
    hash = "sha256-naQ4zylWfdL8akukJ4Vqdr7dN1DQyMLg5AOg9wnd1Gs=";
  }
  {
    dest = "privesc/windows/potatoes/JuicyPotato.exe";
    url = "https://github.com/ohpe/juicy-potato/releases/download/v0.1/JuicyPotato.exe";
    hash = "sha256-D1bHA+m33euQZGknusBaXG2VMIyOE7iOXU9LVyQj4DY=";
  }
  {
    dest = "privesc/windows/potatoes";
    unpack = "zip";
    only = [ "JuicyPotatoNG.exe" ];
    url = "https://github.com/antonioCoco/JuicyPotatoNG/releases/download/v1.1/JuicyPotatoNG.zip";
    hash = "sha256-jkVbpqLJBifMbLOLF7l022JRwex2PLg+66KIlwMapAk=";
  }
  {
    dest = "privesc/windows/potatoes";
    unpack = "zip";
    only = [ "RoguePotato.exe" "RogueOxidResolver.exe" ];
    url = "https://github.com/antonioCoco/RoguePotato/releases/download/1.0/RoguePotato.zip";
    hash = "sha256-YVt58TkP8RaOi81y9zPHTUsQ/nSFX5AikYiz7hTiV6U=";
  }
  {
    dest = "privesc/windows/potatoes";
    unpack = "zip";
    only = [ "LocalPotato.exe" ];
    url = "https://github.com/decoder-it/LocalPotato/releases/download/v1.1/LocalPotato.zip";
    hash = "sha256-PTLYdrX6oL75K6bpNb/S5C3kuD93Qp1Q12W6FhNf/kg=";
  }
  {
    dest = "privesc/windows/potatoes";
    unpack = "zip";
    only = [ "RemotePotato0.exe" ];
    url = "https://github.com/antonioCoco/RemotePotato0/releases/download/1.2/RemotePotato0.zip";
    hash = "sha256-8YuNplaB0ThEB+hoLot9qJvyuoGHgtsL4JxkK8CZ/8Y=";
  }

  ##### privesc / windows #####################################################
  # FullPowers: a LOCAL/NETWORK SERVICE shell that lost SeImpersonate gets its
  # default privileges back — then a potato finishes the job.
  {
    dest = "privesc/windows/FullPowers.exe";
    url = "https://github.com/itm4n/FullPowers/releases/download/v0.1/FullPowers.exe";
    hash = "sha256-5bUOkl5dv02pIjVSzGBLdF+LpI9vR/i9++ob7EdHzlA=";
  }
  {
    dest = "privesc/windows/PrivescCheck.ps1";
    url = "https://github.com/itm4n/PrivescCheck/releases/download/2026.10.07-1/PrivescCheck.ps1";
    hash = "sha256-P3Nz+QMfN3QLI7ZShJw23mZqEuTbyr2vizNEZcWWc2A=";
  }
  # psgetsys: parent-PID spoofing. With SeDebugPrivilege, spawn a process under
  # a SYSTEM-owned parent (e.g. winlogon) to become SYSTEM without a potato.
  # Pinned to a commit — the repo ships from master, not releases.
  {
    dest = "privesc/windows/psgetsys.ps1";
    url = "https://raw.githubusercontent.com/decoder-it/psgetsystem/bbe480f91664b8eca40770bb0cebbec944acfc0d/psgetsys.ps1";
    hash = "sha256-Ch0ewbodqlEX30T9bzR5FyyEEtdTUsSigztf+cICTjA=";
  }

  ##### creds #################################################################
  # LSASS without mimikatz.exe: nanodump writes a minidump (parse it at home
  # with pypykatz), PPLBlade gets past RunAsPPL. fortra publishes nanodump's
  # builds in-tree, not as releases, so these are pinned to a commit.
  {
    dest = "creds/nanodump.x64.exe";
    url = "https://github.com/fortra/nanodump/raw/450d5b23aeba5e0f8f6e5fc826a08997b2237be9/dist/nanodump.x64.exe";
    hash = "sha256-rZ5N3OaKNPC6MBDmYoa8OqBWBDx9ynoiwyIqJ5YUAlo=";
  }
  {
    dest = "creds/nanodump.x86.exe";
    url = "https://github.com/fortra/nanodump/raw/450d5b23aeba5e0f8f6e5fc826a08997b2237be9/dist/nanodump.x86.exe";
    hash = "sha256-6vbVCYwXv0qO6uDAI2+RqzK9yAUAogC4z0wRvjkLNHI=";
  }
  {
    dest = "creds/nanodump_ppl_dump.x64.exe";
    url = "https://github.com/fortra/nanodump/raw/450d5b23aeba5e0f8f6e5fc826a08997b2237be9/dist/nanodump_ppl_dump.x64.exe";
    hash = "sha256-0kuaua1n+DeJkgx+G9GRK212zEZ/OXBscn4PLZlYJQQ=";
  }
  {
    dest = "creds/nanodump_ppl_medic.x64.exe";
    url = "https://github.com/fortra/nanodump/raw/450d5b23aeba5e0f8f6e5fc826a08997b2237be9/dist/nanodump_ppl_medic.x64.exe";
    hash = "sha256-effVS4XKOSm4yuNKATx/mm05lkeF/2T91pLfdqfto5s=";
  }
  {
    dest = "creds/PPLBlade.exe";
    url = "https://github.com/tastypepperoni/PPLBlade/releases/download/v1.0/PPLBlade.exe";
    hash = "sha256-mPBnn9SSpnr5KI8u+ayPmdgICSNkxxl+ZAmYdZAiKoU=";
  }

  ##### ad ####################################################################
  # SharpHound for BloodHound CE. SharpCollection's SharpHound is the LEGACY
  # collector, whose JSON CE cannot ingest — this one replaces it in ad/.
  {
    dest = "ad/SharpHound";
    unpack = "zip";
    url = "https://github.com/SpecterOps/SharpHound/releases/download/v2.17.0/SharpHound_v2.17.0_windows_x86.zip";
    hash = "sha256-Ce8SOtoivgCmr02/oo+ao1eTAgX4iZE3Q3PWNGCe+wM=";
  }
  {
    dest = "ad";
    unpack = "zip";
    only = [ "rusthound-ce.exe" ];
    url = "https://github.com/g0h4n/RustHound-CE/releases/download/v2.5.23/rusthound-ce-Windows-gnu-x86_64.zip";
    hash = "sha256-UK7kQmP4d30n/QhcRlF+Z2LZxu6NqI07HZCuzCFMms0=";
  }
  # Certipy and bloodyAD as single Windows binaries, for when you are ON a
  # domain-joined host and the python versions are on your side of the tunnel.
  {
    dest = "ad/Certipy.exe";
    url = "https://github.com/ly4k/Certipy/releases/download/5.1.0/Certipy.exe";
    hash = "sha256-yFLVbvDbX5Huel8gaxLDtI28ympbhbrrAna5gWFDSJs=";
  }
  {
    dest = "ad/bloodyAD.exe";
    url = "https://github.com/CravateRouge/bloodyAD/releases/download/v2.5.5/bloodyAD.exe";
    hash = "sha256-V6Tn4tcaTwX5O+8ortMLYbIGAg1nDjIzyCMfGgIowr4=";
  }
  {
    dest = "ad/SharpSCCM.exe";
    url = "https://github.com/Mayyhem/SharpSCCM/releases/download/v2.0.14/SharpSCCM.exe";
    hash = "sha256-l6BIvLVcAQjGj4f8txOW/O6TYAh1epVz5K7NugOR8m4=";
  }
  # KrbRelayEx is a .NET (core) app: the exe needs its dll and runtimeconfig
  # beside it, so all three go in their own directory.
  {
    dest = "ad/KrbRelayEx/KrbRelayEx.exe";
    url = "https://github.com/decoder-it/KrbRelayEx/releases/download/v1.2/KrbRelayEx.exe";
    hash = "sha256-WE7Q21zEDIbx7XTWkc+av9JXgPze/gmdNLqej+/XNLw=";
  }
  {
    dest = "ad/KrbRelayEx/KrbRelayEx.dll";
    url = "https://github.com/decoder-it/KrbRelayEx/releases/download/v1.2/KrbRelayEx.dll";
    hash = "sha256-Qx4O65q3mQGoN3jF81oUciBh+DUu18qa/3AXFxlVpn8=";
  }
  {
    dest = "ad/KrbRelayEx/KrbRelayEx.runtimeconfig.json";
    url = "https://github.com/decoder-it/KrbRelayEx/releases/download/v1.2/KrbRelayEx.runtimeconfig.json";
    hash = "sha256-KDKc8I9lBec4BrF1WLGHwC8MHFFv5H6/t6AT0IKqowY=";
  }
  {
    dest = "ad";
    unpack = "zip";
    only = [ "Inveigh.exe" "Inveigh.exe.config" ];
    url = "https://github.com/Kevin-Robertson/Inveigh/releases/download/v2.0.12/Inveigh-net4.6.2-v2.0.12.zip";
    hash = "sha256-Txz0+3mOZF9KJ7jqycN+AQGVLcSYE7ueTzB5/wgqrS4=";
  }
  # ropnop's kerbrute (Go). Not the nixpkgs `kerbrute`, which is Tarlogic's
  # python tool of the same name. Prebuilt: the module predates go.sum
  # discipline and does not build cleanly from source any more.
  {
    dest = "ad/kerbrute/kerbrute-linux-amd64";
    url = "https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_linux_amd64";
    hash = "sha256-cQqdJlPIvTaJ5FF3jaudrsDeTEx1+QB4jM8j7yVLEio=";
  }
  {
    dest = "ad/kerbrute/kerbrute-linux-386";
    url = "https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_linux_386";
    hash = "sha256-P3vR6d4Ufi6aiYq2WsyTLP/WvqhAA9imUt+lLkwajK0=";
  }
  {
    dest = "ad/kerbrute/kerbrute-darwin-amd64";
    url = "https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_darwin_amd64";
    hash = "sha256-Gf7ASh528ct8IQlUqNEeYTydN2KaA2x41WK/Q4rpYoA=";
  }
  {
    dest = "ad/kerbrute/kerbrute-windows-amd64.exe";
    url = "https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_windows_amd64.exe";
    hash = "sha256-0YqoS3vw796ca12yo4qx7JSExZxShMC9CA9Rl7+TiLA=";
  }
  {
    dest = "ad/kerbrute/kerbrute-windows-386.exe";
    url = "https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_windows_386.exe";
    hash = "sha256-WqA168M1nuhRfZlWnIiB/Lf0irfpovEB9+fsI+Y2x5s=";
  }

  ##### shells ################################################################
  {
    dest = "shells";
    unpack = "zip";
    only = [ "RunasCs.exe" "RunasCs_net2.exe" ];
    url = "https://github.com/antonioCoco/RunasCs/releases/download/v1.5/RunasCs.zip";
    hash = "sha256-iPgmCWvh7RvjLdRdwjgRid98XzSce4CO24cuaL5Kk1A=";
  }
  # No releases or tags upstream; pinned to a commit.
  {
    dest = "shells/nc64.exe";
    url = "https://raw.githubusercontent.com/int0x33/nc.exe/fa87aa42c460d34966efb998a1788efca6db11a7/nc64.exe";
    hash = "sha256-Plk3n1hevwvstrTgbQ+7+AbeKKS7JW6De0VV8bQkVXE=";
  }
  {
    dest = "shells/nc.exe";
    url = "https://raw.githubusercontent.com/int0x33/nc.exe/fa87aa42c460d34966efb998a1788efca6db11a7/nc.exe";
    hash = "sha256-6PvsJdtPnZW16PQcylGksyvoZ0pN6npFtveusi28ONs=";
  }

  ##### pivoting ##############################################################
  {
    dest = "pivoting/plink-x64.exe";
    url = "https://the.earth.li/~sgtatham/putty/0.85/w64/plink.exe";
    hash = "sha256-lp82h51XFqoamBH0OmplEOjwg3Lb65aVuBC5x3bznHU=";
  }
  {
    dest = "pivoting/plink-x86.exe";
    url = "https://the.earth.li/~sgtatham/putty/0.85/w32/plink.exe";
    hash = "sha256-x76EzEJWWtTefnfpnwph86jewXx31f8a+tedAFr1TJM=";
  }

  ##### recon #################################################################
  # 7.92 is the last nmap that nmap.org ships as a portable zip; everything
  # newer is an NSIS installer only. Runs unprivileged for -sT/-sV without
  # npcap; the bundled npcap installer is there if you are admin.
  {
    dest = "recon/nmap/windows";
    unpack = "zip";
    url = "https://nmap.org/dist/nmap-7.92-win32.zip";
    hash = "sha256-tUxU1LR4ytGVZ6UEx8a3Iw39gKzYgdwukBWmKKPvpx4=";
  }

  # Static nmap for the target itself — ernw's musl static-pie builds, one per
  # arch. The tarball has no top-level dir: nmap/ncat/nping sit beside a data/
  # dir, and nmap needs `NMAPDIR=<dir>/data`. Unpacked into its own arch dir so
  # the four data/ copies don't collide.
  {
    dest = "recon/nmap/linux-amd64";
    unpack = "tar";
    url = "https://github.com/ernw/static-toolbox/releases/download/nmap-v7.94SVN/nmap-7.94SVN-x86_64-portable.tar.gz";
    hash = "sha256-uVVdnAJvlFjJVWT6Gh/0KMu/ho/1poubSAszUy673nE=";
  }
  {
    dest = "recon/nmap/linux-x86";
    unpack = "tar";
    url = "https://github.com/ernw/static-toolbox/releases/download/nmap-v7.94SVN/nmap-7.94SVN-x86-portable.tar.gz";
    hash = "sha256-nBKaHgaAP4lw7WtfRU5SiI165TXT1G3GjO5TA8ZpRqI=";
  }
  {
    dest = "recon/nmap/linux-arm64";
    unpack = "tar";
    url = "https://github.com/ernw/static-toolbox/releases/download/nmap-v7.94SVN/nmap-7.94SVN-aarch64-portable.tar.gz";
    hash = "sha256-8haqFI4Rg3Az4+73D+BiktHmgV5ZkEghisxMc4llbuI=";
  }
  {
    dest = "recon/nmap/linux-armhf";
    unpack = "tar";
    url = "https://github.com/ernw/static-toolbox/releases/download/nmap-v7.94SVN/nmap-7.94SVN-armhf-portable.tar.gz";
    hash = "sha256-uJsSvCKKAOwlASnPHmok6vl5aSDt5suFoTAbJMZJCyQ=";
  }

  ##### pivoting / socat (static, per arch) ###################################
  # ernw's static socat — the Windows builds need cygwin1.dll, these do not.
  {
    dest = "pivoting/socat/socat-linux-amd64";
    url = "https://github.com/ernw/static-toolbox/releases/download/socat-v1.7.4.4/socat-1.7.4.4-x86_64";
    hash = "sha256-Gf0oS41I/v8qFcw3vZugcCI9pXXk6EYjrqS4j27+tZc=";
  }
  {
    dest = "pivoting/socat/socat-linux-x86";
    url = "https://github.com/ernw/static-toolbox/releases/download/socat-v1.7.4.4/socat-1.7.4.4-x86";
    hash = "sha256-mBFvSL9wT8saQOtrhPZOIostY+bt82p1IEUu0L2Ua18=";
  }
  {
    dest = "pivoting/socat/socat-linux-arm64";
    url = "https://github.com/ernw/static-toolbox/releases/download/socat-v1.7.4.4/socat-1.7.4.4-aarch64";
    hash = "sha256-dY8CPZonrjt/X2M+9BvtZbgSrw3Ya0r+3jeSXkBd3D0=";
  }
  {
    dest = "pivoting/socat/socat-linux-armhf";
    url = "https://github.com/ernw/static-toolbox/releases/download/socat-v1.7.4.4/socat-1.7.4.4-armhf";
    hash = "sha256-kgH9gK3143Hy7QZdInkw6M19pnMc/cl0FycxYUDdFGQ=";
  }
]